| File: | root/firefox-clang/dom/indexedDB/ActorsParent.cpp |
| Warning: | line 20783, column 39 Moved-from object 'previousKey' is moved |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
| 1 | /* This Source Code Form is subject to the terms of the Mozilla Public | ||||
| 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||||
| 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||||
| 4 | |||||
| 5 | #include "ActorsParent.h" | ||||
| 6 | |||||
| 7 | #include <inttypes.h> | ||||
| 8 | #include <math.h> | ||||
| 9 | #include <stdlib.h> | ||||
| 10 | #include <string.h> | ||||
| 11 | |||||
| 12 | #include <algorithm> | ||||
| 13 | #include <cstdint> | ||||
| 14 | #include <iterator> | ||||
| 15 | #include <new> | ||||
| 16 | #include <numeric> | ||||
| 17 | #include <type_traits> | ||||
| 18 | #include <utility> | ||||
| 19 | |||||
| 20 | #include "ActorsParentCommon.h" | ||||
| 21 | #include "CrashAnnotations.h" | ||||
| 22 | #include "DBSchema.h" | ||||
| 23 | #include "DatabaseFileInfo.h" | ||||
| 24 | #include "DatabaseFileManager.h" | ||||
| 25 | #include "DatabaseFileManagerImpl.h" | ||||
| 26 | #include "ErrorList.h" | ||||
| 27 | #include "IDBCursorType.h" | ||||
| 28 | #include "IDBObjectStore.h" | ||||
| 29 | #include "IDBTransaction.h" | ||||
| 30 | #include "IndexedDBCipherKeyManager.h" | ||||
| 31 | #include "IndexedDBCommon.h" | ||||
| 32 | #include "IndexedDatabaseInlines.h" | ||||
| 33 | #include "IndexedDatabaseManager.h" | ||||
| 34 | #include "KeyPath.h" | ||||
| 35 | #include "MainThreadUtils.h" | ||||
| 36 | #include "NotifyUtils.h" | ||||
| 37 | #include "ProfilerHelpers.h" | ||||
| 38 | #include "ReportInternalError.h" | ||||
| 39 | #include "SafeRefPtr.h" | ||||
| 40 | #include "SchemaUpgrades.h" | ||||
| 41 | #include "TransactionOpResult.h" | ||||
| 42 | #include "chrome/common/ipc_channel.h" | ||||
| 43 | #include "ipc/IPCMessageUtils.h" | ||||
| 44 | #include "js/RootingAPI.h" | ||||
| 45 | #include "js/StructuredClone.h" | ||||
| 46 | #include "js/Value.h" | ||||
| 47 | #include "jsapi.h" | ||||
| 48 | #include "mozIStorageAsyncConnection.h" | ||||
| 49 | #include "mozIStorageConnection.h" | ||||
| 50 | #include "mozIStorageFunction.h" | ||||
| 51 | #include "mozIStorageProgressHandler.h" | ||||
| 52 | #include "mozIStorageService.h" | ||||
| 53 | #include "mozIStorageStatement.h" | ||||
| 54 | #include "mozIStorageValueArray.h" | ||||
| 55 | #include "mozStorageCID.h" | ||||
| 56 | #include "mozStorageHelper.h" | ||||
| 57 | #include "mozilla/Algorithm.h" | ||||
| 58 | #include "mozilla/ArrayAlgorithm.h" | ||||
| 59 | #include "mozilla/ArrayIterator.h" | ||||
| 60 | #include "mozilla/Assertions.h" | ||||
| 61 | #include "mozilla/Atomics.h" | ||||
| 62 | #include "mozilla/Attributes.h" | ||||
| 63 | #include "mozilla/Casting.h" | ||||
| 64 | #include "mozilla/CondVar.h" | ||||
| 65 | #include "mozilla/DebugOnly.h" | ||||
| 66 | #include "mozilla/EndianUtils.h" | ||||
| 67 | #include "mozilla/ErrorNames.h" | ||||
| 68 | #include "mozilla/ErrorResult.h" | ||||
| 69 | #include "mozilla/GeckoTrace.h" | ||||
| 70 | #include "mozilla/InitializedOnce.h" | ||||
| 71 | #include "mozilla/Logging.h" | ||||
| 72 | #include "mozilla/Maybe.h" | ||||
| 73 | #include "mozilla/Monitor.h" | ||||
| 74 | #include "mozilla/Mutex.h" | ||||
| 75 | #include "mozilla/NotNull.h" | ||||
| 76 | #include "mozilla/Preferences.h" | ||||
| 77 | #include "mozilla/ProfilerLabels.h" | ||||
| 78 | #include "mozilla/RefCountType.h" | ||||
| 79 | #include "mozilla/RefCounted.h" | ||||
| 80 | #include "mozilla/RemoteLazyInputStreamParent.h" | ||||
| 81 | #include "mozilla/RemoteLazyInputStreamStorage.h" | ||||
| 82 | #include "mozilla/Result.h" | ||||
| 83 | #include "mozilla/ResultExtensions.h" | ||||
| 84 | #include "mozilla/SchedulerGroup.h" | ||||
| 85 | #include "mozilla/SnappyCompressOutputStream.h" | ||||
| 86 | #include "mozilla/SpinEventLoopUntil.h" | ||||
| 87 | #include "mozilla/StaticPtr.h" | ||||
| 88 | #include "mozilla/TimeStamp.h" | ||||
| 89 | #include "mozilla/UniquePtr.h" | ||||
| 90 | #include "mozilla/Variant.h" | ||||
| 91 | #include "mozilla/dom/BlobImpl.h" | ||||
| 92 | #include "mozilla/dom/ContentParent.h" | ||||
| 93 | #include "mozilla/dom/FileBlobImpl.h" | ||||
| 94 | #include "mozilla/dom/FlippedOnce.h" | ||||
| 95 | #include "mozilla/dom/IDBCursorBinding.h" | ||||
| 96 | #include "mozilla/dom/IDBFactory.h" | ||||
| 97 | #include "mozilla/dom/IPCBlob.h" | ||||
| 98 | #include "mozilla/dom/IPCBlobUtils.h" | ||||
| 99 | #include "mozilla/dom/IndexedDatabase.h" | ||||
| 100 | #include "mozilla/dom/Nullable.h" | ||||
| 101 | #include "mozilla/dom/PContentParent.h" | ||||
| 102 | #include "mozilla/dom/ScriptSettings.h" | ||||
| 103 | #include "mozilla/dom/indexedDB/IDBResult.h" | ||||
| 104 | #include "mozilla/dom/indexedDB/Key.h" | ||||
| 105 | #include "mozilla/dom/indexedDB/PBackgroundIDBCursor.h" | ||||
| 106 | #include "mozilla/dom/indexedDB/PBackgroundIDBCursorParent.h" | ||||
| 107 | #include "mozilla/dom/indexedDB/PBackgroundIDBDatabase.h" | ||||
| 108 | #include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseFileParent.h" | ||||
| 109 | #include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseParent.h" | ||||
| 110 | #include "mozilla/dom/indexedDB/PBackgroundIDBFactory.h" | ||||
| 111 | #include "mozilla/dom/indexedDB/PBackgroundIDBFactoryParent.h" | ||||
| 112 | #include "mozilla/dom/indexedDB/PBackgroundIDBFactoryRequestParent.h" | ||||
| 113 | #include "mozilla/dom/indexedDB/PBackgroundIDBRequest.h" | ||||
| 114 | #include "mozilla/dom/indexedDB/PBackgroundIDBRequestParent.h" | ||||
| 115 | #include "mozilla/dom/indexedDB/PBackgroundIDBSharedTypes.h" | ||||
| 116 | #include "mozilla/dom/indexedDB/PBackgroundIDBTransactionParent.h" | ||||
| 117 | #include "mozilla/dom/indexedDB/PBackgroundIDBVersionChangeTransactionParent.h" | ||||
| 118 | #include "mozilla/dom/indexedDB/PBackgroundIndexedDBUtilsParent.h" | ||||
| 119 | #include "mozilla/dom/ipc/IdType.h" | ||||
| 120 | #include "mozilla/dom/quota/Assertions.h" | ||||
| 121 | #include "mozilla/dom/quota/CachingDatabaseConnection.h" | ||||
| 122 | #include "mozilla/dom/quota/Client.h" | ||||
| 123 | #include "mozilla/dom/quota/ClientDirectoryLock.h" | ||||
| 124 | #include "mozilla/dom/quota/ClientDirectoryLockHandle.h" | ||||
| 125 | #include "mozilla/dom/quota/ClientImpl.h" | ||||
| 126 | #include "mozilla/dom/quota/ConditionalCompilation.h" | ||||
| 127 | #include "mozilla/dom/quota/Date.h" | ||||
| 128 | #include "mozilla/dom/quota/DecryptingInputStream_impl.h" | ||||
| 129 | #include "mozilla/dom/quota/DirectoryLock.h" | ||||
| 130 | #include "mozilla/dom/quota/DirectoryLockInlines.h" | ||||
| 131 | #include "mozilla/dom/quota/EncryptingOutputStream_impl.h" | ||||
| 132 | #include "mozilla/dom/quota/ErrorHandling.h" | ||||
| 133 | #include "mozilla/dom/quota/FileStreams.h" | ||||
| 134 | #include "mozilla/dom/quota/OriginScope.h" | ||||
| 135 | #include "mozilla/dom/quota/PersistenceScope.h" | ||||
| 136 | #include "mozilla/dom/quota/PersistenceType.h" | ||||
| 137 | #include "mozilla/dom/quota/PrincipalUtils.h" | ||||
| 138 | #include "mozilla/dom/quota/QuotaCommon.h" | ||||
| 139 | #include "mozilla/dom/quota/QuotaManager.h" | ||||
| 140 | #include "mozilla/dom/quota/QuotaObject.h" | ||||
| 141 | #include "mozilla/dom/quota/ResultExtensions.h" | ||||
| 142 | #include "mozilla/dom/quota/ThreadUtils.h" | ||||
| 143 | #include "mozilla/dom/quota/UniversalDirectoryLock.h" | ||||
| 144 | #include "mozilla/dom/quota/UsageInfo.h" | ||||
| 145 | #include "mozilla/fallible.h" | ||||
| 146 | #include "mozilla/glean/DomIndexedDBMetrics.h" | ||||
| 147 | #include "mozilla/ipc/BackgroundParent.h" | ||||
| 148 | #include "mozilla/ipc/BackgroundUtils.h" | ||||
| 149 | #include "mozilla/ipc/InputStreamParams.h" | ||||
| 150 | #include "mozilla/ipc/PBackgroundParent.h" | ||||
| 151 | #include "mozilla/ipc/PBackgroundSharedTypes.h" | ||||
| 152 | #include "mozilla/ipc/ProtocolUtils.h" | ||||
| 153 | #include "mozilla/mozalloc.h" | ||||
| 154 | #include "mozilla/storage/Variant.h" | ||||
| 155 | #include "nsBaseHashtable.h" | ||||
| 156 | #include "nsCOMPtr.h" | ||||
| 157 | #include "nsClassHashtable.h" | ||||
| 158 | #include "nsContentUtils.h" | ||||
| 159 | #include "nsDebug.h" | ||||
| 160 | #include "nsError.h" | ||||
| 161 | #include "nsEscape.h" | ||||
| 162 | #include "nsHashKeys.h" | ||||
| 163 | #include "nsIAsyncInputStream.h" | ||||
| 164 | #include "nsID.h" | ||||
| 165 | #include "nsIDUtils.h" | ||||
| 166 | #include "nsIDirectoryEnumerator.h" | ||||
| 167 | #include "nsIEventTarget.h" | ||||
| 168 | #include "nsIFile.h" | ||||
| 169 | #include "nsIFileProtocolHandler.h" | ||||
| 170 | #include "nsIFileStreams.h" | ||||
| 171 | #include "nsIFileURL.h" | ||||
| 172 | #include "nsIInputStream.h" | ||||
| 173 | #include "nsIOutputStream.h" | ||||
| 174 | #include "nsIProtocolHandler.h" | ||||
| 175 | #include "nsIRunnable.h" | ||||
| 176 | #include "nsISupports.h" | ||||
| 177 | #include "nsISupportsPriority.h" | ||||
| 178 | #include "nsISupportsUtils.h" | ||||
| 179 | #include "nsIThread.h" | ||||
| 180 | #include "nsIThreadInternal.h" | ||||
| 181 | #include "nsITimer.h" | ||||
| 182 | #include "nsIURIMutator.h" | ||||
| 183 | #include "nsIVariant.h" | ||||
| 184 | #include "nsLiteralString.h" | ||||
| 185 | #include "nsNetCID.h" | ||||
| 186 | #include "nsPrintfCString.h" | ||||
| 187 | #include "nsProxyRelease.h" | ||||
| 188 | #include "nsServiceManagerUtils.h" | ||||
| 189 | #include "nsStreamUtils.h" | ||||
| 190 | #include "nsString.h" | ||||
| 191 | #include "nsStringFlags.h" | ||||
| 192 | #include "nsStringFwd.h" | ||||
| 193 | #include "nsTArray.h" | ||||
| 194 | #include "nsTHashMap.h" | ||||
| 195 | #include "nsTHashSet.h" | ||||
| 196 | #include "nsTHashtable.h" | ||||
| 197 | #include "nsTLiteralString.h" | ||||
| 198 | #include "nsTStringRepr.h" | ||||
| 199 | #include "nsThreadPool.h" | ||||
| 200 | #include "nsThreadUtils.h" | ||||
| 201 | #include "nscore.h" | ||||
| 202 | #include "prinrval.h" | ||||
| 203 | #include "prio.h" | ||||
| 204 | #include "prsystem.h" | ||||
| 205 | #include "prthread.h" | ||||
| 206 | #include "prtime.h" | ||||
| 207 | #include "prtypes.h" | ||||
| 208 | #include "snappy/snappy.h" | ||||
| 209 | |||||
| 210 | struct JSContext; | ||||
| 211 | class JSObject; | ||||
| 212 | template <class T> | ||||
| 213 | class nsPtrHashKey; | ||||
| 214 | |||||
| 215 | #define IDB_DEBUG_LOG(_args) \ | ||||
| 216 | MOZ_LOG(IndexedDatabaseManager::GetLoggingModule(), LogLevel::Debug, _args)do { const ::mozilla::LogModule* moz_real_module = IndexedDatabaseManager ::GetLoggingModule(); if ((__builtin_expect(!!(mozilla::detail ::log_test(moz_real_module, LogLevel::Debug)), 0))) { mozilla ::detail::log_print(moz_real_module, LogLevel::Debug, MOZ_LOG_EXPAND_ARGS _args); } } while (0) | ||||
| 217 | |||||
| 218 | #if defined(MOZ_WIDGET_ANDROID) | ||||
| 219 | # define IDB_MOBILE | ||||
| 220 | #endif | ||||
| 221 | |||||
| 222 | // Helper macros to reduce assertion verbosity | ||||
| 223 | // AUUF == ASSERT_UNREACHABLE_UNLESS_FUZZING | ||||
| 224 | #ifdef DEBUG1 | ||||
| 225 | # ifdef FUZZING | ||||
| 226 | # define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 226); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" ... ")"); do { MOZ_CrashSequence(__null, 226); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) NS_WARNING(__VA_ARGS__)NS_DebugBreak(NS_DEBUG_WARNING, __VA_ARGS__, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 226) | ||||
| 227 | # else | ||||
| 228 | # define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 228); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" ... ")"); do { MOZ_CrashSequence(__null, 228); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) MOZ_ASSERT(false, __VA_ARGS__)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" __VA_ARGS__ ")" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 228); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" __VA_ARGS__ ")"); do { MOZ_CrashSequence(__null, 228); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 229 | # endif | ||||
| 230 | # define NS_AUUF_OR_WARN_IF(cond)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cond" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cond" ")"); do { MOZ_CrashSequence(__null, 230); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cond)) \ | ||||
| 231 | [](bool aCond) { \ | ||||
| 232 | if (MOZ_UNLIKELY(aCond)(__builtin_expect(!!(aCond), 0))) { \ | ||||
| 233 | NS_AUUF_OR_WARN(#cond)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" #cond ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 233); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" #cond ")"); do { MOZ_CrashSequence(__null, 233); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); \ | ||||
| 234 | } \ | ||||
| 235 | return aCond; \ | ||||
| 236 | }((cond)) | ||||
| 237 | #else | ||||
| 238 | # define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 238); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" ... ")"); do { MOZ_CrashSequence(__null, 238); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) \ | ||||
| 239 | do { \ | ||||
| 240 | } while (false) | ||||
| 241 | # define NS_AUUF_OR_WARN_IF(cond)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cond" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 241); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cond" ")"); do { MOZ_CrashSequence(__null, 241); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cond)) static_cast<bool>(cond) | ||||
| 242 | #endif | ||||
| 243 | |||||
| 244 | namespace mozilla { | ||||
| 245 | |||||
| 246 | namespace dom::indexedDB { | ||||
| 247 | |||||
| 248 | using namespace mozilla::dom::quota; | ||||
| 249 | using namespace mozilla::ipc; | ||||
| 250 | using mozilla::dom::quota::Client; | ||||
| 251 | |||||
| 252 | namespace { | ||||
| 253 | |||||
| 254 | class ConnectionPool; | ||||
| 255 | class Database; | ||||
| 256 | struct DatabaseActorInfo; | ||||
| 257 | class DatabaseFile; | ||||
| 258 | class DatabaseLoggingInfo; | ||||
| 259 | class DatabaseMaintenance; | ||||
| 260 | class Factory; | ||||
| 261 | class Maintenance; | ||||
| 262 | class OpenDatabaseOp; | ||||
| 263 | class TransactionBase; | ||||
| 264 | class TransactionDatabaseOperationBase; | ||||
| 265 | class VersionChangeTransaction; | ||||
| 266 | template <bool StatementHasIndexKeyBindings> | ||||
| 267 | struct ValuePopulateResponseHelper; | ||||
| 268 | |||||
| 269 | /******************************************************************************* | ||||
| 270 | * Constants | ||||
| 271 | ******************************************************************************/ | ||||
| 272 | |||||
| 273 | const int32_t kStorageProgressGranularity = 1000; | ||||
| 274 | |||||
| 275 | // Changing the value here will override the page size of new databases only. | ||||
| 276 | // A journal mode change and VACUUM are needed to change existing databases, so | ||||
| 277 | // the best way to do that is to use the schema version upgrade mechanism. | ||||
| 278 | const uint32_t kSQLitePageSizeOverride = | ||||
| 279 | #ifdef IDB_MOBILE | ||||
| 280 | 2048; | ||||
| 281 | #else | ||||
| 282 | 4096; | ||||
| 283 | #endif | ||||
| 284 | |||||
| 285 | static_assert(kSQLitePageSizeOverride == /* mozStorage default */ 0 || | ||||
| 286 | (kSQLitePageSizeOverride % 2 == 0 && | ||||
| 287 | kSQLitePageSizeOverride >= 512 && | ||||
| 288 | kSQLitePageSizeOverride <= 65536), | ||||
| 289 | "Must be 0 (disabled) or a power of 2 between 512 and 65536!"); | ||||
| 290 | |||||
| 291 | // Set to -1 to use SQLite's default, 0 to disable, or some positive number to | ||||
| 292 | // enforce a custom limit. | ||||
| 293 | const int32_t kMaxWALPages = 5000; // 20MB on desktop, 10MB on mobile. | ||||
| 294 | |||||
| 295 | // Set to some multiple of the page size to grow the database in larger chunks. | ||||
| 296 | const uint32_t kSQLiteGrowthIncrement = kSQLitePageSizeOverride * 2; | ||||
| 297 | |||||
| 298 | static_assert(kSQLiteGrowthIncrement >= 0 && | ||||
| 299 | kSQLiteGrowthIncrement % kSQLitePageSizeOverride == 0 && | ||||
| 300 | kSQLiteGrowthIncrement < uint32_t(INT32_MAX(2147483647)), | ||||
| 301 | "Must be 0 (disabled) or a positive multiple of the page size!"); | ||||
| 302 | |||||
| 303 | // The maximum number of threads that can be used for database activity at a | ||||
| 304 | // single time. Please keep in sync with the constants in | ||||
| 305 | // test_connection_idle_maintenance*.js tests | ||||
| 306 | const uint32_t kMaxConnectionThreadCount = 20; | ||||
| 307 | |||||
| 308 | static_assert(kMaxConnectionThreadCount, "Must have at least one thread!"); | ||||
| 309 | |||||
| 310 | // The maximum number of threads to keep when idle. Until we switch to the STS | ||||
| 311 | // pool, we can reduce the number of idle threads kept around thanks to the | ||||
| 312 | // grace timeout. | ||||
| 313 | const uint32_t kMaxIdleConnectionThreadCount = 1; | ||||
| 314 | |||||
| 315 | static_assert(kMaxConnectionThreadCount >= kMaxIdleConnectionThreadCount, | ||||
| 316 | "Idle thread limit must be less than total thread limit!"); | ||||
| 317 | |||||
| 318 | // The length of time that wanted idle threads will stay alive before being shut | ||||
| 319 | // down. | ||||
| 320 | const uint32_t kConnectionThreadMaxIdleMS = 30 * 1000; // 30 seconds | ||||
| 321 | |||||
| 322 | // The length of time that excess idle threads will stay alive before being shut | ||||
| 323 | // down. | ||||
| 324 | const uint32_t kConnectionThreadGraceIdleMS = 500; // 0.5 seconds | ||||
| 325 | |||||
| 326 | // The length of time that database connections will be held open after all | ||||
| 327 | // transactions have completed before doing idle maintenance. Please keep in | ||||
| 328 | // sync with the timeouts in test_connection_idle_maintenance*.js tests | ||||
| 329 | const uint32_t kConnectionIdleMaintenanceMS = 2 * 1000; // 2 seconds | ||||
| 330 | |||||
| 331 | // The length of time that database connections will be held open after all | ||||
| 332 | // transactions and maintenance have completed. | ||||
| 333 | const uint32_t kConnectionIdleCloseMS = 10 * 1000; // 10 seconds | ||||
| 334 | |||||
| 335 | #define SAVEPOINT_CLAUSE"SAVEPOINT sp;"_ns "SAVEPOINT sp;"_ns | ||||
| 336 | |||||
| 337 | // For efficiency reasons, kEncryptedStreamBlockSize must be a multiple of large | ||||
| 338 | // 4k disk sectors. | ||||
| 339 | static_assert(kEncryptedStreamBlockSize % 4096 == 0); | ||||
| 340 | // Similarly, the file copy buffer size must be a multiple of the encrypted | ||||
| 341 | // block size. | ||||
| 342 | static_assert(kFileCopyBufferSize % kEncryptedStreamBlockSize == 0); | ||||
| 343 | |||||
| 344 | constexpr auto kFileManagerDirectoryNameSuffix = u".files"_ns; | ||||
| 345 | constexpr auto kSQLiteSuffix = u".sqlite"_ns; | ||||
| 346 | constexpr auto kSQLiteJournalSuffix = u".sqlite-journal"_ns; | ||||
| 347 | constexpr auto kSQLiteSHMSuffix = u".sqlite-shm"_ns; | ||||
| 348 | constexpr auto kSQLiteWALSuffix = u".sqlite-wal"_ns; | ||||
| 349 | |||||
| 350 | // The following constants define all names of binding parameters in statements, | ||||
| 351 | // where they are bound by name. This should include all parameter names which | ||||
| 352 | // are bound by name. Binding may be done by index when the statement definition | ||||
| 353 | // and binding are done in the same local scope, and no other reasons prevent | ||||
| 354 | // using the indexes (e.g. multiple statement variants with differing number or | ||||
| 355 | // order of parameters). Neither the styles of specifying parameter names | ||||
| 356 | // (literally vs. via these constants) nor the binding styles (by index vs. by | ||||
| 357 | // name) should not be mixed for the same statement. The decision must be made | ||||
| 358 | // for each statement based on the proximity of statement and binding calls. | ||||
| 359 | constexpr auto kStmtParamNameCurrentKey = "current_key"_ns; | ||||
| 360 | constexpr auto kStmtParamNameRangeBound = "range_bound"_ns; | ||||
| 361 | constexpr auto kStmtParamNameObjectStorePosition = "object_store_position"_ns; | ||||
| 362 | constexpr auto kStmtParamNameLowerKey = "lower_key"_ns; | ||||
| 363 | constexpr auto kStmtParamNameUpperKey = "upper_key"_ns; | ||||
| 364 | constexpr auto kStmtParamNameKey = "key"_ns; | ||||
| 365 | constexpr auto kStmtParamNameObjectStoreId = "object_store_id"_ns; | ||||
| 366 | constexpr auto kStmtParamNameIndexId = "index_id"_ns; | ||||
| 367 | // TODO: Maybe the uses of kStmtParamNameId should be replaced by more | ||||
| 368 | // specific constants such as kStmtParamNameObjectStoreId. | ||||
| 369 | constexpr auto kStmtParamNameId = "id"_ns; | ||||
| 370 | constexpr auto kStmtParamNameValue = "value"_ns; | ||||
| 371 | constexpr auto kStmtParamNameObjectDataKey = "object_data_key"_ns; | ||||
| 372 | constexpr auto kStmtParamNameIndexDataValues = "index_data_values"_ns; | ||||
| 373 | constexpr auto kStmtParamNameData = "data"_ns; | ||||
| 374 | constexpr auto kStmtParamNameFileIds = "file_ids"_ns; | ||||
| 375 | constexpr auto kStmtParamNameValueLocale = "value_locale"_ns; | ||||
| 376 | constexpr auto kStmtParamNameLimit = "limit"_ns; | ||||
| 377 | |||||
| 378 | // The following constants define some names of columns in tables, which are | ||||
| 379 | // referred to in remote locations, e.g. in calls to | ||||
| 380 | // GetBindingClauseForKeyRange. | ||||
| 381 | constexpr auto kColumnNameKey = "key"_ns; | ||||
| 382 | constexpr auto kColumnNameValue = "value"_ns; | ||||
| 383 | constexpr auto kColumnNameAliasSortKey = "sort_column"_ns; | ||||
| 384 | |||||
| 385 | // The deletion marker file is created before RemoveDatabaseFilesAndDirectory | ||||
| 386 | // begins deleting a database. It is removed as the last step of deletion. If a | ||||
| 387 | // deletion marker file is found when initializing the origin, the deletion | ||||
| 388 | // routine is run again to ensure that the database and all of its related files | ||||
| 389 | // are removed. The primary goal of this mechanism is to avoid situations where | ||||
| 390 | // a database has been partially deleted, leading to inconsistent state for the | ||||
| 391 | // origin. | ||||
| 392 | constexpr auto kIdbDeletionMarkerFilePrefix = u"idb-deleting-"_ns; | ||||
| 393 | |||||
| 394 | const uint32_t kDeleteTimeoutMs = 1000; | ||||
| 395 | |||||
| 396 | #ifdef DEBUG1 | ||||
| 397 | |||||
| 398 | const int32_t kDEBUGThreadPriority = nsISupportsPriority::PRIORITY_NORMAL; | ||||
| 399 | const uint32_t kDEBUGThreadSleepMS = 0; | ||||
| 400 | |||||
| 401 | // Set to a non-zero number to enable debugging of transaction event targets. | ||||
| 402 | // It will cause sleeping after every transaction runnable! | ||||
| 403 | // | ||||
| 404 | // This can be useful for discovering race conditions related to switching to | ||||
| 405 | // another thread. Such races are usually avoided by using MozPromise or | ||||
| 406 | // RunAfterProcessingCurrentEvent. Chaos mode doesn't always help with | ||||
| 407 | // uncovering these issues, and only a precisely targeted sleep call can | ||||
| 408 | // simulate the problem. | ||||
| 409 | const uint32_t kDEBUGTransactionThreadSleepMS = 0; | ||||
| 410 | |||||
| 411 | // Make sure that we notice if we ever accidentally check in a non-zero value. | ||||
| 412 | # ifdef MOZILLA_OFFICIAL | ||||
| 413 | static_assert(kDEBUGTransactionThreadSleepMS == 0); | ||||
| 414 | # endif | ||||
| 415 | |||||
| 416 | #endif | ||||
| 417 | |||||
| 418 | /******************************************************************************* | ||||
| 419 | * Metadata classes | ||||
| 420 | ******************************************************************************/ | ||||
| 421 | |||||
| 422 | // Can be instantiated either on the QuotaManager IO thread or on a | ||||
| 423 | // versionchange transaction thread. These threads can never race so this is | ||||
| 424 | // totally safe. | ||||
| 425 | struct FullIndexMetadata { | ||||
| 426 | IndexMetadata mCommonMetadata = {0, nsString(), KeyPath(0), nsCString(), | ||||
| 427 | false, false, false}; | ||||
| 428 | |||||
| 429 | FlippedOnce<false> mDeleted; | ||||
| 430 | |||||
| 431 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FullIndexMetadata)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<FullIndexMetadata>, "Reference-counted class " "FullIndexMetadata" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 431); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 431 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("FullIndexMetadata"), (uint32_t)(sizeof(*this))); return ( nsrefcnt)count; } MozExternalRefCountType Release(void) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 431); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 431 ); __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: | ||||
| 432 | |||||
| 433 | private: | ||||
| 434 | ~FullIndexMetadata() = default; | ||||
| 435 | }; | ||||
| 436 | |||||
| 437 | using IndexTable = nsTHashMap<nsUint64HashKey, SafeRefPtr<FullIndexMetadata>>; | ||||
| 438 | |||||
| 439 | // Can be instantiated either on the QuotaManager IO thread or on a | ||||
| 440 | // versionchange transaction thread. These threads can never race so this is | ||||
| 441 | // totally safe. | ||||
| 442 | struct FullObjectStoreMetadata { | ||||
| 443 | ObjectStoreMetadata mCommonMetadata; | ||||
| 444 | IndexTable mIndexes; | ||||
| 445 | |||||
| 446 | // The auto increment ids are touched on both the background thread and the | ||||
| 447 | // transaction I/O thread, and they must be kept in sync, so we need a mutex | ||||
| 448 | // to protect them. | ||||
| 449 | struct AutoIncrementIds { | ||||
| 450 | int64_t next; | ||||
| 451 | int64_t committed; | ||||
| 452 | }; | ||||
| 453 | DataMutex<AutoIncrementIds> mAutoIncrementIds; | ||||
| 454 | |||||
| 455 | FlippedOnce<false> mDeleted; | ||||
| 456 | |||||
| 457 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FullObjectStoreMetadata)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<FullObjectStoreMetadata>, "Reference-counted class " "FullObjectStoreMetadata" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 457); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 457 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("FullObjectStoreMetadata"), (uint32_t)(sizeof(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 457); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 457 ); __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:; | ||||
| 458 | |||||
| 459 | bool HasLiveIndexes() const; | ||||
| 460 | |||||
| 461 | FullObjectStoreMetadata(ObjectStoreMetadata aCommonMetadata, | ||||
| 462 | const AutoIncrementIds& aAutoIncrementIds) | ||||
| 463 | : mCommonMetadata{std::move(aCommonMetadata)}, | ||||
| 464 | mAutoIncrementIds{AutoIncrementIds{aAutoIncrementIds}, | ||||
| 465 | "FullObjectStoreMetadata"} {} | ||||
| 466 | |||||
| 467 | private: | ||||
| 468 | ~FullObjectStoreMetadata() = default; | ||||
| 469 | }; | ||||
| 470 | |||||
| 471 | using ObjectStoreTable = | ||||
| 472 | nsTHashMap<nsUint64HashKey, SafeRefPtr<FullObjectStoreMetadata>>; | ||||
| 473 | |||||
| 474 | static_assert( | ||||
| 475 | std::is_same_v< | ||||
| 476 | IndexOrObjectStoreId, | ||||
| 477 | std::remove_cvref_t<decltype(std::declval<const ObjectStoreGetParams&>() | ||||
| 478 | .objectStoreId())>>); | ||||
| 479 | static_assert(std::is_same_v< | ||||
| 480 | IndexOrObjectStoreId, | ||||
| 481 | std::remove_cvref_t<decltype(std::declval<const IndexGetParams&>() | ||||
| 482 | .objectStoreId())>>); | ||||
| 483 | |||||
| 484 | struct 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 | |||||
| 504 | template <class Enumerable> | ||||
| 505 | auto 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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 509); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId" ")"); do { MOZ_CrashSequence(__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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 514); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey() != 0" ")"); do { MOZ_CrashSequence(__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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 517); AnnotateMozCrashReason("MOZ_ASSERT" "(" "value" ")"); do { MOZ_CrashSequence(__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. | ||||
| 536 | uint32_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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 539); AnnotateMozCrashReason ("MOZ_ASSERT" "(" "aBits < 32" ")"); do { MOZ_CrashSequence (__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 | |||||
| 553 | Result<nsCOMPtr<nsIFileURL>, nsresult> GetDatabaseFileURL( | ||||
| 554 | nsIFile& aDatabaseFile, const int64_t aDirectoryLockId, | ||||
| 555 | const Maybe<CipherKey>& aMaybeKey) { | ||||
| 556 | MOZ_ASSERT(aDirectoryLockId >= -1)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectoryLockId >= -1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= -1))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= -1" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 556); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1" ")"); do { MOZ_CrashSequence(__null, 556); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 557 | |||||
| 558 | QM_TRY_INSPECT(auto tryResult807 = (::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 (!!(tryResult807.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\")" , tryResult807.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 562, mozilla::dom::quota::Severity::Error); return tryResult807 .propagateErr(); } const auto& protocolHandler = tryResult807 .inspect(); | ||||
| 559 | const auto& protocolHandler,auto tryResult807 = (::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 (!!(tryResult807.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\")" , tryResult807.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 562, mozilla::dom::quota::Severity::Error); return tryResult807 .propagateErr(); } const auto& protocolHandler = tryResult807 .inspect(); | ||||
| 560 | MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIProtocolHandler>,auto tryResult807 = (::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 (!!(tryResult807.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\")" , tryResult807.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 562, mozilla::dom::quota::Severity::Error); return tryResult807 .propagateErr(); } const auto& protocolHandler = tryResult807 .inspect(); | ||||
| 561 | MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult807 = (::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 (!!(tryResult807.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\")" , tryResult807.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 562, mozilla::dom::quota::Severity::Error); return tryResult807 .propagateErr(); } const auto& protocolHandler = tryResult807 .inspect(); | ||||
| 562 | NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "file"))auto tryResult807 = (::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 (!!(tryResult807.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\")" , tryResult807.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 562, mozilla::dom::quota::Severity::Error); return tryResult807 .propagateErr(); } const auto& protocolHandler = tryResult807 .inspect();; | ||||
| 563 | |||||
| 564 | QM_TRY_INSPECT(const auto& fileHandler,auto tryResult808 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler > >([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs) ...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult808 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)" , tryResult808.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 567, mozilla::dom::quota::Severity::Error); return tryResult808 .propagateErr(); } const auto& fileHandler = tryResult808 .inspect(); | ||||
| 565 | MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIFileProtocolHandler>,auto tryResult808 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler > >([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs) ...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult808 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)" , tryResult808.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 567, mozilla::dom::quota::Severity::Error); return tryResult808 .propagateErr(); } const auto& fileHandler = tryResult808 .inspect(); | ||||
| 566 | MOZ_SELECT_OVERLOAD(do_QueryInterface),auto tryResult808 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler > >([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs) ...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult808 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)" , tryResult808.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 567, mozilla::dom::quota::Severity::Error); return tryResult808 .propagateErr(); } const auto& fileHandler = tryResult808 .inspect(); | ||||
| 567 | protocolHandler))auto tryResult808 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler > >([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs) ...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult808 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)" , tryResult808.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 567, mozilla::dom::quota::Severity::Error); return tryResult808 .propagateErr(); } const auto& fileHandler = tryResult808 .inspect();; | ||||
| 568 | |||||
| 569 | QM_TRY_INSPECT(const auto& mutator, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult809 = (::mozilla::ToResultInvoke< nsCOMPtr< nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail ::DerefedType<decltype(fileHandler)>::NewFileURIMutator ), (fileHandler), &aDatabaseFile)); if ((__builtin_expect (!!(tryResult809.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)" , tryResult809.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 571, mozilla::dom::quota::Severity::Error); return tryResult809 .propagateErr(); } const auto& mutator = tryResult809.inspect (); | ||||
| 570 | nsCOMPtr<nsIURIMutator>, fileHandler,auto tryResult809 = (::mozilla::ToResultInvoke< nsCOMPtr< nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail ::DerefedType<decltype(fileHandler)>::NewFileURIMutator ), (fileHandler), &aDatabaseFile)); if ((__builtin_expect (!!(tryResult809.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)" , tryResult809.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 571, mozilla::dom::quota::Severity::Error); return tryResult809 .propagateErr(); } const auto& mutator = tryResult809.inspect (); | ||||
| 571 | NewFileURIMutator, &aDatabaseFile))auto tryResult809 = (::mozilla::ToResultInvoke< nsCOMPtr< nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail ::DerefedType<decltype(fileHandler)>::NewFileURIMutator ), (fileHandler), &aDatabaseFile)); if ((__builtin_expect (!!(tryResult809.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)" , tryResult809.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 571, mozilla::dom::quota::Severity::Error); return tryResult809 .propagateErr(); } const auto& mutator = tryResult809.inspect ();; | ||||
| 572 | |||||
| 573 | // aDirectoryLockId should only be -1 when we are called | ||||
| 574 | // - from DatabaseFileManager::InitDirectory when the temporary storage | ||||
| 575 | // hasn't been initialized yet. At that time, the in-memory objects (e.g. | ||||
| 576 | // OriginInfo) are only being created so it doesn't make sense to tunnel | ||||
| 577 | // quota information to QuotaVFS to get corresponding QuotaObject instances | ||||
| 578 | // for SQLite files. | ||||
| 579 | // - from DeleteDatabaseOp::LoadPreviousVersion, since this might require | ||||
| 580 | // temporarily exceeding the quota limit before the database can be | ||||
| 581 | // deleted. | ||||
| 582 | const nsCString directoryLockIdClause = | ||||
| 583 | "&directoryLockId="_ns + IntToCString(aDirectoryLockId); | ||||
| 584 | |||||
| 585 | const auto keyClause = [&aMaybeKey] { | ||||
| 586 | nsAutoCString keyClause; | ||||
| 587 | if (aMaybeKey) { | ||||
| 588 | keyClause.AssignLiteral("&key="); | ||||
| 589 | for (uint8_t byte : IndexedDBCipherStrategy::SerializeKey(*aMaybeKey)) { | ||||
| 590 | keyClause.AppendPrintf("%02x", byte); | ||||
| 591 | } | ||||
| 592 | } | ||||
| 593 | return keyClause; | ||||
| 594 | }(); | ||||
| 595 | |||||
| 596 | QM_TRY_UNWRAP(auto result, ([&mutator, &directoryLockIdClause, &keyClause] {auto tryResult810 = (([&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 (!!(tryResult810.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); }())" , tryResult810.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 605, mozilla::dom::quota::Severity::Error); return tryResult810 .propagateErr(); } auto result = tryResult810.unwrap(); | ||||
| 597 | nsCOMPtr<nsIFileURL> result;auto tryResult810 = (([&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 (!!(tryResult810.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); }())" , tryResult810.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 605, mozilla::dom::quota::Severity::Error); return tryResult810 .propagateErr(); } auto result = tryResult810.unwrap(); | ||||
| 598 | nsresult rv = NS_MutateURI(mutator)auto tryResult810 = (([&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 (!!(tryResult810.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); }())" , tryResult810.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 605, mozilla::dom::quota::Severity::Error); return tryResult810 .propagateErr(); } auto result = tryResult810.unwrap(); | ||||
| 599 | .SetQuery("cache=private"_ns +auto tryResult810 = (([&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 (!!(tryResult810.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); }())" , tryResult810.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 605, mozilla::dom::quota::Severity::Error); return tryResult810 .propagateErr(); } auto result = tryResult810.unwrap(); | ||||
| 600 | directoryLockIdClause + keyClause)auto tryResult810 = (([&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 (!!(tryResult810.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); }())" , tryResult810.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 605, mozilla::dom::quota::Severity::Error); return tryResult810 .propagateErr(); } auto result = tryResult810.unwrap(); | ||||
| 601 | .Finalize(result);auto tryResult810 = (([&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 (!!(tryResult810.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); }())" , tryResult810.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 605, mozilla::dom::quota::Severity::Error); return tryResult810 .propagateErr(); } auto result = tryResult810.unwrap(); | ||||
| 602 | return NS_SUCCEEDED(rv)auto tryResult810 = (([&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 (!!(tryResult810.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); }())" , tryResult810.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 605, mozilla::dom::quota::Severity::Error); return tryResult810 .propagateErr(); } auto result = tryResult810.unwrap(); | ||||
| 603 | ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result}auto tryResult810 = (([&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 (!!(tryResult810.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); }())" , tryResult810.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 605, mozilla::dom::quota::Severity::Error); return tryResult810 .propagateErr(); } auto result = tryResult810.unwrap(); | ||||
| 604 | : Err(rv);auto tryResult810 = (([&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 (!!(tryResult810.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); }())" , tryResult810.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 605, mozilla::dom::quota::Severity::Error); return tryResult810 .propagateErr(); } auto result = tryResult810.unwrap(); | ||||
| 605 | }()))auto tryResult810 = (([&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 (!!(tryResult810.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); }())" , tryResult810.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 605, mozilla::dom::quota::Severity::Error); return tryResult810 .propagateErr(); } auto result = tryResult810.unwrap();; | ||||
| 606 | |||||
| 607 | return result; | ||||
| 608 | } | ||||
| 609 | |||||
| 610 | nsLiteralCString GetDefaultSynchronousMode() { | ||||
| 611 | return IndexedDatabaseManager::FullSynchronous() ? "FULL"_ns : "NORMAL"_ns; | ||||
| 612 | } | ||||
| 613 | |||||
| 614 | nsresult SetDefaultPragmas(mozIStorageConnection& aConnection) { | ||||
| 615 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 615); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 615); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 616 | |||||
| 617 | static constexpr auto kBuiltInPragmas = | ||||
| 618 | // We use foreign keys in DEBUG builds only because there is a performance | ||||
| 619 | // cost to using them. | ||||
| 620 | "PRAGMA foreign_keys = " | ||||
| 621 | #ifdef DEBUG1 | ||||
| 622 | "ON" | ||||
| 623 | #else | ||||
| 624 | "OFF" | ||||
| 625 | #endif | ||||
| 626 | ";" | ||||
| 627 | |||||
| 628 | // The "INSERT OR REPLACE" statement doesn't fire the update trigger, | ||||
| 629 | // instead it fires only the insert trigger. This confuses the update | ||||
| 630 | // refcount function. This behavior changes with enabled recursive | ||||
| 631 | // triggers, so the statement fires the delete trigger first and then the | ||||
| 632 | // insert trigger. | ||||
| 633 | "PRAGMA recursive_triggers = ON;" | ||||
| 634 | |||||
| 635 | // We aggressively truncate the database file when idle so don't bother | ||||
| 636 | // overwriting the WAL with 0 during active periods. | ||||
| 637 | "PRAGMA secure_delete = OFF;"_ns; | ||||
| 638 | |||||
| 639 | QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))){auto tryResult811 = (ToResult(aConnection.ExecuteSimpleSQL(kBuiltInPragmas ))); static_assert(std::is_empty_v<typename decltype(tryResult811 )::ok_type>); if ((__builtin_expect(!!(tryResult811.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))" , tryResult811.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 639, mozilla::dom::quota::Severity::Error); return tryResult811 .propagateErr(); }}; | ||||
| 640 | |||||
| 641 | QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(nsAutoCString{{auto tryResult812 = (ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString { "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns }))); static_assert(std::is_empty_v<typename decltype(tryResult812 )::ok_type>); if ((__builtin_expect(!!(tryResult812.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))" , tryResult812.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 642, mozilla::dom::quota::Severity::Error); return tryResult812 .propagateErr(); }} | ||||
| 642 | "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns}))){auto tryResult812 = (ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString { "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns }))); static_assert(std::is_empty_v<typename decltype(tryResult812 )::ok_type>); if ((__builtin_expect(!!(tryResult812.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))" , tryResult812.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 642, mozilla::dom::quota::Severity::Error); return tryResult812 .propagateErr(); }}; | ||||
| 643 | |||||
| 644 | #ifndef IDB_MOBILE | ||||
| 645 | if (kSQLiteGrowthIncrement) { | ||||
| 646 | // This is just an optimization so ignore the failure if the disk is | ||||
| 647 | // currently too full. | ||||
| 648 | QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult813 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult813)::ok_type>); if ((__builtin_expect(!!(tryResult813 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 655, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult813.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, mozilla::dom::quota::Severity::Error); return tryResult813 .propagateErr(); }} | ||||
| 649 | // Expression.{auto tryResult813 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult813)::ok_type>); if ((__builtin_expect(!!(tryResult813 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 655, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult813.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, mozilla::dom::quota::Severity::Error); return tryResult813 .propagateErr(); }} | ||||
| 650 | MOZ_TO_RESULT({auto tryResult813 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult813)::ok_type>); if ((__builtin_expect(!!(tryResult813 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 655, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult813.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, mozilla::dom::quota::Severity::Error); return tryResult813 .propagateErr(); }} | ||||
| 651 | aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns)),{auto tryResult813 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult813)::ok_type>); if ((__builtin_expect(!!(tryResult813 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 655, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult813.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, mozilla::dom::quota::Severity::Error); return tryResult813 .propagateErr(); }} | ||||
| 652 | // Predicate.{auto tryResult813 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult813)::ok_type>); if ((__builtin_expect(!!(tryResult813 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 655, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult813.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, mozilla::dom::quota::Severity::Error); return tryResult813 .propagateErr(); }} | ||||
| 653 | IsSpecificError<NS_ERROR_FILE_TOO_BIG>,{auto tryResult813 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult813)::ok_type>); if ((__builtin_expect(!!(tryResult813 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 655, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult813.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, mozilla::dom::quota::Severity::Error); return tryResult813 .propagateErr(); }} | ||||
| 654 | // Fallback.{auto tryResult813 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult813)::ok_type>); if ((__builtin_expect(!!(tryResult813 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 655, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult813.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, mozilla::dom::quota::Severity::Error); return tryResult813 .propagateErr(); }} | ||||
| 655 | ErrToDefaultOk<>)){auto tryResult813 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult813)::ok_type>); if ((__builtin_expect(!!(tryResult813 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 655, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult813.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 655, mozilla::dom::quota::Severity::Error); return tryResult813 .propagateErr(); }}; | ||||
| 656 | } | ||||
| 657 | #endif // IDB_MOBILE | ||||
| 658 | |||||
| 659 | return NS_OK; | ||||
| 660 | } | ||||
| 661 | |||||
| 662 | nsresult SetJournalMode(mozIStorageConnection& aConnection) { | ||||
| 663 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 663); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 664 | |||||
| 665 | // Try enabling WAL mode. This can fail in various circumstances so we have to | ||||
| 666 | // check the results here. | ||||
| 667 | constexpr auto journalModeQueryStart = "PRAGMA journal_mode = "_ns; | ||||
| 668 | constexpr auto journalModeWAL = "wal"_ns; | ||||
| 669 | |||||
| 670 | QM_TRY_INSPECT(const auto& stmt,auto tryResult814 = (CreateAndExecuteSingleStepStatement( aConnection , journalModeQueryStart + journalModeWAL)); if ((__builtin_expect (!!(tryResult814.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)" , tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 672, mozilla::dom::quota::Severity::Error); return tryResult814 .propagateErr(); } const auto& stmt = tryResult814.inspect (); | ||||
| 671 | CreateAndExecuteSingleStepStatement(auto tryResult814 = (CreateAndExecuteSingleStepStatement( aConnection , journalModeQueryStart + journalModeWAL)); if ((__builtin_expect (!!(tryResult814.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)" , tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 672, mozilla::dom::quota::Severity::Error); return tryResult814 .propagateErr(); } const auto& stmt = tryResult814.inspect (); | ||||
| 672 | aConnection, journalModeQueryStart + journalModeWAL))auto tryResult814 = (CreateAndExecuteSingleStepStatement( aConnection , journalModeQueryStart + journalModeWAL)); if ((__builtin_expect (!!(tryResult814.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)" , tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 672, mozilla::dom::quota::Severity::Error); return tryResult814 .propagateErr(); } const auto& stmt = tryResult814.inspect ();; | ||||
| 673 | |||||
| 674 | QM_TRY_INSPECT(auto tryResult815 = (::mozilla::ToResultInvoke< nsCString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult815.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult815.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 676, mozilla::dom::quota::Severity::Error); return tryResult815 .propagateErr(); } const auto& journalMode = tryResult815 .inspect(); | ||||
| 675 | const auto& journalMode,auto tryResult815 = (::mozilla::ToResultInvoke< nsCString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult815.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult815.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 676, mozilla::dom::quota::Severity::Error); return tryResult815 .propagateErr(); } const auto& journalMode = tryResult815 .inspect(); | ||||
| 676 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt, GetUTF8String, 0))auto tryResult815 = (::mozilla::ToResultInvoke< nsCString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult815.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult815.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 676, mozilla::dom::quota::Severity::Error); return tryResult815 .propagateErr(); } const auto& journalMode = tryResult815 .inspect();; | ||||
| 677 | |||||
| 678 | if (journalMode.Equals(journalModeWAL)) { | ||||
| 679 | // WAL mode successfully enabled. Maybe set limits on its size here. | ||||
| 680 | if (kMaxWALPages >= 0) { | ||||
| 681 | QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL({auto tryResult816 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns + IntToCString(kMaxWALPages)))); static_assert(std::is_empty_v <typename decltype(tryResult816)::ok_type>); if ((__builtin_expect (!!(tryResult816.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))" , tryResult816.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 682, mozilla::dom::quota::Severity::Error); return tryResult816 .propagateErr(); }} | ||||
| 682 | "PRAGMA wal_autocheckpoint = "_ns + IntToCString(kMaxWALPages)))){auto tryResult816 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns + IntToCString(kMaxWALPages)))); static_assert(std::is_empty_v <typename decltype(tryResult816)::ok_type>); if ((__builtin_expect (!!(tryResult816.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))" , tryResult816.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 682, mozilla::dom::quota::Severity::Error); return tryResult816 .propagateErr(); }}; | ||||
| 683 | } | ||||
| 684 | } else { | ||||
| 685 | NS_WARNING("Failed to set WAL mode, falling back to normal journal mode.")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set WAL mode, falling back to normal journal mode." , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 685); | ||||
| 686 | #ifdef IDB_MOBILE | ||||
| 687 | QM_TRY(MOZ_TO_RESULT({auto tryResult817 = (ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + "truncate"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult817)::ok_type>); if ((__builtin_expect( !!(tryResult817.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))" , tryResult817.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 688, mozilla::dom::quota::Severity::Error); return tryResult817 .propagateErr(); }} | ||||
| 688 | aConnection.ExecuteSimpleSQL(journalModeQueryStart + "truncate"_ns))){auto tryResult817 = (ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + "truncate"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult817)::ok_type>); if ((__builtin_expect( !!(tryResult817.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))" , tryResult817.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 688, mozilla::dom::quota::Severity::Error); return tryResult817 .propagateErr(); }}; | ||||
| 689 | #endif | ||||
| 690 | } | ||||
| 691 | |||||
| 692 | return NS_OK; | ||||
| 693 | } | ||||
| 694 | |||||
| 695 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> OpenDatabase( | ||||
| 696 | mozIStorageService& aStorageService, nsIFileURL& aFileURL, | ||||
| 697 | const uint32_t aTelemetryId = 0) { | ||||
| 698 | const nsAutoCString telemetryFilename = | ||||
| 699 | aTelemetryId ? "indexedDB-"_ns + IntToCString(aTelemetryId) + | ||||
| 700 | NS_ConvertUTF16toUTF8(kSQLiteSuffix) | ||||
| 701 | : nsAutoCString(); | ||||
| 702 | |||||
| 703 | QM_TRY_UNWRAP(auto connection,auto tryResult818 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult818 .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)" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 707, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto connection = tryResult818.unwrap(); | ||||
| 704 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult818 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult818 .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)" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 707, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto connection = tryResult818.unwrap(); | ||||
| 705 | nsCOMPtr<mozIStorageConnection>, aStorageService,auto tryResult818 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult818 .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)" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 707, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto connection = tryResult818.unwrap(); | ||||
| 706 | OpenDatabaseWithFileURL, &aFileURL, telemetryFilename,auto tryResult818 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult818 .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)" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 707, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto connection = tryResult818.unwrap(); | ||||
| 707 | mozIStorageService::CONNECTION_INTERRUPTIBLE))auto tryResult818 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult818 .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)" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 707, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto connection = tryResult818.unwrap();; | ||||
| 708 | |||||
| 709 | return WrapMovingNotNull(std::move(connection)); | ||||
| 710 | } | ||||
| 711 | |||||
| 712 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> | ||||
| 713 | OpenDatabaseAndHandleBusy(mozIStorageService& aStorageService, | ||||
| 714 | nsIFileURL& aFileURL, | ||||
| 715 | const uint32_t aTelemetryId = 0) { | ||||
| 716 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 716); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 716); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 717 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 717); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 717); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 718 | |||||
| 719 | using ConnectionType = Maybe<MovingNotNull<nsCOMPtr<mozIStorageConnection>>>; | ||||
| 720 | |||||
| 721 | QM_TRY_UNWRAP(auto connection,auto tryResult819 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult819 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 731, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, mozilla::dom::quota::Severity::Error); return tryResult819 .propagateErr(); } auto connection = tryResult819.unwrap(); | ||||
| 722 | QM_OR_ELSE_WARN_IF(auto tryResult819 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult819 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 731, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, mozilla::dom::quota::Severity::Error); return tryResult819 .propagateErr(); } auto connection = tryResult819.unwrap(); | ||||
| 723 | // Expressionauto tryResult819 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult819 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 731, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, mozilla::dom::quota::Severity::Error); return tryResult819 .propagateErr(); } auto connection = tryResult819.unwrap(); | ||||
| 724 | OpenDatabase(aStorageService, aFileURL, aTelemetryId)auto tryResult819 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult819 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 731, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, mozilla::dom::quota::Severity::Error); return tryResult819 .propagateErr(); } auto connection = tryResult819.unwrap(); | ||||
| 725 | .map([](auto connection) -> ConnectionType {auto tryResult819 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult819 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 731, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, mozilla::dom::quota::Severity::Error); return tryResult819 .propagateErr(); } auto connection = tryResult819.unwrap(); | ||||
| 726 | return Some(std::move(connection));auto tryResult819 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult819 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 731, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, mozilla::dom::quota::Severity::Error); return tryResult819 .propagateErr(); } auto connection = tryResult819.unwrap(); | ||||
| 727 | }),auto tryResult819 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult819 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 731, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, mozilla::dom::quota::Severity::Error); return tryResult819 .propagateErr(); } auto connection = tryResult819.unwrap(); | ||||
| 728 | // Predicate.auto tryResult819 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult819 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 731, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, mozilla::dom::quota::Severity::Error); return tryResult819 .propagateErr(); } auto connection = tryResult819.unwrap(); | ||||
| 729 | IsSpecificError<NS_ERROR_STORAGE_BUSY>,auto tryResult819 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult819 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 731, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, mozilla::dom::quota::Severity::Error); return tryResult819 .propagateErr(); } auto connection = tryResult819.unwrap(); | ||||
| 730 | // Fallback.auto tryResult819 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult819 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 731, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, mozilla::dom::quota::Severity::Error); return tryResult819 .propagateErr(); } auto connection = tryResult819.unwrap(); | ||||
| 731 | ErrToDefaultOk<ConnectionType>))auto tryResult819 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult819 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 731, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 731, mozilla::dom::quota::Severity::Error); return tryResult819 .propagateErr(); } auto connection = tryResult819.unwrap();; | ||||
| 732 | |||||
| 733 | if (connection.isNothing()) { | ||||
| 734 | #ifdef DEBUG1 | ||||
| 735 | { | ||||
| 736 | nsCString path; | ||||
| 737 | MOZ_ALWAYS_SUCCEEDS(aFileURL.GetFileName(path))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aFileURL.GetFileName(path))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aFileURL.GetFileName(path))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 737); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFileURL.GetFileName(path))" ")"); do { MOZ_CrashSequence(__null, 737); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 738 | |||||
| 739 | nsPrintfCString message( | ||||
| 740 | "Received NS_ERROR_STORAGE_BUSY when attempting to open database " | ||||
| 741 | "'%s', retrying for up to 10 seconds", | ||||
| 742 | path.get()); | ||||
| 743 | NS_WARNING(message.get())NS_DebugBreak(NS_DEBUG_WARNING, message.get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 743); | ||||
| 744 | } | ||||
| 745 | #endif | ||||
| 746 | |||||
| 747 | // Another thread must be checkpointing the WAL. Wait up to 10 seconds for | ||||
| 748 | // that to complete. | ||||
| 749 | const TimeStamp start = TimeStamp::NowLoRes(); | ||||
| 750 | |||||
| 751 | // Use exponential backoff: start at 1ms, double up to 100ms max | ||||
| 752 | uint32_t sleepMs = 1; | ||||
| 753 | constexpr uint32_t kMaxSleepMs = 100; | ||||
| 754 | |||||
| 755 | do { | ||||
| 756 | PR_Sleep(PR_MillisecondsToInterval(sleepMs)); | ||||
| 757 | |||||
| 758 | // Exponential backoff with cap | ||||
| 759 | sleepMs = std::min(sleepMs * 2, kMaxSleepMs); | ||||
| 760 | |||||
| 761 | QM_TRY_UNWRAP(connection,auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 762 | QM_OR_ELSE_WARN_IF(auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 763 | // Expression.auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 764 | OpenDatabase(aStorageService, aFileURL, aTelemetryId)auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 765 | .map([](auto connection) -> ConnectionType {auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 766 | return Some(std::move(connection));auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 767 | }),auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 768 | // Predicate.auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 769 | ([&start](nsresult aValue) {auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 770 | return aValue == NS_ERROR_STORAGE_BUSY &&auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 771 | TimeStamp::NowLoRes() - start <=auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 772 | TimeDuration::FromSeconds(10);auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 773 | }),auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 774 | // Fallback.auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap(); | ||||
| 775 | ErrToDefaultOk<ConnectionType>))auto tryResult820 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult820 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 775, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 775, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); } connection = tryResult820.unwrap();; | ||||
| 776 | } while (connection.isNothing()); | ||||
| 777 | } | ||||
| 778 | |||||
| 779 | return connection.extract(); | ||||
| 780 | } | ||||
| 781 | |||||
| 782 | // Returns true if a given nsIFile exists and is a directory. Returns false if | ||||
| 783 | // it doesn't exist. Returns an error if it exists, but is not a directory, or | ||||
| 784 | // any other error occurs. | ||||
| 785 | Result<bool, nsresult> ExistsAsDirectory(nsIFile& aDirectory) { | ||||
| 786 | QM_TRY_INSPECT(const bool& exists,auto tryResult821 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult821.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists )" , tryResult821.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 787, mozilla::dom::quota::Severity::Error); return tryResult821 .propagateErr(); } const bool& exists = tryResult821.inspect (); | ||||
| 787 | MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, Exists))auto tryResult821 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult821.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists )" , tryResult821.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 787, mozilla::dom::quota::Severity::Error); return tryResult821 .propagateErr(); } const bool& exists = tryResult821.inspect ();; | ||||
| 788 | |||||
| 789 | if (exists) { | ||||
| 790 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult822 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult822. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory )" , tryResult822.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 791, mozilla::dom::quota::Severity::Error); return tryResult822 .propagateErr(); } const bool& isDirectory = tryResult822 .inspect(); | ||||
| 791 | MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, IsDirectory))auto tryResult822 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult822. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory )" , tryResult822.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 791, mozilla::dom::quota::Severity::Error); return tryResult822 .propagateErr(); } const bool& isDirectory = tryResult822 .inspect();; | ||||
| 792 | |||||
| 793 | QM_TRY(OkIf(isDirectory), Err(NS_ERROR_FAILURE)){auto tryResult823 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult823)::ok_type>); if ((__builtin_expect(!!(tryResult823.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult823.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 793, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError , Err(NS_ERROR_FAILURE)); }}; | ||||
| 794 | } | ||||
| 795 | |||||
| 796 | return exists; | ||||
| 797 | } | ||||
| 798 | |||||
| 799 | constexpr nsresult mapNoDeviceSpaceError(nsresult aRv) { | ||||
| 800 | if (aRv == NS_ERROR_FILE_NO_DEVICE_SPACE) { | ||||
| 801 | // mozstorage translates SQLITE_FULL to | ||||
| 802 | // NS_ERROR_FILE_NO_DEVICE_SPACE, which we know better as | ||||
| 803 | // NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR. | ||||
| 804 | return NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR; | ||||
| 805 | } | ||||
| 806 | return aRv; | ||||
| 807 | } | ||||
| 808 | |||||
| 809 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> | ||||
| 810 | CreateStorageConnection(nsIFile& aDBFile, nsIFile& aFMDirectory, | ||||
| 811 | const nsAString& aName, const nsACString& aOrigin, | ||||
| 812 | const int64_t aDirectoryLockId, | ||||
| 813 | const uint32_t aTelemetryId, | ||||
| 814 | const Maybe<CipherKey>& aMaybeKey) { | ||||
| 815 | AssertIsOnIOThread(); | ||||
| 816 | MOZ_ASSERT(aDirectoryLockId >= -1)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectoryLockId >= -1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= -1))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= -1" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1" ")"); do { MOZ_CrashSequence(__null, 816); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 817 | |||||
| 818 | AUTO_PROFILER_LABEL("CreateStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject818( "CreateStorageConnection" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 819 | |||||
| 820 | QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult824 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult824.isErr()) , 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)" , tryResult824.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 821, mozilla::dom::quota::Severity::Error); return tryResult824 .propagateErr(); } const auto& dbFileUrl = tryResult824.inspect (); | ||||
| 821 | GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey))auto tryResult824 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult824.isErr()) , 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)" , tryResult824.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 821, mozilla::dom::quota::Severity::Error); return tryResult824 .propagateErr(); } const auto& dbFileUrl = tryResult824.inspect ();; | ||||
| 822 | |||||
| 823 | QM_TRY_INSPECT(const auto& storageService,auto tryResult825 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult825.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\")" , tryResult825.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 826, mozilla::dom::quota::Severity::Error); return tryResult825 .propagateErr(); } const auto& storageService = tryResult825 .inspect(); | ||||
| 824 | MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult825 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult825.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\")" , tryResult825.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 826, mozilla::dom::quota::Severity::Error); return tryResult825 .propagateErr(); } const auto& storageService = tryResult825 .inspect(); | ||||
| 825 | MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult825 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult825.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\")" , tryResult825.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 826, mozilla::dom::quota::Severity::Error); return tryResult825 .propagateErr(); } const auto& storageService = tryResult825 .inspect(); | ||||
| 826 | MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult825 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult825.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\")" , tryResult825.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 826, mozilla::dom::quota::Severity::Error); return tryResult825 .propagateErr(); } const auto& storageService = tryResult825 .inspect();; | ||||
| 827 | |||||
| 828 | QM_TRY_UNWRAP(auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 829 | auto connection,auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 830 | QM_OR_ELSE_WARN_IF(auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 831 | // Expression.auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 832 | OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 833 | .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> {auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 834 | return std::move(connection).unwrapBasePtr();auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 835 | }),auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 836 | // Predicate.auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 837 | ([&aName](nsresult aValue) {auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 838 | // If we're just opening the database during origin initialization,auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 839 | // then we don't want to erase any files. The failure here will failauto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 840 | // origin initialization too.auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 841 | return IsDatabaseCorruptionError(aValue) && !aName.IsVoid();auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 842 | }),auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 843 | // Fallback.auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 844 | ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>))auto tryResult826 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult826.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 844, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 844, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap();; | ||||
| 845 | |||||
| 846 | if (!connection) { | ||||
| 847 | // XXX Shouldn't we also update quota usage? | ||||
| 848 | |||||
| 849 | // Nuke the database file. | ||||
| 850 | QM_TRY(MOZ_TO_RESULT(aDBFile.Remove(false))){auto tryResult827 = (ToResult(aDBFile.Remove(false))); static_assert (std::is_empty_v<typename decltype(tryResult827)::ok_type> ); if ((__builtin_expect(!!(tryResult827.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aDBFile.Remove(false))", tryResult827 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 850, mozilla::dom::quota::Severity::Error); return tryResult827 .propagateErr(); }}; | ||||
| 851 | QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult828 = (ExistsAsDirectory(aFMDirectory)); if ((__builtin_expect (!!(tryResult828.isErr()), 0))) { mozilla::dom::quota::HandleError ("ExistsAsDirectory(aFMDirectory)", tryResult828.inspectErr() , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 852, mozilla ::dom::quota::Severity::Error); return tryResult828.propagateErr (); } const bool& existsAsDirectory = tryResult828.inspect (); | ||||
| 852 | ExistsAsDirectory(aFMDirectory))auto tryResult828 = (ExistsAsDirectory(aFMDirectory)); if ((__builtin_expect (!!(tryResult828.isErr()), 0))) { mozilla::dom::quota::HandleError ("ExistsAsDirectory(aFMDirectory)", tryResult828.inspectErr() , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 852, mozilla ::dom::quota::Severity::Error); return tryResult828.propagateErr (); } const bool& existsAsDirectory = tryResult828.inspect ();; | ||||
| 853 | |||||
| 854 | if (existsAsDirectory) { | ||||
| 855 | QM_TRY(MOZ_TO_RESULT(aFMDirectory.Remove(true))){auto tryResult829 = (ToResult(aFMDirectory.Remove(true))); static_assert (std::is_empty_v<typename decltype(tryResult829)::ok_type> ); if ((__builtin_expect(!!(tryResult829.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aFMDirectory.Remove(true))" , tryResult829.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 855, mozilla::dom::quota::Severity::Error); return tryResult829 .propagateErr(); }}; | ||||
| 856 | } | ||||
| 857 | |||||
| 858 | QM_TRY_UNWRAP(connection, OpenDatabaseAndHandleBusy(auto tryResult830 = (OpenDatabaseAndHandleBusy( *storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult830 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)" , tryResult830.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 859, mozilla::dom::quota::Severity::Error); return tryResult830 .propagateErr(); } connection = tryResult830.unwrap(); | ||||
| 859 | *storageService, *dbFileUrl, aTelemetryId))auto tryResult830 = (OpenDatabaseAndHandleBusy( *storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult830 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)" , tryResult830.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 859, mozilla::dom::quota::Severity::Error); return tryResult830 .propagateErr(); } connection = tryResult830.unwrap();; | ||||
| 860 | } | ||||
| 861 | |||||
| 862 | QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult831 = (ToResult(SetDefaultPragmas(*connection) )); static_assert(std::is_empty_v<typename decltype(tryResult831 )::ok_type>); if ((__builtin_expect(!!(tryResult831.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))" , tryResult831.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 862, mozilla::dom::quota::Severity::Error); return tryResult831 .propagateErr(); }}; | ||||
| 863 | QM_TRY(MOZ_TO_RESULT(connection->EnableModule("filesystem"_ns))){auto tryResult832 = (ToResult(connection->EnableModule("filesystem"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult832 )::ok_type>); if ((__builtin_expect(!!(tryResult832.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->EnableModule(\"filesystem\"_ns))" , tryResult832.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult832 .propagateErr(); }}; | ||||
| 864 | |||||
| 865 | // Check to make sure that the database schema is correct. | ||||
| 866 | QM_TRY_INSPECT(const int32_t& schemaVersion,auto tryResult833 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult833 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 867, mozilla::dom::quota::Severity::Error); return tryResult833 .propagateErr(); } const int32_t& schemaVersion = tryResult833 .inspect(); | ||||
| 867 | MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion))auto tryResult833 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult833 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 867, mozilla::dom::quota::Severity::Error); return tryResult833 .propagateErr(); } const int32_t& schemaVersion = tryResult833 .inspect();; | ||||
| 868 | |||||
| 869 | // Unknown schema will fail origin initialization too. | ||||
| 870 | QM_TRY(OkIf(schemaVersion || !aName.IsVoid()),{auto tryResult834 = (OkIf(schemaVersion || !aName.IsVoid())) ; static_assert(std::is_empty_v<typename decltype(tryResult834 )::ok_type>); if ((__builtin_expect(!!(tryResult834.isErr( )), 0))) { auto tryTempError = tryResult834.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 873, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 872, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 872); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion || !aName.IsVoid())", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 871 | Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult834 = (OkIf(schemaVersion || !aName.IsVoid())) ; static_assert(std::is_empty_v<typename decltype(tryResult834 )::ok_type>); if ((__builtin_expect(!!(tryResult834.isErr( )), 0))) { auto tryTempError = tryResult834.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 873, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 872, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 872); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion || !aName.IsVoid())", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 872 | IDB_WARNING("Unable to open IndexedDB database, schema is not set!");{auto tryResult834 = (OkIf(schemaVersion || !aName.IsVoid())) ; static_assert(std::is_empty_v<typename decltype(tryResult834 )::ok_type>); if ((__builtin_expect(!!(tryResult834.isErr( )), 0))) { auto tryTempError = tryResult834.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 873, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 872, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 872); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion || !aName.IsVoid())", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 873 | }){auto tryResult834 = (OkIf(schemaVersion || !aName.IsVoid())) ; static_assert(std::is_empty_v<typename decltype(tryResult834 )::ok_type>); if ((__builtin_expect(!!(tryResult834.isErr( )), 0))) { auto tryTempError = tryResult834.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 873, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 872, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 872); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion || !aName.IsVoid())", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | ||||
| 874 | |||||
| 875 | QM_TRY({auto tryResult835 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult835 )::ok_type>); if ((__builtin_expect(!!(tryResult835.isErr( )), 0))) { auto tryTempError = tryResult835.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 879, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 878, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 878); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 876 | OkIf(schemaVersion <= kSQLiteSchemaVersion),{auto tryResult835 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult835 )::ok_type>); if ((__builtin_expect(!!(tryResult835.isErr( )), 0))) { auto tryTempError = tryResult835.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 879, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 878, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 878); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 877 | Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult835 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult835 )::ok_type>); if ((__builtin_expect(!!(tryResult835.isErr( )), 0))) { auto tryTempError = tryResult835.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 879, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 878, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 878); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 878 | IDB_WARNING("Unable to open IndexedDB database, schema is too high!");{auto tryResult835 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult835 )::ok_type>); if ((__builtin_expect(!!(tryResult835.isErr( )), 0))) { auto tryTempError = tryResult835.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 879, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 878, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 878); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 879 | }){auto tryResult835 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult835 )::ok_type>); if ((__builtin_expect(!!(tryResult835.isErr( )), 0))) { auto tryTempError = tryResult835.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 879, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 878, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 878); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | ||||
| 880 | |||||
| 881 | bool journalModeSet = false; | ||||
| 882 | |||||
| 883 | if (schemaVersion != kSQLiteSchemaVersion) { | ||||
| 884 | const bool newDatabase = !schemaVersion; | ||||
| 885 | |||||
| 886 | if (newDatabase) { | ||||
| 887 | // Set the page size first. | ||||
| 888 | const auto sqlitePageSizeOverride = | ||||
| 889 | aMaybeKey ? 8192 : kSQLitePageSizeOverride; | ||||
| 890 | if (sqlitePageSizeOverride) { | ||||
| 891 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult836 = (ToResult(connection->ExecuteSimpleSQL (nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride )))); static_assert(std::is_empty_v<typename decltype(tryResult836 )::ok_type>); if ((__builtin_expect(!!(tryResult836.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))" , tryResult836.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 892, mozilla::dom::quota::Severity::Error); return tryResult836 .propagateErr(); }} | ||||
| 892 | "PRAGMA page_size = %" PRIu32 ";", sqlitePageSizeOverride)))){auto tryResult836 = (ToResult(connection->ExecuteSimpleSQL (nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride )))); static_assert(std::is_empty_v<typename decltype(tryResult836 )::ok_type>); if ((__builtin_expect(!!(tryResult836.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))" , tryResult836.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 892, mozilla::dom::quota::Severity::Error); return tryResult836 .propagateErr(); }}; | ||||
| 893 | } | ||||
| 894 | |||||
| 895 | // We have to set the auto_vacuum mode before opening a transaction. | ||||
| 896 | QM_TRY((MOZ_TO_RESULT_INVOKE_MEMBER({auto tryResult837 = ((::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(tryResult837 )::ok_type>); if ((__builtin_expect(!!(tryResult837.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))" , tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 907, mozilla::dom::quota::Severity::Error); return tryResult837 .propagateErr(); }} | ||||
| 897 | connection, ExecuteSimpleSQL,{auto tryResult837 = ((::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(tryResult837 )::ok_type>); if ((__builtin_expect(!!(tryResult837.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))" , tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 907, mozilla::dom::quota::Severity::Error); return tryResult837 .propagateErr(); }} | ||||
| 898 | #ifdef IDB_MOBILE{auto tryResult837 = ((::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(tryResult837 )::ok_type>); if ((__builtin_expect(!!(tryResult837.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))" , tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 907, mozilla::dom::quota::Severity::Error); return tryResult837 .propagateErr(); }} | ||||
| 899 | // Turn on full auto_vacuum mode to reclaim disk space on{auto tryResult837 = ((::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(tryResult837 )::ok_type>); if ((__builtin_expect(!!(tryResult837.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))" , tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 907, mozilla::dom::quota::Severity::Error); return tryResult837 .propagateErr(); }} | ||||
| 900 | // mobile devices (at the cost of some COMMIT speed).{auto tryResult837 = ((::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(tryResult837 )::ok_type>); if ((__builtin_expect(!!(tryResult837.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))" , tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 907, mozilla::dom::quota::Severity::Error); return tryResult837 .propagateErr(); }} | ||||
| 901 | "PRAGMA auto_vacuum = FULL;"_ns{auto tryResult837 = ((::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(tryResult837 )::ok_type>); if ((__builtin_expect(!!(tryResult837.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))" , tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 907, mozilla::dom::quota::Severity::Error); return tryResult837 .propagateErr(); }} | ||||
| 902 | #else{auto tryResult837 = ((::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(tryResult837 )::ok_type>); if ((__builtin_expect(!!(tryResult837.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))" , tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 907, mozilla::dom::quota::Severity::Error); return tryResult837 .propagateErr(); }} | ||||
| 903 | // Turn on incremental auto_vacuum mode on desktop builds.{auto tryResult837 = ((::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(tryResult837 )::ok_type>); if ((__builtin_expect(!!(tryResult837.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))" , tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 907, mozilla::dom::quota::Severity::Error); return tryResult837 .propagateErr(); }} | ||||
| 904 | "PRAGMA auto_vacuum = INCREMENTAL;"_ns{auto tryResult837 = ((::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(tryResult837 )::ok_type>); if ((__builtin_expect(!!(tryResult837.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))" , tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 907, mozilla::dom::quota::Severity::Error); return tryResult837 .propagateErr(); }} | ||||
| 905 | #endif{auto tryResult837 = ((::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(tryResult837 )::ok_type>); if ((__builtin_expect(!!(tryResult837.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))" , tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 907, mozilla::dom::quota::Severity::Error); return tryResult837 .propagateErr(); }} | ||||
| 906 | ){auto tryResult837 = ((::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(tryResult837 )::ok_type>); if ((__builtin_expect(!!(tryResult837.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))" , tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 907, mozilla::dom::quota::Severity::Error); return tryResult837 .propagateErr(); }} | ||||
| 907 | .mapErr(mapNoDeviceSpaceError))){auto tryResult837 = ((::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(tryResult837 )::ok_type>); if ((__builtin_expect(!!(tryResult837.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))" , tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 907, mozilla::dom::quota::Severity::Error); return tryResult837 .propagateErr(); }}; | ||||
| 908 | |||||
| 909 | 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(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 909, mozilla::dom::quota::Severity::Error); return tryResult838 .propagateErr(); }}; | ||||
| 910 | |||||
| 911 | journalModeSet = true; | ||||
| 912 | } else { | ||||
| 913 | #ifdef DEBUG1 | ||||
| 914 | // Disable foreign key support while upgrading. This has to be done before | ||||
| 915 | // starting a transaction. | ||||
| 916 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 917); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")"); do { MOZ_CrashSequence(__null, 917); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 917 | connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 917); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")"); do { MOZ_CrashSequence(__null, 917); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 918 | #endif | ||||
| 919 | } | ||||
| 920 | |||||
| 921 | bool vacuumNeeded = false; | ||||
| 922 | |||||
| 923 | mozStorageTransaction transaction( | ||||
| 924 | connection.get(), false, mozIStorageConnection::TRANSACTION_IMMEDIATE); | ||||
| 925 | |||||
| 926 | QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult839 = (ToResult(transaction.Start())); static_assert (std::is_empty_v<typename decltype(tryResult839)::ok_type> ); if ((__builtin_expect(!!(tryResult839.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(transaction.Start())", tryResult839 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 926, mozilla::dom::quota::Severity::Error); return tryResult839 .propagateErr(); }}; | ||||
| 927 | |||||
| 928 | if (newDatabase) { | ||||
| 929 | QM_TRY(MOZ_TO_RESULT(CreateTables(*connection))){auto tryResult840 = (ToResult(CreateTables(*connection))); static_assert (std::is_empty_v<typename decltype(tryResult840)::ok_type> ); if ((__builtin_expect(!!(tryResult840.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(CreateTables(*connection))" , tryResult840.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 929, mozilla::dom::quota::Severity::Error); return tryResult840 .propagateErr(); }}; | ||||
| 930 | |||||
| 931 | #ifdef DEBUG1 | ||||
| 932 | { | ||||
| 933 | QM_TRY_INSPECT(auto tryResult841 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult841 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult841 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 936, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 936); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 936); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & schemaVersion = tryResult841.inspect(); | ||||
| 934 | const int32_t& schemaVersion,auto tryResult841 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult841 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult841 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 936, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 936); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 936); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & schemaVersion = tryResult841.inspect(); | ||||
| 935 | MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion),auto tryResult841 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult841 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult841 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 936, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 936); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 936); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & schemaVersion = tryResult841.inspect(); | ||||
| 936 | QM_ASSERT_UNREACHABLE)auto tryResult841 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult841 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult841 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 936, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 936); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 936); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & schemaVersion = tryResult841.inspect();; | ||||
| 937 | MOZ_ASSERT(schemaVersion == kSQLiteSchemaVersion)do { static_assert( mozilla::detail::AssertionConditionType< decltype(schemaVersion == kSQLiteSchemaVersion)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(schemaVersion == kSQLiteSchemaVersion))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("schemaVersion == kSQLiteSchemaVersion" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 937); AnnotateMozCrashReason("MOZ_ASSERT" "(" "schemaVersion == kSQLiteSchemaVersion" ")"); do { MOZ_CrashSequence(__null, 937); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 938 | } | ||||
| 939 | #endif | ||||
| 940 | |||||
| 941 | // The parameter names are not used, parameters are bound by index only | ||||
| 942 | // locally in the same function. | ||||
| 943 | QM_TRY_INSPECT(auto tryResult842 = (::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(!!(tryResult842.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)" , tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 948, mozilla::dom::quota::Severity::Error); return tryResult842 .propagateErr(); } const auto& stmt = tryResult842.inspect (); | ||||
| 944 | const auto& stmt,auto tryResult842 = (::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(!!(tryResult842.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)" , tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 948, mozilla::dom::quota::Severity::Error); return tryResult842 .propagateErr(); } const auto& stmt = tryResult842.inspect (); | ||||
| 945 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult842 = (::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(!!(tryResult842.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)" , tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 948, mozilla::dom::quota::Severity::Error); return tryResult842 .propagateErr(); } const auto& stmt = tryResult842.inspect (); | ||||
| 946 | nsCOMPtr<mozIStorageStatement>, connection, CreateStatement,auto tryResult842 = (::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(!!(tryResult842.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)" , tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 948, mozilla::dom::quota::Severity::Error); return tryResult842 .propagateErr(); } const auto& stmt = tryResult842.inspect (); | ||||
| 947 | "INSERT INTO database (name, origin) "auto tryResult842 = (::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(!!(tryResult842.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)" , tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 948, mozilla::dom::quota::Severity::Error); return tryResult842 .propagateErr(); } const auto& stmt = tryResult842.inspect (); | ||||
| 948 | "VALUES (:name, :origin)"_ns))auto tryResult842 = (::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(!!(tryResult842.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)" , tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 948, mozilla::dom::quota::Severity::Error); return tryResult842 .propagateErr(); } const auto& stmt = tryResult842.inspect ();; | ||||
| 949 | |||||
| 950 | QM_TRY(MOZ_TO_RESULT(stmt->BindStringByIndex(0, aName))){auto tryResult843 = (ToResult(stmt->BindStringByIndex(0, aName ))); static_assert(std::is_empty_v<typename decltype(tryResult843 )::ok_type>); if ((__builtin_expect(!!(tryResult843.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByIndex(0, aName))" , tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 950, mozilla::dom::quota::Severity::Error); return tryResult843 .propagateErr(); }}; | ||||
| 951 | QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByIndex(1, aOrigin))){auto tryResult844 = (ToResult(stmt->BindUTF8StringByIndex (1, aOrigin))); static_assert(std::is_empty_v<typename decltype (tryResult844)::ok_type>); if ((__builtin_expect(!!(tryResult844 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindUTF8StringByIndex(1, aOrigin))" , tryResult844.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 951, mozilla::dom::quota::Severity::Error); return tryResult844 .propagateErr(); }}; | ||||
| 952 | QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult845 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult845)::ok_type> ); if ((__builtin_expect(!!(tryResult845.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt->Execute())", tryResult845 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 952, mozilla::dom::quota::Severity::Error); return tryResult845 .propagateErr(); }}; | ||||
| 953 | } else { | ||||
| 954 | QM_TRY_UNWRAP(vacuumNeeded, MaybeUpgradeSchema(*connection, schemaVersion,auto tryResult846 = (MaybeUpgradeSchema(*connection, schemaVersion , aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult846 .isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)" , tryResult846.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 955, mozilla::dom::quota::Severity::Error); return tryResult846 .propagateErr(); } vacuumNeeded = tryResult846.unwrap(); | ||||
| 955 | aFMDirectory, aOrigin))auto tryResult846 = (MaybeUpgradeSchema(*connection, schemaVersion , aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult846 .isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)" , tryResult846.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 955, mozilla::dom::quota::Severity::Error); return tryResult846 .propagateErr(); } vacuumNeeded = tryResult846.unwrap();; | ||||
| 956 | } | ||||
| 957 | |||||
| 958 | QM_TRY(MOZ_TO_RESULT_INVOKE_MEMBER(transaction, Commit){auto tryResult847 = (::mozilla::ToResultInvokeMember( (transaction ), &::mozilla::detail::DerefedType<decltype(transaction )>::Commit ) .mapErr(mapNoDeviceSpaceError)); static_assert (std::is_empty_v<typename decltype(tryResult847)::ok_type> ); if ((__builtin_expect(!!(tryResult847.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit ) .mapErr(mapNoDeviceSpaceError)" , tryResult847.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 959, mozilla::dom::quota::Severity::Error); return tryResult847 .propagateErr(); }} | ||||
| 959 | .mapErr(mapNoDeviceSpaceError)){auto tryResult847 = (::mozilla::ToResultInvokeMember( (transaction ), &::mozilla::detail::DerefedType<decltype(transaction )>::Commit ) .mapErr(mapNoDeviceSpaceError)); static_assert (std::is_empty_v<typename decltype(tryResult847)::ok_type> ); if ((__builtin_expect(!!(tryResult847.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit ) .mapErr(mapNoDeviceSpaceError)" , tryResult847.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 959, mozilla::dom::quota::Severity::Error); return tryResult847 .propagateErr(); }}; | ||||
| 960 | |||||
| 961 | #ifdef DEBUG1 | ||||
| 962 | if (!newDatabase) { | ||||
| 963 | // Re-enable foreign key support after doing a foreign key check. | ||||
| 964 | QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult848 = (CreateAndExecuteSingleStepStatement< SingleStepResult ::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult848.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult848.unwrapErr(); mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 968, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 968); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 968); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult848.inspect(); | ||||
| 965 | CreateAndExecuteSingleStepStatement<auto tryResult848 = (CreateAndExecuteSingleStepStatement< SingleStepResult ::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult848.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult848.unwrapErr(); mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 968, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 968); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 968); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult848.inspect(); | ||||
| 966 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult848 = (CreateAndExecuteSingleStepStatement< SingleStepResult ::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult848.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult848.unwrapErr(); mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 968, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 968); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 968); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult848.inspect(); | ||||
| 967 | *connection, "PRAGMA foreign_key_check;"_ns),auto tryResult848 = (CreateAndExecuteSingleStepStatement< SingleStepResult ::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult848.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult848.unwrapErr(); mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 968, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 968); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 968); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult848.inspect(); | ||||
| 968 | QM_ASSERT_UNREACHABLE)auto tryResult848 = (CreateAndExecuteSingleStepStatement< SingleStepResult ::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult848.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult848.unwrapErr(); mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 968, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 968); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 968); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult848.inspect();; | ||||
| 969 | |||||
| 970 | MOZ_ASSERT(!foreignKeyError, "Database has inconsisistent foreign keys!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(!foreignKeyError)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!foreignKeyError))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!foreignKeyError" " (" "Database has inconsisistent foreign keys!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError" ") (" "Database has inconsisistent foreign keys!" ")"); do { MOZ_CrashSequence(__null, 970); __attribute__((nomerge)) ::abort (); } while (false); } } while (false); | ||||
| 971 | |||||
| 972 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 973); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")"); do { MOZ_CrashSequence(__null, 973); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 973 | connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 973); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")"); do { MOZ_CrashSequence(__null, 973); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 974 | } | ||||
| 975 | #endif | ||||
| 976 | |||||
| 977 | if (kSQLitePageSizeOverride && !newDatabase) { | ||||
| 978 | QM_TRY_INSPECT(const auto& stmt,auto tryResult849 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult849 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)" , tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 980, mozilla::dom::quota::Severity::Error); return tryResult849 .propagateErr(); } const auto& stmt = tryResult849.inspect (); | ||||
| 979 | CreateAndExecuteSingleStepStatement(auto tryResult849 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult849 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)" , tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 980, mozilla::dom::quota::Severity::Error); return tryResult849 .propagateErr(); } const auto& stmt = tryResult849.inspect (); | ||||
| 980 | *connection, "PRAGMA page_size;"_ns))auto tryResult849 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult849 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)" , tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 980, mozilla::dom::quota::Severity::Error); return tryResult849 .propagateErr(); } const auto& stmt = tryResult849.inspect ();; | ||||
| 981 | |||||
| 982 | QM_TRY_INSPECT(const int32_t& pageSize,auto tryResult850 = (::mozilla::ToResultInvokeMember( (*stmt) , &::mozilla::detail::DerefedType<decltype(*stmt)>:: GetInt32 , 0)); if ((__builtin_expect(!!(tryResult850.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult850.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 983, mozilla::dom::quota::Severity::Error); return tryResult850 .propagateErr(); } const int32_t& pageSize = tryResult850 .inspect(); | ||||
| 983 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult850 = (::mozilla::ToResultInvokeMember( (*stmt) , &::mozilla::detail::DerefedType<decltype(*stmt)>:: GetInt32 , 0)); if ((__builtin_expect(!!(tryResult850.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult850.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 983, mozilla::dom::quota::Severity::Error); return tryResult850 .propagateErr(); } const int32_t& pageSize = tryResult850 .inspect();; | ||||
| 984 | MOZ_ASSERT(pageSize >= 512 && pageSize <= 65536)do { static_assert( mozilla::detail::AssertionConditionType< decltype(pageSize >= 512 && pageSize <= 65536)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(pageSize >= 512 && pageSize <= 65536)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("pageSize >= 512 && pageSize <= 65536" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "pageSize >= 512 && pageSize <= 65536" ")"); do { MOZ_CrashSequence(__null, 984); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 985 | |||||
| 986 | if (kSQLitePageSizeOverride != uint32_t(pageSize)) { | ||||
| 987 | // We must not be in WAL journal mode to change the page size. | ||||
| 988 | QM_TRY(MOZ_TO_RESULT({auto tryResult851 = (ToResult(connection->ExecuteSimpleSQL ("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult851)::ok_type>); if ((__builtin_expect (!!(tryResult851.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))" , tryResult851.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 989, mozilla::dom::quota::Severity::Error); return tryResult851 .propagateErr(); }} | ||||
| 989 | connection->ExecuteSimpleSQL("PRAGMA journal_mode = DELETE;"_ns))){auto tryResult851 = (ToResult(connection->ExecuteSimpleSQL ("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult851)::ok_type>); if ((__builtin_expect (!!(tryResult851.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))" , tryResult851.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 989, mozilla::dom::quota::Severity::Error); return tryResult851 .propagateErr(); }}; | ||||
| 990 | |||||
| 991 | QM_TRY_INSPECT(const auto& stmt,auto tryResult852 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult852 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)" , tryResult852.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 993, mozilla::dom::quota::Severity::Error); return tryResult852 .propagateErr(); } const auto& stmt = tryResult852.inspect (); | ||||
| 992 | CreateAndExecuteSingleStepStatement(auto tryResult852 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult852 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)" , tryResult852.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 993, mozilla::dom::quota::Severity::Error); return tryResult852 .propagateErr(); } const auto& stmt = tryResult852.inspect (); | ||||
| 993 | *connection, "PRAGMA journal_mode;"_ns))auto tryResult852 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult852 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)" , tryResult852.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 993, mozilla::dom::quota::Severity::Error); return tryResult852 .propagateErr(); } const auto& stmt = tryResult852.inspect ();; | ||||
| 994 | |||||
| 995 | QM_TRY_INSPECT(const auto& journalMode,auto tryResult853 = (::mozilla::ToResultInvoke< nsCString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult853.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult853.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 997, mozilla::dom::quota::Severity::Error); return tryResult853 .propagateErr(); } const auto& journalMode = tryResult853 .inspect(); | ||||
| 996 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt,auto tryResult853 = (::mozilla::ToResultInvoke< nsCString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult853.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult853.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 997, mozilla::dom::quota::Severity::Error); return tryResult853 .propagateErr(); } const auto& journalMode = tryResult853 .inspect(); | ||||
| 997 | GetUTF8String, 0))auto tryResult853 = (::mozilla::ToResultInvoke< nsCString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult853.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult853.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 997, mozilla::dom::quota::Severity::Error); return tryResult853 .propagateErr(); } const auto& journalMode = tryResult853 .inspect();; | ||||
| 998 | |||||
| 999 | if (journalMode.EqualsLiteral("delete")) { | ||||
| 1000 | // Successfully set to rollback journal mode so changing the page size | ||||
| 1001 | // is possible with a VACUUM. | ||||
| 1002 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult854 = (ToResult(connection->ExecuteSimpleSQL (nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride )))); static_assert(std::is_empty_v<typename decltype(tryResult854 )::ok_type>); if ((__builtin_expect(!!(tryResult854.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))" , tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1003, mozilla::dom::quota::Severity::Error); return tryResult854 .propagateErr(); }} | ||||
| 1003 | "PRAGMA page_size = %" PRIu32 ";", kSQLitePageSizeOverride)))){auto tryResult854 = (ToResult(connection->ExecuteSimpleSQL (nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride )))); static_assert(std::is_empty_v<typename decltype(tryResult854 )::ok_type>); if ((__builtin_expect(!!(tryResult854.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))" , tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1003, mozilla::dom::quota::Severity::Error); return tryResult854 .propagateErr(); }}; | ||||
| 1004 | |||||
| 1005 | // We will need to VACUUM in order to change the page size. | ||||
| 1006 | vacuumNeeded = true; | ||||
| 1007 | } else { | ||||
| 1008 | NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to " "change the page size!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1010) | ||||
| 1009 | "Failed to set journal_mode for database, unable to "NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to " "change the page size!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1010) | ||||
| 1010 | "change the page size!")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to " "change the page size!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1010); | ||||
| 1011 | } | ||||
| 1012 | } | ||||
| 1013 | } | ||||
| 1014 | |||||
| 1015 | if (vacuumNeeded) { | ||||
| 1016 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL("VACUUM;"_ns))){auto tryResult855 = (ToResult(connection->ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult855)::ok_type>); if ((__builtin_expect(!!(tryResult855 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1016, mozilla::dom::quota::Severity::Error); return tryResult855 .propagateErr(); }}; | ||||
| 1017 | } | ||||
| 1018 | |||||
| 1019 | if (newDatabase || vacuumNeeded) { | ||||
| 1020 | if (journalModeSet) { | ||||
| 1021 | // Make sure we checkpoint to get an accurate file size. | ||||
| 1022 | QM_TRY(MOZ_TO_RESULT({auto tryResult856 = (ToResult(connection->ExecuteSimpleSQL ("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult856)::ok_type>); if ((__builtin_expect (!!(tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))" , tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1023, mozilla::dom::quota::Severity::Error); return tryResult856 .propagateErr(); }} | ||||
| 1023 | connection->ExecuteSimpleSQL("PRAGMA wal_checkpoint(FULL);"_ns))){auto tryResult856 = (ToResult(connection->ExecuteSimpleSQL ("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult856)::ok_type>); if ((__builtin_expect (!!(tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))" , tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1023, mozilla::dom::quota::Severity::Error); return tryResult856 .propagateErr(); }}; | ||||
| 1024 | } | ||||
| 1025 | |||||
| 1026 | QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult857 = (::mozilla::ToResultInvokeMember( (aDBFile ), &::mozilla::detail::DerefedType<decltype(aDBFile)> ::GetFileSize )); if ((__builtin_expect(!!(tryResult857.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize )" , tryResult857.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1027, mozilla::dom::quota::Severity::Error); return tryResult857 .propagateErr(); } const int64_t& fileSize = tryResult857 .inspect(); | ||||
| 1027 | MOZ_TO_RESULT_INVOKE_MEMBER(aDBFile, GetFileSize))auto tryResult857 = (::mozilla::ToResultInvokeMember( (aDBFile ), &::mozilla::detail::DerefedType<decltype(aDBFile)> ::GetFileSize )); if ((__builtin_expect(!!(tryResult857.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize )" , tryResult857.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1027, mozilla::dom::quota::Severity::Error); return tryResult857 .propagateErr(); } const int64_t& fileSize = tryResult857 .inspect();; | ||||
| 1028 | MOZ_ASSERT(fileSize > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1028) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 1028); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1029 | |||||
| 1030 | PRTime vacuumTime = PR_Now(); | ||||
| 1031 | MOZ_ASSERT(vacuumTime)do { static_assert( mozilla::detail::AssertionConditionType< decltype(vacuumTime)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1031); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime" ")"); do { MOZ_CrashSequence(__null, 1031); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1032 | |||||
| 1033 | // The parameter names are not used, parameters are bound by index only | ||||
| 1034 | // locally in the same function. | ||||
| 1035 | QM_TRY_INSPECT(auto tryResult858 = (::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(!! (tryResult858.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)" , tryResult858.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1041, mozilla::dom::quota::Severity::Error); return tryResult858 .propagateErr(); } const auto& vacuumTimeStmt = tryResult858 .inspect(); | ||||
| 1036 | const auto& vacuumTimeStmt,auto tryResult858 = (::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(!! (tryResult858.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)" , tryResult858.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1041, mozilla::dom::quota::Severity::Error); return tryResult858 .propagateErr(); } const auto& vacuumTimeStmt = tryResult858 .inspect(); | ||||
| 1037 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCOMPtr<mozIStorageStatement>,auto tryResult858 = (::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(!! (tryResult858.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)" , tryResult858.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1041, mozilla::dom::quota::Severity::Error); return tryResult858 .propagateErr(); } const auto& vacuumTimeStmt = tryResult858 .inspect(); | ||||
| 1038 | connection, CreateStatement,auto tryResult858 = (::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(!! (tryResult858.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)" , tryResult858.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1041, mozilla::dom::quota::Severity::Error); return tryResult858 .propagateErr(); } const auto& vacuumTimeStmt = tryResult858 .inspect(); | ||||
| 1039 | "UPDATE database "auto tryResult858 = (::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(!! (tryResult858.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)" , tryResult858.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1041, mozilla::dom::quota::Severity::Error); return tryResult858 .propagateErr(); } const auto& vacuumTimeStmt = tryResult858 .inspect(); | ||||
| 1040 | "SET last_vacuum_time = :time"auto tryResult858 = (::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(!! (tryResult858.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)" , tryResult858.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1041, mozilla::dom::quota::Severity::Error); return tryResult858 .propagateErr(); } const auto& vacuumTimeStmt = tryResult858 .inspect(); | ||||
| 1041 | ", last_vacuum_size = :size;"_ns))auto tryResult858 = (::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(!! (tryResult858.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)" , tryResult858.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1041, mozilla::dom::quota::Severity::Error); return tryResult858 .propagateErr(); } const auto& vacuumTimeStmt = tryResult858 .inspect();; | ||||
| 1042 | |||||
| 1043 | QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))){auto tryResult859 = (ToResult(vacuumTimeStmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult859)::ok_type>); if ((__builtin_expect(!!(tryResult859 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))" , tryResult859.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1043, mozilla::dom::quota::Severity::Error); return tryResult859 .propagateErr(); }}; | ||||
| 1044 | QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))){auto tryResult860 = (ToResult(vacuumTimeStmt->BindInt64ByIndex (1, fileSize))); static_assert(std::is_empty_v<typename decltype (tryResult860)::ok_type>); if ((__builtin_expect(!!(tryResult860 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))" , tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1044, mozilla::dom::quota::Severity::Error); return tryResult860 .propagateErr(); }}; | ||||
| 1045 | QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->Execute())){auto tryResult861 = (ToResult(vacuumTimeStmt->Execute())) ; static_assert(std::is_empty_v<typename decltype(tryResult861 )::ok_type>); if ((__builtin_expect(!!(tryResult861.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->Execute())" , tryResult861.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1045, mozilla::dom::quota::Severity::Error); return tryResult861 .propagateErr(); }}; | ||||
| 1046 | } | ||||
| 1047 | } | ||||
| 1048 | |||||
| 1049 | if (!journalModeSet) { | ||||
| 1050 | QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult862 = (ToResult(SetJournalMode(*connection))); static_assert(std::is_empty_v<typename decltype(tryResult862 )::ok_type>); if ((__builtin_expect(!!(tryResult862.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))" , tryResult862.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1050, mozilla::dom::quota::Severity::Error); return tryResult862 .propagateErr(); }}; | ||||
| 1051 | } | ||||
| 1052 | |||||
| 1053 | return WrapMovingNotNullUnchecked(std::move(connection)); | ||||
| 1054 | } | ||||
| 1055 | |||||
| 1056 | nsCOMPtr<nsIFile> GetFileForPath(const nsAString& aPath) { | ||||
| 1057 | MOZ_ASSERT(!aPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aPath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aPath.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aPath.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1057) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()" ")" ); do { MOZ_CrashSequence(__null, 1057); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1058 | |||||
| 1059 | QM_TRY_RETURN(QM_NewLocalFile(aPath), nullptr){auto tryResult863 = (QM_NewLocalFile(aPath)); if ((__builtin_expect (!!(tryResult863.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult863.unwrapErr(); mozilla::dom::quota::HandleError ("QM_NewLocalFile(aPath)", tryResult863.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1059, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "QM_NewLocalFile(aPath)" , tryTempError, nullptr); } return tryResult863.unwrap();}; | ||||
| 1060 | } | ||||
| 1061 | |||||
| 1062 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> | ||||
| 1063 | GetStorageConnection(nsIFile& aDatabaseFile, const int64_t aDirectoryLockId, | ||||
| 1064 | const uint32_t aTelemetryId, | ||||
| 1065 | const Maybe<CipherKey>& aMaybeKey) { | ||||
| 1066 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1066) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 1066); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1067 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1067) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 1067); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1068 | MOZ_ASSERT(aDirectoryLockId >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectoryLockId >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1068) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0" ")"); do { MOZ_CrashSequence(__null, 1068); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1069 | |||||
| 1070 | AUTO_PROFILER_LABEL("GetStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject1070( "GetStorageConnection" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 1071 | |||||
| 1072 | QM_TRY_INSPECT(const bool& exists,auto tryResult864 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::Exists )); if ((__builtin_expect(!!(tryResult864.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists )" , tryResult864.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1073, mozilla::dom::quota::Severity::Error); return tryResult864 .propagateErr(); } const bool& exists = tryResult864.inspect (); | ||||
| 1073 | MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, Exists))auto tryResult864 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::Exists )); if ((__builtin_expect(!!(tryResult864.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists )" , tryResult864.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1073, mozilla::dom::quota::Severity::Error); return tryResult864 .propagateErr(); } const bool& exists = tryResult864.inspect ();; | ||||
| 1074 | |||||
| 1075 | QM_TRY(OkIf(exists), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult865 = (OkIf(exists)); static_assert(std::is_empty_v <typename decltype(tryResult865)::ok_type>); if ((__builtin_expect (!!(tryResult865.isErr()), 0))) { auto tryTempError = tryResult865 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1076, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1076, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(exists)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 1076 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult865 = (OkIf(exists)); static_assert(std::is_empty_v <typename decltype(tryResult865)::ok_type>); if ((__builtin_expect (!!(tryResult865.isErr()), 0))) { auto tryTempError = tryResult865 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1076, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1076, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(exists)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | ||||
| 1077 | |||||
| 1078 | QM_TRY_INSPECT(auto tryResult866 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult866.isErr()) , 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)" , tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1080, mozilla::dom::quota::Severity::Error); return tryResult866 .propagateErr(); } const auto& dbFileUrl = tryResult866.inspect (); | ||||
| 1079 | const auto& dbFileUrl,auto tryResult866 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult866.isErr()) , 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)" , tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1080, mozilla::dom::quota::Severity::Error); return tryResult866 .propagateErr(); } const auto& dbFileUrl = tryResult866.inspect (); | ||||
| 1080 | GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey))auto tryResult866 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult866.isErr()) , 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)" , tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1080, mozilla::dom::quota::Severity::Error); return tryResult866 .propagateErr(); } const auto& dbFileUrl = tryResult866.inspect ();; | ||||
| 1081 | |||||
| 1082 | QM_TRY_INSPECT(const auto& storageService,auto tryResult867 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult867.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\")" , tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1085, mozilla::dom::quota::Severity::Error); return tryResult867 .propagateErr(); } const auto& storageService = tryResult867 .inspect(); | ||||
| 1083 | MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult867 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult867.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\")" , tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1085, mozilla::dom::quota::Severity::Error); return tryResult867 .propagateErr(); } const auto& storageService = tryResult867 .inspect(); | ||||
| 1084 | MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult867 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult867.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\")" , tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1085, mozilla::dom::quota::Severity::Error); return tryResult867 .propagateErr(); } const auto& storageService = tryResult867 .inspect(); | ||||
| 1085 | MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult867 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult867.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\")" , tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1085, mozilla::dom::quota::Severity::Error); return tryResult867 .propagateErr(); } const auto& storageService = tryResult867 .inspect();; | ||||
| 1086 | |||||
| 1087 | QM_TRY_UNWRAP(auto tryResult868 = (OpenDatabaseAndHandleBusy(*storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult868 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)" , tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1089, mozilla::dom::quota::Severity::Error); return tryResult868 .propagateErr(); } nsCOMPtr<mozIStorageConnection> connection = tryResult868.unwrap(); | ||||
| 1088 | nsCOMPtr<mozIStorageConnection> connection,auto tryResult868 = (OpenDatabaseAndHandleBusy(*storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult868 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)" , tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1089, mozilla::dom::quota::Severity::Error); return tryResult868 .propagateErr(); } nsCOMPtr<mozIStorageConnection> connection = tryResult868.unwrap(); | ||||
| 1089 | OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId))auto tryResult868 = (OpenDatabaseAndHandleBusy(*storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult868 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)" , tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1089, mozilla::dom::quota::Severity::Error); return tryResult868 .propagateErr(); } nsCOMPtr<mozIStorageConnection> connection = tryResult868.unwrap();; | ||||
| 1090 | |||||
| 1091 | QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult869 = (ToResult(SetDefaultPragmas(*connection) )); static_assert(std::is_empty_v<typename decltype(tryResult869 )::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))" , tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1091, mozilla::dom::quota::Severity::Error); return tryResult869 .propagateErr(); }}; | ||||
| 1092 | |||||
| 1093 | QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult870 = (ToResult(SetJournalMode(*connection))); static_assert(std::is_empty_v<typename decltype(tryResult870 )::ok_type>); if ((__builtin_expect(!!(tryResult870.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))" , tryResult870.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1093, mozilla::dom::quota::Severity::Error); return tryResult870 .propagateErr(); }}; | ||||
| 1094 | |||||
| 1095 | return WrapMovingNotNullUnchecked(std::move(connection)); | ||||
| 1096 | } | ||||
| 1097 | |||||
| 1098 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> | ||||
| 1099 | GetStorageConnection(const nsAString& aDatabaseFilePath, | ||||
| 1100 | const int64_t aDirectoryLockId, | ||||
| 1101 | const uint32_t aTelemetryId, | ||||
| 1102 | const Maybe<CipherKey>& aMaybeKey) { | ||||
| 1103 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1103) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 1103); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1104 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1104) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 1104); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1105 | MOZ_ASSERT(!aDatabaseFilePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseFilePath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseFilePath.IsEmpty() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!aDatabaseFilePath.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1105); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilePath.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 1105); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1106 | MOZ_ASSERT(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix))do { static_assert( mozilla::detail::AssertionConditionType< decltype(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix))> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1106) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)" ")"); do { MOZ_CrashSequence(__null, 1106); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1107 | MOZ_ASSERT(aDirectoryLockId >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectoryLockId >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1107) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0" ")"); do { MOZ_CrashSequence(__null, 1107); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1108 | |||||
| 1109 | nsCOMPtr<nsIFile> dbFile = GetFileForPath(aDatabaseFilePath); | ||||
| 1110 | |||||
| 1111 | QM_TRY(OkIf(dbFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult871 = (OkIf(dbFile)); static_assert(std::is_empty_v <typename decltype(tryResult871)::ok_type>); if ((__builtin_expect (!!(tryResult871.isErr()), 0))) { auto tryTempError = tryResult871 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1112, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1112, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(dbFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 1112 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult871 = (OkIf(dbFile)); static_assert(std::is_empty_v <typename decltype(tryResult871)::ok_type>); if ((__builtin_expect (!!(tryResult871.isErr()), 0))) { auto tryTempError = tryResult871 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1112, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1112, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(dbFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | ||||
| 1113 | |||||
| 1114 | return GetStorageConnection(*dbFile, aDirectoryLockId, aTelemetryId, | ||||
| 1115 | aMaybeKey); | ||||
| 1116 | } | ||||
| 1117 | |||||
| 1118 | /******************************************************************************* | ||||
| 1119 | * ConnectionPool declarations | ||||
| 1120 | ******************************************************************************/ | ||||
| 1121 | |||||
| 1122 | class DatabaseConnection final : public CachingDatabaseConnection { | ||||
| 1123 | friend class ConnectionPool; | ||||
| 1124 | |||||
| 1125 | enum class CheckpointMode { Full, Restart, Truncate }; | ||||
| 1126 | |||||
| 1127 | public: | ||||
| 1128 | class AutoSavepoint; | ||||
| 1129 | class UpdateRefcountFunction; | ||||
| 1130 | |||||
| 1131 | private: | ||||
| 1132 | InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileManager>>> mFileManager; | ||||
| 1133 | RefPtr<UpdateRefcountFunction> mUpdateRefcountFunction; | ||||
| 1134 | RefPtr<QuotaObject> mQuotaObject; | ||||
| 1135 | RefPtr<QuotaObject> mJournalQuotaObject; | ||||
| 1136 | IDBTransaction::Durability mLastDurability; | ||||
| 1137 | bool mInReadTransaction; | ||||
| 1138 | bool mInWriteTransaction; | ||||
| 1139 | |||||
| 1140 | #ifdef DEBUG1 | ||||
| 1141 | uint32_t mDEBUGSavepointCount; | ||||
| 1142 | #endif | ||||
| 1143 | |||||
| 1144 | public: | ||||
| 1145 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(DatabaseConnection)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<DatabaseConnection>, "Reference-counted class " "DatabaseConnection" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 1145 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("DatabaseConnection"), (uint32_t)(sizeof(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 1145 ); __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: | ||||
| 1146 | |||||
| 1147 | UpdateRefcountFunction* GetUpdateRefcountFunction() const { | ||||
| 1148 | AssertIsOnConnectionThread(); | ||||
| 1149 | |||||
| 1150 | return mUpdateRefcountFunction; | ||||
| 1151 | } | ||||
| 1152 | |||||
| 1153 | nsresult BeginWriteTransaction(const IDBTransaction::Durability aDurability); | ||||
| 1154 | |||||
| 1155 | nsresult CommitWriteTransaction(); | ||||
| 1156 | |||||
| 1157 | void RollbackWriteTransaction(); | ||||
| 1158 | |||||
| 1159 | void FinishWriteTransaction(); | ||||
| 1160 | |||||
| 1161 | nsresult StartSavepoint(); | ||||
| 1162 | |||||
| 1163 | nsresult ReleaseSavepoint(); | ||||
| 1164 | |||||
| 1165 | nsresult RollbackSavepoint(); | ||||
| 1166 | |||||
| 1167 | nsresult Checkpoint() { | ||||
| 1168 | AssertIsOnConnectionThread(); | ||||
| 1169 | |||||
| 1170 | return CheckpointInternal(CheckpointMode::Full); | ||||
| 1171 | } | ||||
| 1172 | |||||
| 1173 | void DoIdleProcessing(bool aNeedsCheckpoint, | ||||
| 1174 | const Atomic<bool>& aInterrupted); | ||||
| 1175 | |||||
| 1176 | void Close(); | ||||
| 1177 | |||||
| 1178 | nsresult DisableQuotaChecks(); | ||||
| 1179 | |||||
| 1180 | void EnableQuotaChecks(); | ||||
| 1181 | |||||
| 1182 | private: | ||||
| 1183 | DatabaseConnection( | ||||
| 1184 | MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection, | ||||
| 1185 | MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager); | ||||
| 1186 | |||||
| 1187 | ~DatabaseConnection(); | ||||
| 1188 | |||||
| 1189 | nsresult Init(); | ||||
| 1190 | |||||
| 1191 | nsresult CheckpointInternal(CheckpointMode aMode); | ||||
| 1192 | |||||
| 1193 | Result<uint32_t, nsresult> GetFreelistCount( | ||||
| 1194 | CachedStatement& aCachedStatement); | ||||
| 1195 | |||||
| 1196 | /** | ||||
| 1197 | * On success, returns whether some pages were freed. | ||||
| 1198 | */ | ||||
| 1199 | Result<bool, nsresult> ReclaimFreePagesWhileIdle( | ||||
| 1200 | CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement, | ||||
| 1201 | uint32_t aFreelistCount, bool aNeedsCheckpoint, | ||||
| 1202 | const Atomic<bool>& aInterrupted); | ||||
| 1203 | |||||
| 1204 | Result<int64_t, nsresult> GetFileSize(const nsAString& aPath); | ||||
| 1205 | }; | ||||
| 1206 | |||||
| 1207 | class MOZ_STACK_CLASS DatabaseConnection::AutoSavepoint final { | ||||
| 1208 | DatabaseConnection* mConnection; | ||||
| 1209 | #ifdef DEBUG1 | ||||
| 1210 | const TransactionBase* mDEBUGTransaction; | ||||
| 1211 | #endif | ||||
| 1212 | |||||
| 1213 | public: | ||||
| 1214 | AutoSavepoint(); | ||||
| 1215 | ~AutoSavepoint(); | ||||
| 1216 | |||||
| 1217 | nsresult Start(const TransactionBase& aTransaction); | ||||
| 1218 | |||||
| 1219 | nsresult Commit(); | ||||
| 1220 | }; | ||||
| 1221 | |||||
| 1222 | class DatabaseConnection::UpdateRefcountFunction final | ||||
| 1223 | : public mozIStorageFunction { | ||||
| 1224 | class FileInfoEntry; | ||||
| 1225 | |||||
| 1226 | enum class UpdateType { Increment, Decrement }; | ||||
| 1227 | |||||
| 1228 | DatabaseConnection* const mConnection; | ||||
| 1229 | DatabaseFileManager& mFileManager; | ||||
| 1230 | nsClassHashtable<nsUint64HashKey, FileInfoEntry> mFileInfoEntries; | ||||
| 1231 | nsTHashMap<nsUint64HashKey, NotNull<FileInfoEntry*>> mSavepointEntriesIndex; | ||||
| 1232 | |||||
| 1233 | nsTArray<int64_t> mJournalsToCreateBeforeCommit; | ||||
| 1234 | nsTArray<int64_t> mJournalsToRemoveAfterCommit; | ||||
| 1235 | nsTArray<int64_t> mJournalsToRemoveAfterAbort; | ||||
| 1236 | |||||
| 1237 | bool mInSavepoint; | ||||
| 1238 | |||||
| 1239 | public: | ||||
| 1240 | 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: | ||||
| 1241 | NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments , nsIVariant **_retval) override; | ||||
| 1242 | |||||
| 1243 | UpdateRefcountFunction(DatabaseConnection* aConnection, | ||||
| 1244 | DatabaseFileManager& aFileManager); | ||||
| 1245 | |||||
| 1246 | nsresult WillCommit(); | ||||
| 1247 | |||||
| 1248 | void DidCommit(); | ||||
| 1249 | |||||
| 1250 | void DidAbort(); | ||||
| 1251 | |||||
| 1252 | void StartSavepoint(); | ||||
| 1253 | |||||
| 1254 | void ReleaseSavepoint(); | ||||
| 1255 | |||||
| 1256 | void RollbackSavepoint(); | ||||
| 1257 | |||||
| 1258 | void Reset(); | ||||
| 1259 | |||||
| 1260 | private: | ||||
| 1261 | ~UpdateRefcountFunction() = default; | ||||
| 1262 | |||||
| 1263 | nsresult ProcessValue(mozIStorageValueArray* aValues, int32_t aIndex, | ||||
| 1264 | UpdateType aUpdateType); | ||||
| 1265 | |||||
| 1266 | nsresult CreateJournals(); | ||||
| 1267 | |||||
| 1268 | nsresult RemoveJournals(const nsTArray<int64_t>& aJournals); | ||||
| 1269 | }; | ||||
| 1270 | |||||
| 1271 | class DatabaseConnection::UpdateRefcountFunction::FileInfoEntry final { | ||||
| 1272 | SafeRefPtr<DatabaseFileInfo> mFileInfo; | ||||
| 1273 | int32_t mDelta; | ||||
| 1274 | int32_t mSavepointDelta; | ||||
| 1275 | |||||
| 1276 | public: | ||||
| 1277 | explicit FileInfoEntry(SafeRefPtr<DatabaseFileInfo> aFileInfo) | ||||
| 1278 | : mFileInfo(std::move(aFileInfo)), mDelta(0), mSavepointDelta(0) { | ||||
| 1279 | MOZ_COUNT_CTOR(DatabaseConnection::UpdateRefcountFunction::FileInfoEntry)do { static_assert(std::is_class_v<DatabaseConnection::UpdateRefcountFunction ::FileInfoEntry>, "Token '" "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry" "' is not a class type."); static_assert(!std::is_base_of_v< nsISupports, DatabaseConnection::UpdateRefcountFunction::FileInfoEntry >, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry" , sizeof(*this)); } while (0); | ||||
| 1280 | } | ||||
| 1281 | |||||
| 1282 | void IncDeltas(bool aUpdateSavepointDelta) { | ||||
| 1283 | ++mDelta; | ||||
| 1284 | if (aUpdateSavepointDelta) { | ||||
| 1285 | ++mSavepointDelta; | ||||
| 1286 | } | ||||
| 1287 | } | ||||
| 1288 | void DecDeltas(bool aUpdateSavepointDelta) { | ||||
| 1289 | --mDelta; | ||||
| 1290 | if (aUpdateSavepointDelta) { | ||||
| 1291 | --mSavepointDelta; | ||||
| 1292 | } | ||||
| 1293 | } | ||||
| 1294 | void DecBySavepointDelta() { mDelta -= mSavepointDelta; } | ||||
| 1295 | void ResetSavepointDelta() { mSavepointDelta = 0; } | ||||
| 1296 | SafeRefPtr<DatabaseFileInfo> ReleaseFileInfo() { | ||||
| 1297 | return std::move(mFileInfo); | ||||
| 1298 | } | ||||
| 1299 | void MaybeUpdateDBRefs() { | ||||
| 1300 | if (mDelta) { | ||||
| 1301 | mFileInfo->UpdateDBRefs(mDelta); | ||||
| 1302 | } | ||||
| 1303 | } | ||||
| 1304 | |||||
| 1305 | int32_t Delta() const { return mDelta; } | ||||
| 1306 | int32_t SavepointDelta() const { return mSavepointDelta; } | ||||
| 1307 | |||||
| 1308 | ~FileInfoEntry() { | ||||
| 1309 | MOZ_COUNT_DTOR(DatabaseConnection::UpdateRefcountFunction::FileInfoEntry)do { static_assert(std::is_class_v<DatabaseConnection::UpdateRefcountFunction ::FileInfoEntry>, "Token '" "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry" "' is not a class type."); static_assert(!std::is_base_of_v< nsISupports, DatabaseConnection::UpdateRefcountFunction::FileInfoEntry >, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry" , sizeof(*this)); } while (0); | ||||
| 1310 | } | ||||
| 1311 | }; | ||||
| 1312 | |||||
| 1313 | class ConnectionPool final { | ||||
| 1314 | public: | ||||
| 1315 | class FinishCallback; | ||||
| 1316 | |||||
| 1317 | private: | ||||
| 1318 | class ConnectionRunnable; | ||||
| 1319 | class CloseConnectionRunnable; | ||||
| 1320 | struct DatabaseInfo; | ||||
| 1321 | struct DatabaseCompleteCallback; | ||||
| 1322 | class FinishCallbackWrapper; | ||||
| 1323 | class IdleConnectionRunnable; | ||||
| 1324 | |||||
| 1325 | #ifdef DEBUG1 | ||||
| 1326 | class TransactionRunnable; | ||||
| 1327 | #endif | ||||
| 1328 | class TransactionInfo; | ||||
| 1329 | struct TransactionInfoPair; | ||||
| 1330 | |||||
| 1331 | struct IdleResource { | ||||
| 1332 | TimeStamp mIdleTime; | ||||
| 1333 | |||||
| 1334 | IdleResource(const IdleResource& aOther) = delete; | ||||
| 1335 | IdleResource(IdleResource&& aOther) noexcept | ||||
| 1336 | : IdleResource(aOther.mIdleTime) {} | ||||
| 1337 | IdleResource& operator=(const IdleResource& aOther) = delete; | ||||
| 1338 | IdleResource& operator=(IdleResource&& aOther) = delete; | ||||
| 1339 | |||||
| 1340 | protected: | ||||
| 1341 | explicit IdleResource(const TimeStamp& aIdleTime); | ||||
| 1342 | |||||
| 1343 | ~IdleResource(); | ||||
| 1344 | }; | ||||
| 1345 | |||||
| 1346 | struct IdleDatabaseInfo final : public IdleResource { | ||||
| 1347 | InitializedOnce<const NotNull<DatabaseInfo*>> mDatabaseInfo; | ||||
| 1348 | |||||
| 1349 | public: | ||||
| 1350 | explicit IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo); | ||||
| 1351 | |||||
| 1352 | IdleDatabaseInfo(const IdleDatabaseInfo& aOther) = delete; | ||||
| 1353 | IdleDatabaseInfo(IdleDatabaseInfo&& aOther) noexcept | ||||
| 1354 | : IdleResource(std::move(aOther)), | ||||
| 1355 | mDatabaseInfo{std::move(aOther.mDatabaseInfo)} { | ||||
| 1356 | MOZ_ASSERT(mDatabaseInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabaseInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1356); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo" ")") ; do { MOZ_CrashSequence(__null, 1356); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1357 | |||||
| 1358 | MOZ_COUNT_CTOR(ConnectionPool::IdleDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::IdleDatabaseInfo >, "Token '" "ConnectionPool::IdleDatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::IdleDatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleDatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 1359 | } | ||||
| 1360 | IdleDatabaseInfo& operator=(const IdleDatabaseInfo& aOther) = delete; | ||||
| 1361 | IdleDatabaseInfo& operator=(IdleDatabaseInfo&& aOther) = delete; | ||||
| 1362 | |||||
| 1363 | ~IdleDatabaseInfo(); | ||||
| 1364 | |||||
| 1365 | bool operator==(const IdleDatabaseInfo& aOther) const { | ||||
| 1366 | return *mDatabaseInfo == *aOther.mDatabaseInfo; | ||||
| 1367 | } | ||||
| 1368 | |||||
| 1369 | bool operator==(const DatabaseInfo* aDatabaseInfo) const { | ||||
| 1370 | return *mDatabaseInfo == aDatabaseInfo; | ||||
| 1371 | } | ||||
| 1372 | |||||
| 1373 | bool operator<(const IdleDatabaseInfo& aOther) const { | ||||
| 1374 | return mIdleTime < aOther.mIdleTime; | ||||
| 1375 | } | ||||
| 1376 | }; | ||||
| 1377 | |||||
| 1378 | struct PerformingIdleMaintenanceDatabaseInfo { | ||||
| 1379 | const NotNull<DatabaseInfo*> mDatabaseInfo; | ||||
| 1380 | RefPtr<IdleConnectionRunnable> mIdleConnectionRunnable; | ||||
| 1381 | |||||
| 1382 | PerformingIdleMaintenanceDatabaseInfo( | ||||
| 1383 | DatabaseInfo& aDatabaseInfo, | ||||
| 1384 | RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable); | ||||
| 1385 | |||||
| 1386 | PerformingIdleMaintenanceDatabaseInfo( | ||||
| 1387 | const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete; | ||||
| 1388 | PerformingIdleMaintenanceDatabaseInfo( | ||||
| 1389 | PerformingIdleMaintenanceDatabaseInfo&& aOther) noexcept | ||||
| 1390 | : mDatabaseInfo{aOther.mDatabaseInfo}, | ||||
| 1391 | mIdleConnectionRunnable{std::move(aOther.mIdleConnectionRunnable)} { | ||||
| 1392 | MOZ_COUNT_CTOR(ConnectionPool::PerformingIdleMaintenanceDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >, "Token '" "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" "' is not a class type."); static_assert(!std::is_base_of_v< nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 1393 | } | ||||
| 1394 | PerformingIdleMaintenanceDatabaseInfo& operator=( | ||||
| 1395 | const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete; | ||||
| 1396 | PerformingIdleMaintenanceDatabaseInfo& operator=( | ||||
| 1397 | PerformingIdleMaintenanceDatabaseInfo&& aOther) = delete; | ||||
| 1398 | |||||
| 1399 | ~PerformingIdleMaintenanceDatabaseInfo(); | ||||
| 1400 | |||||
| 1401 | bool operator==(const DatabaseInfo* aDatabaseInfo) const { | ||||
| 1402 | return mDatabaseInfo == aDatabaseInfo; | ||||
| 1403 | } | ||||
| 1404 | }; | ||||
| 1405 | |||||
| 1406 | // This mutex guards mDatabases, see below. | ||||
| 1407 | Mutex mDatabasesMutex MOZ_UNANNOTATED; | ||||
| 1408 | |||||
| 1409 | nsCOMPtr<nsIThreadPool> mIOTarget; | ||||
| 1410 | nsTArray<IdleDatabaseInfo> mIdleDatabases; | ||||
| 1411 | nsTArray<PerformingIdleMaintenanceDatabaseInfo> | ||||
| 1412 | mDatabasesPerformingIdleMaintenance; | ||||
| 1413 | nsCOMPtr<nsITimer> mIdleTimer; | ||||
| 1414 | TimeStamp mTargetIdleTime; | ||||
| 1415 | |||||
| 1416 | // Only modifed on the owning thread, but read on multiple threads. Therefore | ||||
| 1417 | // all modifications and all reads off the owning thread must be protected by | ||||
| 1418 | // mDatabasesMutex. | ||||
| 1419 | nsClassHashtable<nsCStringHashKey, DatabaseInfo> mDatabases; | ||||
| 1420 | |||||
| 1421 | nsClassHashtable<nsUint64HashKey, TransactionInfo> mTransactions; | ||||
| 1422 | nsTArray<NotNull<TransactionInfo*>> mQueuedTransactions; | ||||
| 1423 | |||||
| 1424 | nsTArray<UniquePtr<DatabaseCompleteCallback>> mCompleteCallbacks; | ||||
| 1425 | |||||
| 1426 | uint64_t mNextTransactionId; | ||||
| 1427 | FlippedOnce<false> mShutdownRequested; | ||||
| 1428 | FlippedOnce<false> mShutdownComplete; | ||||
| 1429 | |||||
| 1430 | public: | ||||
| 1431 | ConnectionPool(); | ||||
| 1432 | |||||
| 1433 | void AssertIsOnOwningThread() const { | ||||
| 1434 | NS_ASSERT_OWNINGTHREAD(ConnectionPool)_mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe" ); | ||||
| 1435 | } | ||||
| 1436 | |||||
| 1437 | Result<RefPtr<DatabaseConnection>, nsresult> GetOrCreateConnection( | ||||
| 1438 | const Database& aDatabase); | ||||
| 1439 | |||||
| 1440 | uint64_t Start(const nsID& aBackgroundChildLoggingId, | ||||
| 1441 | const nsACString& aDatabaseId, int64_t aLoggingSerialNumber, | ||||
| 1442 | const nsTArray<nsString>& aObjectStoreNames, | ||||
| 1443 | bool aIsWriteTransaction, | ||||
| 1444 | TransactionDatabaseOperationBase* aTransactionOp); | ||||
| 1445 | |||||
| 1446 | /** | ||||
| 1447 | * Starts a new operation associated with the given transaction. | ||||
| 1448 | * | ||||
| 1449 | * This method initiates an operation by: | ||||
| 1450 | * 1. Dispatching the provided runnable to the task queue created on top of | ||||
| 1451 | * the I/O thread pool if the transaction is currently running. | ||||
| 1452 | * 2. Queuing the runnable for later execution if the transaction is not yet | ||||
| 1453 | * running. | ||||
| 1454 | * | ||||
| 1455 | * It is mandatory for all operations to call StartOp to ensure proper | ||||
| 1456 | * handling and sequencing within the transaction context. | ||||
| 1457 | * | ||||
| 1458 | * Note: | ||||
| 1459 | * - For more complex operations that involve work on other threads or require | ||||
| 1460 | * communication with content processes, StartOp should not be called again | ||||
| 1461 | * to dispatch to the task queue, as this could disrupt proper queuing and | ||||
| 1462 | * execution. | ||||
| 1463 | */ | ||||
| 1464 | void StartOp(uint64_t aTransactionId, nsCOMPtr<nsIRunnable> aRunnable); | ||||
| 1465 | |||||
| 1466 | /** | ||||
| 1467 | * Marks the completion of an operation associated with the given transaction. | ||||
| 1468 | * | ||||
| 1469 | * This method signals that the current operation has finished, allowing the | ||||
| 1470 | * next queued operation (if any) for the transaction to start. | ||||
| 1471 | */ | ||||
| 1472 | void FinishOp(uint64_t aTransactionId); | ||||
| 1473 | |||||
| 1474 | void Finish(uint64_t aTransactionId, FinishCallback* aCallback); | ||||
| 1475 | |||||
| 1476 | void CloseDatabaseWhenIdle(const nsACString& aDatabaseId) { | ||||
| 1477 | (void)CloseDatabaseWhenIdleInternal(aDatabaseId); | ||||
| 1478 | } | ||||
| 1479 | |||||
| 1480 | void WaitForDatabaseToComplete(const nsCString& aDatabaseId, | ||||
| 1481 | nsIRunnable* aCallback); | ||||
| 1482 | |||||
| 1483 | void Shutdown(); | ||||
| 1484 | |||||
| 1485 | NS_INLINE_DECL_REFCOUNTING(ConnectionPool)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<ConnectionPool>, "Reference-counted class " "ConnectionPool" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1485); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 1485 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); _mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe" ); ++mRefCnt; NS_LogAddRef((this), (mRefCnt), ("ConnectionPool" ), (uint32_t)(sizeof(*this))); return mRefCnt; } MozExternalRefCountType Release(void) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1485); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 1485 ); __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: | ||||
| 1486 | |||||
| 1487 | private: | ||||
| 1488 | ~ConnectionPool(); | ||||
| 1489 | |||||
| 1490 | static void IdleTimerCallback(nsITimer* aTimer, void* aClosure); | ||||
| 1491 | |||||
| 1492 | void Cleanup(); | ||||
| 1493 | |||||
| 1494 | void AdjustIdleTimer(); | ||||
| 1495 | |||||
| 1496 | void CancelIdleTimer(); | ||||
| 1497 | |||||
| 1498 | void CloseIdleDatabases(); | ||||
| 1499 | |||||
| 1500 | bool ScheduleTransaction(TransactionInfo& aTransactionInfo, | ||||
| 1501 | bool aFromQueuedTransactions); | ||||
| 1502 | |||||
| 1503 | void NoteFinishedTransaction(uint64_t aTransactionId); | ||||
| 1504 | |||||
| 1505 | void ScheduleQueuedTransactions(); | ||||
| 1506 | |||||
| 1507 | void NoteIdleDatabase(DatabaseInfo& aDatabaseInfo); | ||||
| 1508 | |||||
| 1509 | void NoteClosedDatabase(DatabaseInfo& aDatabaseInfo); | ||||
| 1510 | |||||
| 1511 | bool MaybeFireCallback(DatabaseCompleteCallback* aCallback); | ||||
| 1512 | |||||
| 1513 | void PerformIdleDatabaseMaintenance(DatabaseInfo& aDatabaseInfo); | ||||
| 1514 | |||||
| 1515 | void CloseDatabase(DatabaseInfo& aDatabaseInfo) const; | ||||
| 1516 | |||||
| 1517 | bool CloseDatabaseWhenIdleInternal(const nsACString& aDatabaseId); | ||||
| 1518 | }; | ||||
| 1519 | |||||
| 1520 | class ConnectionPool::ConnectionRunnable : public Runnable { | ||||
| 1521 | protected: | ||||
| 1522 | DatabaseInfo& mDatabaseInfo; | ||||
| 1523 | nsCOMPtr<nsIEventTarget> mOwningEventTarget; | ||||
| 1524 | |||||
| 1525 | explicit ConnectionRunnable(DatabaseInfo& aDatabaseInfo); | ||||
| 1526 | |||||
| 1527 | ~ConnectionRunnable() override = default; | ||||
| 1528 | }; | ||||
| 1529 | |||||
| 1530 | class ConnectionPool::IdleConnectionRunnable final : public ConnectionRunnable { | ||||
| 1531 | const bool mNeedsCheckpoint; | ||||
| 1532 | Atomic<bool> mInterrupted; | ||||
| 1533 | |||||
| 1534 | public: | ||||
| 1535 | IdleConnectionRunnable(DatabaseInfo& aDatabaseInfo, bool aNeedsCheckpoint) | ||||
| 1536 | : ConnectionRunnable(aDatabaseInfo), mNeedsCheckpoint(aNeedsCheckpoint) {} | ||||
| 1537 | |||||
| 1538 | 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; } | ||||
| 1539 | 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; } | ||||
| 1540 | |||||
| 1541 | void Interrupt() { mInterrupted = true; } | ||||
| 1542 | |||||
| 1543 | private: | ||||
| 1544 | ~IdleConnectionRunnable() override = default; | ||||
| 1545 | |||||
| 1546 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 1547 | }; | ||||
| 1548 | |||||
| 1549 | class ConnectionPool::CloseConnectionRunnable final | ||||
| 1550 | : public ConnectionRunnable { | ||||
| 1551 | public: | ||||
| 1552 | explicit CloseConnectionRunnable(DatabaseInfo& aDatabaseInfo) | ||||
| 1553 | : ConnectionRunnable(aDatabaseInfo) {} | ||||
| 1554 | |||||
| 1555 | 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; } | ||||
| 1556 | 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; } | ||||
| 1557 | |||||
| 1558 | private: | ||||
| 1559 | ~CloseConnectionRunnable() override = default; | ||||
| 1560 | |||||
| 1561 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 1562 | }; | ||||
| 1563 | |||||
| 1564 | struct ConnectionPool::DatabaseInfo final { | ||||
| 1565 | friend mozilla::DefaultDelete<DatabaseInfo>; | ||||
| 1566 | |||||
| 1567 | RefPtr<ConnectionPool> mConnectionPool; | ||||
| 1568 | const nsCString mDatabaseId; | ||||
| 1569 | RefPtr<DatabaseConnection> mConnection; | ||||
| 1570 | nsClassHashtable<nsStringHashKey, TransactionInfoPair> mBlockingTransactions; | ||||
| 1571 | nsTArray<NotNull<TransactionInfo*>> mTransactionsScheduledDuringClose; | ||||
| 1572 | nsTArray<NotNull<TransactionInfo*>> mScheduledWriteTransactions; | ||||
| 1573 | Maybe<TransactionInfo&> mRunningWriteTransaction; | ||||
| 1574 | RefPtr<TaskQueue> mEventTarget; | ||||
| 1575 | uint32_t mReadTransactionCount; | ||||
| 1576 | uint32_t mWriteTransactionCount; | ||||
| 1577 | bool mNeedsCheckpoint; | ||||
| 1578 | bool mIdle; | ||||
| 1579 | FlippedOnce<false> mCloseOnIdle; | ||||
| 1580 | bool mClosing; | ||||
| 1581 | |||||
| 1582 | #ifdef DEBUG1 | ||||
| 1583 | nsISerialEventTarget* mDEBUGConnectionEventTarget; | ||||
| 1584 | #endif | ||||
| 1585 | |||||
| 1586 | DatabaseInfo(ConnectionPool* aConnectionPool, const nsACString& aDatabaseId); | ||||
| 1587 | |||||
| 1588 | void AssertIsOnConnectionThread() const { | ||||
| 1589 | MOZ_ASSERT(mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGConnectionEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGConnectionEventTarget) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGConnectionEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1589) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGConnectionEventTarget" ")"); do { MOZ_CrashSequence(__null, 1589); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1590 | MOZ_ASSERT(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1590) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget" ")"); do { MOZ_CrashSequence(__null, 1590); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1591 | } | ||||
| 1592 | |||||
| 1593 | uint64_t TotalTransactionCount() const { | ||||
| 1594 | return mReadTransactionCount + mWriteTransactionCount; | ||||
| 1595 | } | ||||
| 1596 | |||||
| 1597 | nsresult Dispatch(already_AddRefed<nsIRunnable> aRunnable); | ||||
| 1598 | DatabaseInfo(const DatabaseInfo&) = delete; | ||||
| 1599 | DatabaseInfo& operator=(const DatabaseInfo&) = delete; | ||||
| 1600 | |||||
| 1601 | private: | ||||
| 1602 | ~DatabaseInfo(); | ||||
| 1603 | }; | ||||
| 1604 | |||||
| 1605 | struct ConnectionPool::DatabaseCompleteCallback final { | ||||
| 1606 | friend DefaultDelete<DatabaseCompleteCallback>; | ||||
| 1607 | |||||
| 1608 | nsCString mDatabaseId; | ||||
| 1609 | nsCOMPtr<nsIRunnable> mCallback; | ||||
| 1610 | |||||
| 1611 | DatabaseCompleteCallback(const nsCString& aDatabaseIds, | ||||
| 1612 | nsIRunnable* aCallback); | ||||
| 1613 | |||||
| 1614 | private: | ||||
| 1615 | ~DatabaseCompleteCallback(); | ||||
| 1616 | }; | ||||
| 1617 | |||||
| 1618 | class NS_NO_VTABLE ConnectionPool::FinishCallback : public nsIRunnable { | ||||
| 1619 | public: | ||||
| 1620 | // Called on the owning thread before any additional transactions are | ||||
| 1621 | // unblocked. | ||||
| 1622 | virtual void TransactionFinishedBeforeUnblock() = 0; | ||||
| 1623 | |||||
| 1624 | // Called on the owning thread after additional transactions may have been | ||||
| 1625 | // unblocked. | ||||
| 1626 | virtual void TransactionFinishedAfterUnblock() = 0; | ||||
| 1627 | |||||
| 1628 | protected: | ||||
| 1629 | FinishCallback() = default; | ||||
| 1630 | |||||
| 1631 | virtual ~FinishCallback() = default; | ||||
| 1632 | }; | ||||
| 1633 | |||||
| 1634 | class ConnectionPool::FinishCallbackWrapper final : public Runnable { | ||||
| 1635 | RefPtr<ConnectionPool> mConnectionPool; | ||||
| 1636 | RefPtr<FinishCallback> mCallback; | ||||
| 1637 | nsCOMPtr<nsIEventTarget> mOwningEventTarget; | ||||
| 1638 | uint64_t mTransactionId; | ||||
| 1639 | bool mHasRunOnce; | ||||
| 1640 | |||||
| 1641 | public: | ||||
| 1642 | FinishCallbackWrapper(ConnectionPool* aConnectionPool, | ||||
| 1643 | uint64_t aTransactionId, FinishCallback* aCallback); | ||||
| 1644 | |||||
| 1645 | 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; } | ||||
| 1646 | |||||
| 1647 | private: | ||||
| 1648 | ~FinishCallbackWrapper() override; | ||||
| 1649 | |||||
| 1650 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 1651 | }; | ||||
| 1652 | |||||
| 1653 | #ifdef DEBUG1 | ||||
| 1654 | |||||
| 1655 | class ConnectionPool::TransactionRunnable final : public Runnable { | ||||
| 1656 | public: | ||||
| 1657 | explicit TransactionRunnable(nsCOMPtr<nsIRunnable> aRunnable); | ||||
| 1658 | |||||
| 1659 | private: | ||||
| 1660 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 1661 | |||||
| 1662 | nsCOMPtr<nsIRunnable> mRunnable; | ||||
| 1663 | }; | ||||
| 1664 | |||||
| 1665 | #endif | ||||
| 1666 | |||||
| 1667 | class ConnectionPool::TransactionInfo final { | ||||
| 1668 | friend mozilla::DefaultDelete<TransactionInfo>; | ||||
| 1669 | |||||
| 1670 | nsTHashSet<TransactionInfo*> mBlocking; | ||||
| 1671 | nsTArray<NotNull<TransactionInfo*>> mBlockingOrdered; | ||||
| 1672 | |||||
| 1673 | public: | ||||
| 1674 | DatabaseInfo& mDatabaseInfo; | ||||
| 1675 | const nsID mBackgroundChildLoggingId; | ||||
| 1676 | const nsCString mDatabaseId; | ||||
| 1677 | const uint64_t mTransactionId; | ||||
| 1678 | const int64_t mLoggingSerialNumber; | ||||
| 1679 | const nsTArray<nsString> mObjectStoreNames; | ||||
| 1680 | nsTHashSet<TransactionInfo*> mBlockedOn; | ||||
| 1681 | mozilla::Queue<nsCOMPtr<nsIRunnable>, 16> mQueuedOps; | ||||
| 1682 | const bool mIsWriteTransaction; | ||||
| 1683 | bool mRunning; | ||||
| 1684 | bool mRunningOp; | ||||
| 1685 | |||||
| 1686 | #ifdef DEBUG1 | ||||
| 1687 | FlippedOnce<false> mFinished; | ||||
| 1688 | #endif | ||||
| 1689 | |||||
| 1690 | TransactionInfo(DatabaseInfo& aDatabaseInfo, | ||||
| 1691 | const nsID& aBackgroundChildLoggingId, | ||||
| 1692 | const nsACString& aDatabaseId, uint64_t aTransactionId, | ||||
| 1693 | int64_t aLoggingSerialNumber, | ||||
| 1694 | const nsTArray<nsString>& aObjectStoreNames, | ||||
| 1695 | bool aIsWriteTransaction, | ||||
| 1696 | TransactionDatabaseOperationBase* aTransactionOp); | ||||
| 1697 | |||||
| 1698 | void AddBlockingTransaction(TransactionInfo& aTransactionInfo); | ||||
| 1699 | |||||
| 1700 | void RemoveBlockingTransactions(); | ||||
| 1701 | |||||
| 1702 | void SetRunning(); | ||||
| 1703 | |||||
| 1704 | void StartOp(nsCOMPtr<nsIRunnable> aRunnable); | ||||
| 1705 | |||||
| 1706 | void FinishOp(); | ||||
| 1707 | |||||
| 1708 | private: | ||||
| 1709 | ~TransactionInfo(); | ||||
| 1710 | |||||
| 1711 | void MaybeUnblock(TransactionInfo& aTransactionInfo); | ||||
| 1712 | }; | ||||
| 1713 | |||||
| 1714 | struct ConnectionPool::TransactionInfoPair final { | ||||
| 1715 | // Multiple reading transactions can block future writes. | ||||
| 1716 | nsTArray<NotNull<TransactionInfo*>> mLastBlockingWrites; | ||||
| 1717 | // But only a single writing transaction can block future reads. | ||||
| 1718 | Maybe<TransactionInfo&> mLastBlockingReads; | ||||
| 1719 | |||||
| 1720 | #if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1) | ||||
| 1721 | TransactionInfoPair(); | ||||
| 1722 | ~TransactionInfoPair(); | ||||
| 1723 | #endif | ||||
| 1724 | }; | ||||
| 1725 | |||||
| 1726 | /******************************************************************************* | ||||
| 1727 | * Actor class declarations | ||||
| 1728 | ******************************************************************************/ | ||||
| 1729 | |||||
| 1730 | template <IDBCursorType CursorType> | ||||
| 1731 | class CommonOpenOpHelper; | ||||
| 1732 | template <IDBCursorType CursorType> | ||||
| 1733 | class IndexOpenOpHelper; | ||||
| 1734 | template <IDBCursorType CursorType> | ||||
| 1735 | class ObjectStoreOpenOpHelper; | ||||
| 1736 | template <IDBCursorType CursorType> | ||||
| 1737 | class OpenOpHelper; | ||||
| 1738 | |||||
| 1739 | class DatabaseOperationBase : public Runnable, | ||||
| 1740 | public mozIStorageProgressHandler { | ||||
| 1741 | template <IDBCursorType CursorType> | ||||
| 1742 | friend class OpenOpHelper; | ||||
| 1743 | |||||
| 1744 | protected: | ||||
| 1745 | class AutoSetProgressHandler; | ||||
| 1746 | |||||
| 1747 | using UniqueIndexTable = nsTHashMap<nsUint64HashKey, bool>; | ||||
| 1748 | |||||
| 1749 | const nsCOMPtr<nsIEventTarget> mOwningEventTarget; | ||||
| 1750 | const nsID mBackgroundChildLoggingId; | ||||
| 1751 | const uint64_t mLoggingSerialNumber; | ||||
| 1752 | |||||
| 1753 | private: | ||||
| 1754 | nsresult mResultCode = NS_OK; | ||||
| 1755 | Atomic<bool> mOperationMayProceed; | ||||
| 1756 | FlippedOnce<false> mActorDestroyed; | ||||
| 1757 | |||||
| 1758 | public: | ||||
| 1759 | NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID , void** aInstancePtr) override; virtual MozExternalRefCountType AddRef(void) override; virtual MozExternalRefCountType Release (void) override; | ||||
| 1760 | |||||
| 1761 | bool IsOnOwningThread() const { | ||||
| 1762 | MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOwningEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1762) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget" ")"); do { MOZ_CrashSequence(__null, 1762); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1763 | |||||
| 1764 | bool current; | ||||
| 1765 | return NS_SUCCEEDED(mOwningEventTarget->IsOnCurrentThread(¤t))((bool)(__builtin_expect(!!(!NS_FAILED_impl(mOwningEventTarget ->IsOnCurrentThread(¤t))), 1))) && | ||||
| 1766 | current; | ||||
| 1767 | } | ||||
| 1768 | |||||
| 1769 | void AssertIsOnOwningThread() const { | ||||
| 1770 | MOZ_ASSERT(IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1770) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 1770); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1771 | MOZ_ASSERT(IsOnOwningThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsOnOwningThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsOnOwningThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("IsOnOwningThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1771) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnOwningThread()" ")"); do { MOZ_CrashSequence(__null, 1771); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1772 | } | ||||
| 1773 | |||||
| 1774 | void NoteActorDestroyed() { | ||||
| 1775 | AssertIsOnOwningThread(); | ||||
| 1776 | |||||
| 1777 | mActorDestroyed.EnsureFlipped(); | ||||
| 1778 | mOperationMayProceed = false; | ||||
| 1779 | } | ||||
| 1780 | |||||
| 1781 | bool IsActorDestroyed() const { | ||||
| 1782 | AssertIsOnOwningThread(); | ||||
| 1783 | |||||
| 1784 | return mActorDestroyed; | ||||
| 1785 | } | ||||
| 1786 | |||||
| 1787 | // May be called on any thread, but you should call IsActorDestroyed() if | ||||
| 1788 | // you know you're on the background thread because it is slightly faster. | ||||
| 1789 | bool OperationMayProceed() const { return mOperationMayProceed; } | ||||
| 1790 | |||||
| 1791 | const nsID& BackgroundChildLoggingId() const { | ||||
| 1792 | return mBackgroundChildLoggingId; | ||||
| 1793 | } | ||||
| 1794 | |||||
| 1795 | uint64_t LoggingSerialNumber() const { return mLoggingSerialNumber; } | ||||
| 1796 | |||||
| 1797 | nsresult ResultCode() const { return mResultCode; } | ||||
| 1798 | |||||
| 1799 | void SetFailureCode(nsresult aFailureCode) { | ||||
| 1800 | MOZ_ASSERT(NS_SUCCEEDED(mResultCode))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode )), 1))))>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mResultCode)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1800) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)))" ")"); do { MOZ_CrashSequence(__null, 1800); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1801 | OverrideFailureCode(aFailureCode); | ||||
| 1802 | } | ||||
| 1803 | |||||
| 1804 | void SetFailureCodeIfUnset(nsresult aFailureCode) { | ||||
| 1805 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 1806 | OverrideFailureCode(aFailureCode); | ||||
| 1807 | } | ||||
| 1808 | } | ||||
| 1809 | |||||
| 1810 | bool HasFailed() const { return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)) ); } | ||||
| 1811 | |||||
| 1812 | protected: | ||||
| 1813 | DatabaseOperationBase(const nsID& aBackgroundChildLoggingId, | ||||
| 1814 | uint64_t aLoggingSerialNumber) | ||||
| 1815 | : Runnable("dom::indexedDB::DatabaseOperationBase"), | ||||
| 1816 | mOwningEventTarget(GetCurrentSerialEventTarget()), | ||||
| 1817 | mBackgroundChildLoggingId(aBackgroundChildLoggingId), | ||||
| 1818 | mLoggingSerialNumber(aLoggingSerialNumber), | ||||
| 1819 | mOperationMayProceed(true) { | ||||
| 1820 | AssertIsOnOwningThread(); | ||||
| 1821 | } | ||||
| 1822 | |||||
| 1823 | ~DatabaseOperationBase() override { MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActorDestroyed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1823) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 1823); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 1824 | |||||
| 1825 | void OverrideFailureCode(nsresult aFailureCode) { | ||||
| 1826 | MOZ_ASSERT(NS_FAILED(aFailureCode))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode )), 0))))>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl (aFailureCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode)), 0)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1826) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode)), 0)))" ")"); do { MOZ_CrashSequence(__null, 1826); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1827 | |||||
| 1828 | mResultCode = aFailureCode; | ||||
| 1829 | } | ||||
| 1830 | |||||
| 1831 | static nsAutoCString MaybeGetBindingClauseForKeyRange( | ||||
| 1832 | const Maybe<SerializedKeyRange>& aOptionalKeyRange, | ||||
| 1833 | const nsACString& aKeyColumnName); | ||||
| 1834 | |||||
| 1835 | static nsAutoCString GetBindingClauseForKeyRange( | ||||
| 1836 | const SerializedKeyRange& aKeyRange, const nsACString& aKeyColumnName); | ||||
| 1837 | |||||
| 1838 | static uint64_t ReinterpretDoubleAsUInt64(double aDouble); | ||||
| 1839 | |||||
| 1840 | static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange, | ||||
| 1841 | mozIStorageStatement* aStatement); | ||||
| 1842 | |||||
| 1843 | static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange, | ||||
| 1844 | mozIStorageStatement* aStatement, | ||||
| 1845 | const nsCString& aLocale); | ||||
| 1846 | |||||
| 1847 | static Result<IndexDataValuesAutoArray, nsresult> | ||||
| 1848 | IndexDataValuesFromUpdateInfos(const nsTArray<IndexUpdateInfo>& aUpdateInfos, | ||||
| 1849 | const UniqueIndexTable& aUniqueIndexTable); | ||||
| 1850 | |||||
| 1851 | static nsresult InsertIndexTableRows( | ||||
| 1852 | DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId, | ||||
| 1853 | const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues); | ||||
| 1854 | |||||
| 1855 | static nsresult DeleteIndexDataTableRows( | ||||
| 1856 | DatabaseConnection* aConnection, const Key& aObjectStoreKey, | ||||
| 1857 | const nsTArray<IndexDataValue>& aIndexValues); | ||||
| 1858 | |||||
| 1859 | static nsresult DeleteObjectStoreDataTableRowsWithIndexes( | ||||
| 1860 | DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId, | ||||
| 1861 | const Maybe<SerializedKeyRange>& aKeyRange); | ||||
| 1862 | |||||
| 1863 | static nsresult UpdateIndexValues( | ||||
| 1864 | DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId, | ||||
| 1865 | const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues); | ||||
| 1866 | |||||
| 1867 | static Result<bool, nsresult> ObjectStoreHasIndexes( | ||||
| 1868 | DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId); | ||||
| 1869 | |||||
| 1870 | private: | ||||
| 1871 | template <typename KeyTransformation> | ||||
| 1872 | static nsresult MaybeBindKeyToStatement( | ||||
| 1873 | const Key& aKey, mozIStorageStatement* aStatement, | ||||
| 1874 | const nsACString& aParameterName, | ||||
| 1875 | const KeyTransformation& aKeyTransformation); | ||||
| 1876 | |||||
| 1877 | template <typename KeyTransformation> | ||||
| 1878 | static nsresult BindTransformedKeyRangeToStatement( | ||||
| 1879 | const SerializedKeyRange& aKeyRange, mozIStorageStatement* aStatement, | ||||
| 1880 | const KeyTransformation& aKeyTransformation); | ||||
| 1881 | |||||
| 1882 | // Not to be overridden by subclasses. | ||||
| 1883 | NS_DECL_MOZISTORAGEPROGRESSHANDLERvirtual nsresult OnProgress(mozIStorageConnection *aConnection , bool *_retval) override; | ||||
| 1884 | }; | ||||
| 1885 | |||||
| 1886 | class MOZ_STACK_CLASS DatabaseOperationBase::AutoSetProgressHandler final { | ||||
| 1887 | Maybe<mozIStorageConnection&> mConnection; | ||||
| 1888 | #ifdef DEBUG1 | ||||
| 1889 | DatabaseOperationBase* mDEBUGDatabaseOp; | ||||
| 1890 | #endif | ||||
| 1891 | |||||
| 1892 | public: | ||||
| 1893 | AutoSetProgressHandler(); | ||||
| 1894 | |||||
| 1895 | ~AutoSetProgressHandler(); | ||||
| 1896 | |||||
| 1897 | nsresult Register(mozIStorageConnection& aConnection, | ||||
| 1898 | DatabaseOperationBase* aDatabaseOp); | ||||
| 1899 | |||||
| 1900 | void Unregister(); | ||||
| 1901 | }; | ||||
| 1902 | |||||
| 1903 | class TransactionDatabaseOperationBase : public DatabaseOperationBase { | ||||
| 1904 | enum class InternalState { | ||||
| 1905 | Initial, | ||||
| 1906 | DatabaseWork, | ||||
| 1907 | SendingPreprocess, | ||||
| 1908 | WaitingForContinue, | ||||
| 1909 | SendingResults, | ||||
| 1910 | Completed | ||||
| 1911 | }; | ||||
| 1912 | |||||
| 1913 | InitializedOnce<const NotNull<SafeRefPtr<TransactionBase>>> mTransaction; | ||||
| 1914 | // Unique request id within the context of the transaction, allocated by the | ||||
| 1915 | // transaction in the content process starting from 0. Values less than 0 are | ||||
| 1916 | // impossible and forbidden. Used to support the explicit commit() request. | ||||
| 1917 | const int64_t mRequestId; | ||||
| 1918 | InternalState mInternalState = InternalState::Initial; | ||||
| 1919 | bool mWaitingForContinue = false; | ||||
| 1920 | const bool mTransactionIsAborted; | ||||
| 1921 | bool mNotedActiveRequest = false; | ||||
| 1922 | |||||
| 1923 | protected: | ||||
| 1924 | const int64_t mTransactionLoggingSerialNumber; | ||||
| 1925 | |||||
| 1926 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1 | ||||
| 1927 | protected: | ||||
| 1928 | // A check only enables when the diagnostic assert turns on. It assumes the | ||||
| 1929 | // mUpdateRefcountFunction is a nullptr because the previous | ||||
| 1930 | // StartTransactionOp failed on the connection thread and the next write | ||||
| 1931 | // operation (e.g. ObjectstoreAddOrPutRequestOp) doesn't have enough time to | ||||
| 1932 | // catch up the failure information. | ||||
| 1933 | bool mAssumingPreviousOperationFail = false; | ||||
| 1934 | #endif | ||||
| 1935 | |||||
| 1936 | public: | ||||
| 1937 | void AssertIsOnConnectionThread() const | ||||
| 1938 | #ifdef DEBUG1 | ||||
| 1939 | ; | ||||
| 1940 | #else | ||||
| 1941 | { | ||||
| 1942 | } | ||||
| 1943 | #endif | ||||
| 1944 | |||||
| 1945 | uint64_t StartOnConnectionPool(const nsID& aBackgroundChildLoggingId, | ||||
| 1946 | const nsACString& aDatabaseId, | ||||
| 1947 | int64_t aLoggingSerialNumber, | ||||
| 1948 | const nsTArray<nsString>& aObjectStoreNames, | ||||
| 1949 | bool aIsWriteTransaction); | ||||
| 1950 | |||||
| 1951 | void DispatchToConnectionPool(); | ||||
| 1952 | |||||
| 1953 | TransactionBase& Transaction() { return **mTransaction; } | ||||
| 1954 | |||||
| 1955 | const TransactionBase& Transaction() const { return **mTransaction; } | ||||
| 1956 | |||||
| 1957 | bool IsWaitingForContinue() const { | ||||
| 1958 | AssertIsOnOwningThread(); | ||||
| 1959 | |||||
| 1960 | return mWaitingForContinue; | ||||
| 1961 | } | ||||
| 1962 | |||||
| 1963 | void NoteContinueReceived(); | ||||
| 1964 | |||||
| 1965 | int64_t TransactionLoggingSerialNumber() const { | ||||
| 1966 | return mTransactionLoggingSerialNumber; | ||||
| 1967 | } | ||||
| 1968 | |||||
| 1969 | // May be overridden by subclasses if they need to perform work on the | ||||
| 1970 | // background thread before being dispatched. Returning false will kill the | ||||
| 1971 | // child actors and prevent dispatch. | ||||
| 1972 | virtual bool Init(TransactionBase& aTransaction); | ||||
| 1973 | |||||
| 1974 | // This callback will be called on the background thread before releasing the | ||||
| 1975 | // final reference to this request object. Subclasses may perform any | ||||
| 1976 | // additional cleanup here but must always call the base class implementation. | ||||
| 1977 | virtual void Cleanup(); | ||||
| 1978 | |||||
| 1979 | protected: | ||||
| 1980 | TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 1981 | int64_t aRequestId); | ||||
| 1982 | |||||
| 1983 | TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 1984 | const int64_t aRequestId, | ||||
| 1985 | uint64_t aLoggingSerialNumber); | ||||
| 1986 | |||||
| 1987 | ~TransactionDatabaseOperationBase() override; | ||||
| 1988 | |||||
| 1989 | void NoteTransactionActiveRequest(); | ||||
| 1990 | |||||
| 1991 | virtual void RunOnConnectionThread(); | ||||
| 1992 | |||||
| 1993 | // Must be overridden in subclasses. Called on the target thread to allow the | ||||
| 1994 | // subclass to perform necessary database or file operations. A successful | ||||
| 1995 | // return value will trigger a SendSuccessResult callback on the background | ||||
| 1996 | // thread while a failure value will trigger a SendFailureResult callback. | ||||
| 1997 | virtual nsresult DoDatabaseWork(DatabaseConnection* aConnection) = 0; | ||||
| 1998 | |||||
| 1999 | // May be overriden in subclasses. Called on the background thread to decide | ||||
| 2000 | // if the subclass needs to send any preprocess info to the child actor. | ||||
| 2001 | virtual bool HasPreprocessInfo(); | ||||
| 2002 | |||||
| 2003 | // May be overriden in subclasses. Called on the background thread to allow | ||||
| 2004 | // the subclass to serialize its preprocess info and send it to the child | ||||
| 2005 | // actor. A successful return value will trigger a wait for a | ||||
| 2006 | // NoteContinueReceived callback on the background thread while a failure | ||||
| 2007 | // value will trigger a SendFailureResult callback. | ||||
| 2008 | virtual nsresult SendPreprocessInfo(); | ||||
| 2009 | |||||
| 2010 | // Must be overridden in subclasses. Called on the background thread to allow | ||||
| 2011 | // the subclass to serialize its results and send them to the child actor. A | ||||
| 2012 | // failed return value will trigger a SendFailureResult callback. | ||||
| 2013 | virtual TransactionOpResult SendSuccessResult() = 0; | ||||
| 2014 | |||||
| 2015 | // Must be overridden in subclasses. Called on the background thread to allow | ||||
| 2016 | // the subclass to send its failure code. Returning false will cause the | ||||
| 2017 | // transaction to be aborted with aResultCode. Returning true will not cause | ||||
| 2018 | // the transaction to be aborted. | ||||
| 2019 | virtual bool SendFailureResult(const TransactionOpResult& aResult) = 0; | ||||
| 2020 | |||||
| 2021 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1 | ||||
| 2022 | auto MakeAutoSavepointCleanupHandler(DatabaseConnection& aConnection) { | ||||
| 2023 | return [this, &aConnection](const auto) { | ||||
| 2024 | if (!aConnection.GetUpdateRefcountFunction()) { | ||||
| 2025 | mAssumingPreviousOperationFail = true; | ||||
| 2026 | } | ||||
| 2027 | }; | ||||
| 2028 | } | ||||
| 2029 | #endif | ||||
| 2030 | |||||
| 2031 | private: | ||||
| 2032 | void SendToConnectionPool(); | ||||
| 2033 | |||||
| 2034 | void SendPreprocess(); | ||||
| 2035 | |||||
| 2036 | void SendResults(); | ||||
| 2037 | |||||
| 2038 | void SendPreprocessInfoOrResults(bool aSendPreprocessInfo); | ||||
| 2039 | |||||
| 2040 | // Not to be overridden by subclasses. | ||||
| 2041 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 2042 | }; | ||||
| 2043 | |||||
| 2044 | class Factory final : public PBackgroundIDBFactoryParent, | ||||
| 2045 | public AtomicSafeRefCounted<Factory> { | ||||
| 2046 | nsCString mSystemLocale; | ||||
| 2047 | RefPtr<DatabaseLoggingInfo> mLoggingInfo; | ||||
| 2048 | |||||
| 2049 | #ifdef DEBUG1 | ||||
| 2050 | bool mActorDestroyed; | ||||
| 2051 | #endif | ||||
| 2052 | |||||
| 2053 | // Reference counted. | ||||
| 2054 | ~Factory() override; | ||||
| 2055 | |||||
| 2056 | public: | ||||
| 2057 | [[nodiscard]] static SafeRefPtr<Factory> Create( | ||||
| 2058 | const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale); | ||||
| 2059 | |||||
| 2060 | DatabaseLoggingInfo* GetLoggingInfo() const { | ||||
| 2061 | AssertIsOnBackgroundThread(); | ||||
| 2062 | MOZ_ASSERT(mLoggingInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLoggingInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLoggingInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mLoggingInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2062); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo" ")"); do { MOZ_CrashSequence(__null, 2062); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2063 | |||||
| 2064 | return mLoggingInfo; | ||||
| 2065 | } | ||||
| 2066 | |||||
| 2067 | const nsCString& GetSystemLocale() const { return mSystemLocale; } | ||||
| 2068 | |||||
| 2069 | MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Factory)const char* typeName() const { return "mozilla::dom::indexedDB::Factory" ; } size_t typeSize() const { return sizeof(*this); } | ||||
| 2070 | 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; } | ||||
| 2071 | |||||
| 2072 | // Only constructed in Create(). | ||||
| 2073 | Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo, | ||||
| 2074 | const nsACString& aSystemLocale); | ||||
| 2075 | |||||
| 2076 | // IPDL methods are only called by IPDL. | ||||
| 2077 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 2078 | |||||
| 2079 | mozilla::ipc::IPCResult RecvDeleteMe() override; | ||||
| 2080 | |||||
| 2081 | PBackgroundIDBFactoryRequestParent* AllocPBackgroundIDBFactoryRequestParent( | ||||
| 2082 | const FactoryRequestParams& aParams) override; | ||||
| 2083 | |||||
| 2084 | mozilla::ipc::IPCResult RecvPBackgroundIDBFactoryRequestConstructor( | ||||
| 2085 | PBackgroundIDBFactoryRequestParent* aActor, | ||||
| 2086 | const FactoryRequestParams& aParams) override; | ||||
| 2087 | |||||
| 2088 | bool DeallocPBackgroundIDBFactoryRequestParent( | ||||
| 2089 | PBackgroundIDBFactoryRequestParent* aActor) override; | ||||
| 2090 | |||||
| 2091 | mozilla::ipc::IPCResult RecvGetDatabases( | ||||
| 2092 | const PersistenceType& aPersistenceType, | ||||
| 2093 | const PrincipalInfo& aPrincipalInfo, | ||||
| 2094 | GetDatabasesResolver&& aResolve) override; | ||||
| 2095 | |||||
| 2096 | private: | ||||
| 2097 | Maybe<ContentParentId> GetContentParentId() const; | ||||
| 2098 | }; | ||||
| 2099 | |||||
| 2100 | class WaitForTransactionsHelper final : public Runnable { | ||||
| 2101 | const nsCString mDatabaseId; | ||||
| 2102 | nsCOMPtr<nsIRunnable> mCallback; | ||||
| 2103 | |||||
| 2104 | enum class State { Initial = 0, WaitingForTransactions, Complete } mState; | ||||
| 2105 | |||||
| 2106 | public: | ||||
| 2107 | WaitForTransactionsHelper(const nsACString& aDatabaseId, | ||||
| 2108 | nsIRunnable* aCallback) | ||||
| 2109 | : Runnable("dom::indexedDB::WaitForTransactionsHelper"), | ||||
| 2110 | mDatabaseId(aDatabaseId), | ||||
| 2111 | mCallback(aCallback), | ||||
| 2112 | mState(State::Initial) { | ||||
| 2113 | AssertIsOnBackgroundThread(); | ||||
| 2114 | MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2114) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 2114); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2115 | MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2115); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { MOZ_CrashSequence(__null, 2115); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2116 | } | ||||
| 2117 | |||||
| 2118 | void WaitForTransactions(); | ||||
| 2119 | |||||
| 2120 | 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; } | ||||
| 2121 | |||||
| 2122 | private: | ||||
| 2123 | ~WaitForTransactionsHelper() override { | ||||
| 2124 | MOZ_ASSERT(!mCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2124); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback" ")"); do { MOZ_CrashSequence(__null, 2124); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2125 | MOZ_ASSERT(mState == State::Complete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Complete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Complete))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Complete" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2125) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete" ")"); do { MOZ_CrashSequence(__null, 2125); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2126 | } | ||||
| 2127 | |||||
| 2128 | void MaybeWaitForTransactions(); | ||||
| 2129 | |||||
| 2130 | void CallCallback(); | ||||
| 2131 | |||||
| 2132 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 2133 | }; | ||||
| 2134 | |||||
| 2135 | class Database final : public PBackgroundIDBDatabaseParent, | ||||
| 2136 | public LinkedListElement<Database>, | ||||
| 2137 | public AtomicSafeRefCounted<Database> { | ||||
| 2138 | friend class VersionChangeTransaction; | ||||
| 2139 | |||||
| 2140 | class StartTransactionOp; | ||||
| 2141 | class UnmapBlobCallback; | ||||
| 2142 | |||||
| 2143 | private: | ||||
| 2144 | SafeRefPtr<Factory> mFactory; | ||||
| 2145 | SafeRefPtr<FullDatabaseMetadata> mMetadata; | ||||
| 2146 | SafeRefPtr<DatabaseFileManager> mFileManager; | ||||
| 2147 | ClientDirectoryLockHandle mDirectoryLockHandle; | ||||
| 2148 | nsTHashSet<TransactionBase*> mTransactions; | ||||
| 2149 | nsTHashMap<nsIDHashKey, SafeRefPtr<DatabaseFileInfo>> mMappedBlobs; | ||||
| 2150 | RefPtr<DatabaseConnection> mConnection; | ||||
| 2151 | const PrincipalInfo mPrincipalInfo; | ||||
| 2152 | const Maybe<ContentParentId> mOptionalContentParentId; | ||||
| 2153 | // XXX Consider changing this to ClientMetadata. | ||||
| 2154 | const quota::OriginMetadata mOriginMetadata; | ||||
| 2155 | const nsCString mId; | ||||
| 2156 | const nsString mFilePath; | ||||
| 2157 | const Maybe<const CipherKey> mKey; | ||||
| 2158 | int64_t mDirectoryLockId; | ||||
| 2159 | const uint32_t mTelemetryId; | ||||
| 2160 | const PersistenceType mPersistenceType; | ||||
| 2161 | const bool mInPrivateBrowsing; | ||||
| 2162 | FlippedOnce<false> mClosed; | ||||
| 2163 | FlippedOnce<false> mInvalidated; | ||||
| 2164 | FlippedOnce<false> mActorWasAlive; | ||||
| 2165 | FlippedOnce<false> mActorDestroyed; | ||||
| 2166 | nsCOMPtr<nsIEventTarget> mBackgroundThread; | ||||
| 2167 | #ifdef DEBUG1 | ||||
| 2168 | bool mAllBlobsUnmapped; | ||||
| 2169 | #endif | ||||
| 2170 | |||||
| 2171 | public: | ||||
| 2172 | // Created by OpenDatabaseOp. | ||||
| 2173 | Database(SafeRefPtr<Factory> aFactory, const PrincipalInfo& aPrincipalInfo, | ||||
| 2174 | const Maybe<ContentParentId>& aOptionalContentParentId, | ||||
| 2175 | const quota::OriginMetadata& aOriginMetadata, uint32_t aTelemetryId, | ||||
| 2176 | SafeRefPtr<FullDatabaseMetadata> aMetadata, | ||||
| 2177 | SafeRefPtr<DatabaseFileManager> aFileManager, | ||||
| 2178 | ClientDirectoryLockHandle aDirectoryLockHandle, | ||||
| 2179 | bool aInPrivateBrowsing, const Maybe<const CipherKey>& aMaybeKey); | ||||
| 2180 | |||||
| 2181 | void AssertIsOnConnectionThread() const { | ||||
| 2182 | #ifdef DEBUG1 | ||||
| 2183 | // mConnection is used to cache the result from ConnectionPool's | ||||
| 2184 | // GetOrCreateConnection method (potentially avoiding a lock and a hash | ||||
| 2185 | // lookup). However, once the connection is closed, the task queue for the | ||||
| 2186 | // given database is also destroyed, so the connection, which caches the | ||||
| 2187 | // event target it was created on, is no longer reliable for asserting that | ||||
| 2188 | // the current thread is the connection thread (mConnection might be reset | ||||
| 2189 | // when EnsureConnection is called again, but in the meantime, we have to | ||||
| 2190 | // fallback to just checking the main thread and the PBackgroud thread). | ||||
| 2191 | // | ||||
| 2192 | // We cannot additionally assert mInvalidated here: mConnection is only ever | ||||
| 2193 | // assigned (never cleared), so it is also left pointing at a closed | ||||
| 2194 | // connection after a routine idle-connection close. ConnectionPool's idle | ||||
| 2195 | // timer (IdleTimerCallback -> CloseDatabase -> CloseConnectionRunnable) | ||||
| 2196 | // closes the connection, and NoteClosedDatabase then drops the | ||||
| 2197 | // DatabaseInfo without invalidating the owning Database -- so the Database | ||||
| 2198 | // survives with a Closed() mConnection and mInvalidated still false. A | ||||
| 2199 | // sibling transaction's CommitOp can then run on the connection thread in | ||||
| 2200 | // this closed-but-not-invalidated state -- a window widened whenever an | ||||
| 2201 | // in-profile database open is slow (e.g. SQLite at-rest encryption fetching | ||||
| 2202 | // a per-database key). The CommitOp path tolerates a closed/absent | ||||
| 2203 | // connection, so only the thread identity matters here. | ||||
| 2204 | if (mConnection && !mConnection->Closed()) { | ||||
| 2205 | mConnection->AssertIsOnConnectionThread(); | ||||
| 2206 | } else { | ||||
| 2207 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2207) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 2207); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2208 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2208) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 2208); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2209 | } | ||||
| 2210 | #endif | ||||
| 2211 | } | ||||
| 2212 | |||||
| 2213 | NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType AddRef() override { | ||||
| 2214 | return AtomicSafeRefCounted<Database>::AddRef(); | ||||
| 2215 | } | ||||
| 2216 | NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType Release() override { | ||||
| 2217 | return AtomicSafeRefCounted<Database>::Release(); | ||||
| 2218 | } | ||||
| 2219 | |||||
| 2220 | MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Database)const char* typeName() const { return "mozilla::dom::indexedDB::Database" ; } size_t typeSize() const { return sizeof(*this); } | ||||
| 2221 | |||||
| 2222 | void Invalidate(); | ||||
| 2223 | |||||
| 2224 | bool IsOwnedByProcess(ContentParentId aContentParentId) const { | ||||
| 2225 | return mOptionalContentParentId && | ||||
| 2226 | mOptionalContentParentId.value() == aContentParentId; | ||||
| 2227 | } | ||||
| 2228 | |||||
| 2229 | const quota::OriginMetadata& OriginMetadata() const { | ||||
| 2230 | return mOriginMetadata; | ||||
| 2231 | } | ||||
| 2232 | |||||
| 2233 | const nsCString& Id() const { return mId; } | ||||
| 2234 | |||||
| 2235 | Maybe<ClientDirectoryLock&> MaybeDirectoryLockRef() const { | ||||
| 2236 | AssertIsOnBackgroundThread(); | ||||
| 2237 | |||||
| 2238 | return ToMaybeRef(mDirectoryLockHandle.get()); | ||||
| 2239 | } | ||||
| 2240 | |||||
| 2241 | int64_t DirectoryLockId() const { return mDirectoryLockId; } | ||||
| 2242 | |||||
| 2243 | uint32_t TelemetryId() const { return mTelemetryId; } | ||||
| 2244 | |||||
| 2245 | PersistenceType Type() const { return mPersistenceType; } | ||||
| 2246 | |||||
| 2247 | const nsString& FilePath() const { return mFilePath; } | ||||
| 2248 | |||||
| 2249 | DatabaseFileManager& GetFileManager() const { return *mFileManager; } | ||||
| 2250 | |||||
| 2251 | MovingNotNull<SafeRefPtr<DatabaseFileManager>> GetFileManagerPtr() const { | ||||
| 2252 | return WrapMovingNotNull(mFileManager.clonePtr()); | ||||
| 2253 | } | ||||
| 2254 | |||||
| 2255 | const FullDatabaseMetadata& Metadata() const { | ||||
| 2256 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")" ); do { MOZ_CrashSequence(__null, 2256); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2257 | return *mMetadata; | ||||
| 2258 | } | ||||
| 2259 | |||||
| 2260 | SafeRefPtr<FullDatabaseMetadata> MetadataPtr() const { | ||||
| 2261 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2261); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")" ); do { MOZ_CrashSequence(__null, 2261); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2262 | return mMetadata.clonePtr(); | ||||
| 2263 | } | ||||
| 2264 | |||||
| 2265 | PBackgroundParent* GetBackgroundParent() const { | ||||
| 2266 | AssertIsOnBackgroundThread(); | ||||
| 2267 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2267) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 2267); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2268 | |||||
| 2269 | return Manager()->Manager(); | ||||
| 2270 | } | ||||
| 2271 | |||||
| 2272 | DatabaseLoggingInfo* GetLoggingInfo() const { | ||||
| 2273 | AssertIsOnBackgroundThread(); | ||||
| 2274 | MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFactory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFactory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2274); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")" ); do { MOZ_CrashSequence(__null, 2274); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2275 | |||||
| 2276 | return mFactory->GetLoggingInfo(); | ||||
| 2277 | } | ||||
| 2278 | |||||
| 2279 | bool RegisterTransaction(TransactionBase& aTransaction); | ||||
| 2280 | |||||
| 2281 | void UnregisterTransaction(TransactionBase& aTransaction); | ||||
| 2282 | |||||
| 2283 | void SetActorAlive(); | ||||
| 2284 | |||||
| 2285 | void MapBlob(const IPCBlob& aIPCBlob, SafeRefPtr<DatabaseFileInfo> aFileInfo); | ||||
| 2286 | |||||
| 2287 | bool IsActorAlive() const { | ||||
| 2288 | AssertIsOnBackgroundThread(); | ||||
| 2289 | |||||
| 2290 | return mActorWasAlive && !mActorDestroyed; | ||||
| 2291 | } | ||||
| 2292 | |||||
| 2293 | bool IsActorDestroyed() const { | ||||
| 2294 | AssertIsOnBackgroundThread(); | ||||
| 2295 | |||||
| 2296 | return mActorWasAlive && mActorDestroyed; | ||||
| 2297 | } | ||||
| 2298 | |||||
| 2299 | bool IsClosed() const { | ||||
| 2300 | AssertIsOnBackgroundThread(); | ||||
| 2301 | |||||
| 2302 | return mClosed; | ||||
| 2303 | } | ||||
| 2304 | |||||
| 2305 | bool IsInvalidated() const { | ||||
| 2306 | AssertIsOnBackgroundThread(); | ||||
| 2307 | |||||
| 2308 | return mInvalidated; | ||||
| 2309 | } | ||||
| 2310 | |||||
| 2311 | nsresult EnsureConnection(); | ||||
| 2312 | |||||
| 2313 | DatabaseConnection* GetConnection() const { | ||||
| 2314 | #ifdef DEBUG1 | ||||
| 2315 | if (mConnection) { | ||||
| 2316 | mConnection->AssertIsOnConnectionThread(); | ||||
| 2317 | } | ||||
| 2318 | #endif | ||||
| 2319 | |||||
| 2320 | return mConnection; | ||||
| 2321 | } | ||||
| 2322 | |||||
| 2323 | void Stringify(nsACString& aResult) const; | ||||
| 2324 | |||||
| 2325 | bool IsInPrivateBrowsing() const { | ||||
| 2326 | AssertIsOnBackgroundThread(); | ||||
| 2327 | return mInPrivateBrowsing; | ||||
| 2328 | } | ||||
| 2329 | |||||
| 2330 | const Maybe<const CipherKey>& MaybeKeyRef() const { | ||||
| 2331 | // This can be called on any thread, as it is const. | ||||
| 2332 | 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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2332); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKey.isSome() == mInPrivateBrowsing" ")"); do { MOZ_CrashSequence(__null, 2332); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2333 | return mKey; | ||||
| 2334 | } | ||||
| 2335 | |||||
| 2336 | ~Database() override { | ||||
| 2337 | MOZ_ASSERT(mClosed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mClosed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mClosed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2337); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")" ); do { MOZ_CrashSequence(__null, 2337); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2338 | MOZ_ASSERT_IF(mActorWasAlive, mActorDestroyed)do { if (mActorWasAlive) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(mActorDestroyed)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mActorDestroyed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2338); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"); do { MOZ_CrashSequence(__null, 2338); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 2339 | MOZ_DIAGNOSTIC_ASSERT(!isInList())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!isInList())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!isInList()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!isInList()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2339); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!isInList()" ")"); do { MOZ_CrashSequence(__null, 2339); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2340 | |||||
| 2341 | NS_ProxyRelease("ReleaseIDBFactory", mBackgroundThread.get(), | ||||
| 2342 | mFactory.forget()); | ||||
| 2343 | } | ||||
| 2344 | |||||
| 2345 | private: | ||||
| 2346 | [[nodiscard]] SafeRefPtr<DatabaseFileInfo> GetBlob(const IPCBlob& aIPCBlob); | ||||
| 2347 | |||||
| 2348 | void UnmapBlob(const nsID& aID); | ||||
| 2349 | |||||
| 2350 | void UnmapAllBlobs(); | ||||
| 2351 | |||||
| 2352 | bool CloseInternal(); | ||||
| 2353 | |||||
| 2354 | void MaybeCloseConnection(); | ||||
| 2355 | |||||
| 2356 | void ConnectionClosedCallback(); | ||||
| 2357 | |||||
| 2358 | void CleanupMetadata(); | ||||
| 2359 | |||||
| 2360 | // IPDL methods are only called by IPDL. | ||||
| 2361 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 2362 | |||||
| 2363 | PBackgroundIDBDatabaseFileParent* AllocPBackgroundIDBDatabaseFileParent( | ||||
| 2364 | const IPCBlob& aIPCBlob) override; | ||||
| 2365 | |||||
| 2366 | bool DeallocPBackgroundIDBDatabaseFileParent( | ||||
| 2367 | PBackgroundIDBDatabaseFileParent* aActor) override; | ||||
| 2368 | |||||
| 2369 | already_AddRefed<PBackgroundIDBTransactionParent> | ||||
| 2370 | AllocPBackgroundIDBTransactionParent( | ||||
| 2371 | const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode, | ||||
| 2372 | const Durability& aDurability) override; | ||||
| 2373 | |||||
| 2374 | mozilla::ipc::IPCResult RecvPBackgroundIDBTransactionConstructor( | ||||
| 2375 | PBackgroundIDBTransactionParent* aActor, | ||||
| 2376 | nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode, | ||||
| 2377 | const Durability& aDurability) override; | ||||
| 2378 | |||||
| 2379 | mozilla::ipc::IPCResult RecvDeleteMe() override; | ||||
| 2380 | |||||
| 2381 | mozilla::ipc::IPCResult RecvBlocked() override; | ||||
| 2382 | |||||
| 2383 | mozilla::ipc::IPCResult RecvClose() override; | ||||
| 2384 | |||||
| 2385 | template <typename T> | ||||
| 2386 | static bool InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable); | ||||
| 2387 | }; | ||||
| 2388 | |||||
| 2389 | class Database::StartTransactionOp final | ||||
| 2390 | : public TransactionDatabaseOperationBase { | ||||
| 2391 | friend class Database; | ||||
| 2392 | |||||
| 2393 | private: | ||||
| 2394 | explicit StartTransactionOp(SafeRefPtr<TransactionBase> aTransaction) | ||||
| 2395 | : TransactionDatabaseOperationBase(std::move(aTransaction), | ||||
| 2396 | /* aRequestId */ 0, | ||||
| 2397 | /* aLoggingSerialNumber */ 0) {} | ||||
| 2398 | |||||
| 2399 | ~StartTransactionOp() override = default; | ||||
| 2400 | |||||
| 2401 | void RunOnConnectionThread() override; | ||||
| 2402 | |||||
| 2403 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 2404 | |||||
| 2405 | TransactionOpResult SendSuccessResult() override; | ||||
| 2406 | |||||
| 2407 | bool SendFailureResult(const TransactionOpResult& aResult) override; | ||||
| 2408 | |||||
| 2409 | void Cleanup() override; | ||||
| 2410 | }; | ||||
| 2411 | |||||
| 2412 | class Database::UnmapBlobCallback final | ||||
| 2413 | : public RemoteLazyInputStreamParentCallback { | ||||
| 2414 | SafeRefPtr<Database> mDatabase; | ||||
| 2415 | nsCOMPtr<nsISerialEventTarget> mBackgroundThread; | ||||
| 2416 | |||||
| 2417 | public: | ||||
| 2418 | explicit UnmapBlobCallback(SafeRefPtr<Database> aDatabase) | ||||
| 2419 | : mDatabase(std::move(aDatabase)), | ||||
| 2420 | mBackgroundThread(GetCurrentSerialEventTarget()) { | ||||
| 2421 | AssertIsOnBackgroundThread(); | ||||
| 2422 | } | ||||
| 2423 | |||||
| 2424 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(Database::UnmapBlobCallback, override)public: MozExternalRefCountType AddRef(void) override { static_assert (!std::is_destructible_v<Database::UnmapBlobCallback>, "Reference-counted class " "Database::UnmapBlobCallback" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2424); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 2424 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("Database::UnmapBlobCallback"), (uint32_t)(sizeof(*this)) ); return (nsrefcnt)count; } MozExternalRefCountType Release( void) override { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2424); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 2424 ); __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: | ||||
| 2425 | |||||
| 2426 | void ActorDestroyed(const nsID& aID) override { | ||||
| 2427 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2427); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2427); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2428 | mBackgroundThread->Dispatch(NS_NewRunnableFunction( | ||||
| 2429 | "UnmapBlobCallback", [aID, database = std::move(mDatabase)] { | ||||
| 2430 | AssertIsOnBackgroundThread(); | ||||
| 2431 | database->UnmapBlob(aID); | ||||
| 2432 | })); | ||||
| 2433 | } | ||||
| 2434 | |||||
| 2435 | private: | ||||
| 2436 | ~UnmapBlobCallback() = default; | ||||
| 2437 | }; | ||||
| 2438 | |||||
| 2439 | /** | ||||
| 2440 | * In coordination with IDBDatabase's mFileActors weak-map on the child side, a | ||||
| 2441 | * long-lived mapping from a child process's live Blobs to their corresponding | ||||
| 2442 | * DatabaseFileInfo in our owning database. Assists in avoiding redundant IPC | ||||
| 2443 | * traffic and disk storage. This includes both: | ||||
| 2444 | * - Blobs retrieved from this database and sent to the child that do not need | ||||
| 2445 | * to be written to disk because they already exist on disk in this database's | ||||
| 2446 | * files directory. | ||||
| 2447 | * - Blobs retrieved from other databases or from anywhere else that will need | ||||
| 2448 | * to be written to this database's files directory. In this case we will | ||||
| 2449 | * hold a reference to its BlobImpl in mBlobImpl until we have successfully | ||||
| 2450 | * written the Blob to disk. | ||||
| 2451 | * | ||||
| 2452 | * Relevant Blob context: Blobs sent from the parent process to child processes | ||||
| 2453 | * are automatically linked back to their source BlobImpl when the child process | ||||
| 2454 | * references the Blob via IPC. This is done using the internal IPCBlob | ||||
| 2455 | * inputStream actor ID to DatabaseFileInfo mapping. However, when getting an | ||||
| 2456 | * actor in the child process for sending an in-child-created Blob to the | ||||
| 2457 | * parent process, there is (currently) no Blob machinery to automatically | ||||
| 2458 | * establish and reuse a long-lived Actor. As a result, without IDB's weak-map | ||||
| 2459 | * cleverness, a memory-backed Blob repeatedly sent from the child to the parent | ||||
| 2460 | * would appear as a different Blob each time, requiring the Blob data to be | ||||
| 2461 | * sent over IPC each time as well as potentially needing to be written to disk | ||||
| 2462 | * each time. | ||||
| 2463 | * | ||||
| 2464 | * This object remains alive as long as there is an active child actor or an | ||||
| 2465 | * ObjectStoreAddOrPutRequestOp::StoredFileInfo for a queued or active add/put | ||||
| 2466 | * op is holding a reference to us. | ||||
| 2467 | */ | ||||
| 2468 | class DatabaseFile final : public PBackgroundIDBDatabaseFileParent { | ||||
| 2469 | // mBlobImpl's ownership lifecycle: | ||||
| 2470 | // - Initialized on the background thread at creation time. Then | ||||
| 2471 | // responsibility is handed off to the connection thread. | ||||
| 2472 | // - Checked and used by the connection thread to generate a stream to write | ||||
| 2473 | // the blob to disk by an add/put operation. | ||||
| 2474 | // - Cleared on the connection thread once the file has successfully been | ||||
| 2475 | // written to disk. | ||||
| 2476 | InitializedOnce<const RefPtr<BlobImpl>> mBlobImpl; | ||||
| 2477 | const SafeRefPtr<DatabaseFileInfo> mFileInfo; | ||||
| 2478 | |||||
| 2479 | public: | ||||
| 2480 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::DatabaseFile)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<mozilla::dom::indexedDB::DatabaseFile >, "Reference-counted class " "mozilla::dom::indexedDB::DatabaseFile" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2480); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 2480 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("mozilla::dom::indexedDB::DatabaseFile"), (uint32_t)(sizeof (*this))); return (nsrefcnt)count; } MozExternalRefCountType Release (void) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2480); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 2480 ); __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:; | ||||
| 2481 | |||||
| 2482 | const DatabaseFileInfo& GetFileInfo() const { | ||||
| 2483 | AssertIsOnBackgroundThread(); | ||||
| 2484 | |||||
| 2485 | return *mFileInfo; | ||||
| 2486 | } | ||||
| 2487 | |||||
| 2488 | SafeRefPtr<DatabaseFileInfo> GetFileInfoPtr() const { | ||||
| 2489 | AssertIsOnBackgroundThread(); | ||||
| 2490 | |||||
| 2491 | return mFileInfo.clonePtr(); | ||||
| 2492 | } | ||||
| 2493 | |||||
| 2494 | /** | ||||
| 2495 | * If mBlobImpl is non-null (implying the contents of this file have not yet | ||||
| 2496 | * been written to disk), then return an input stream. Otherwise, if mBlobImpl | ||||
| 2497 | * is null (because the contents have been written to disk), returns null. | ||||
| 2498 | */ | ||||
| 2499 | [[nodiscard]] nsCOMPtr<nsIInputStream> GetInputStream(ErrorResult& rv) const; | ||||
| 2500 | |||||
| 2501 | /** | ||||
| 2502 | * To be called upon successful copying of the stream GetInputStream() | ||||
| 2503 | * returned so that we won't try and redundantly write the file to disk in the | ||||
| 2504 | * future. This is a separate step from GetInputStream() because | ||||
| 2505 | * the write could fail due to quota errors that happen now but that might | ||||
| 2506 | * not happen in a future attempt. | ||||
| 2507 | */ | ||||
| 2508 | void WriteSucceededClearBlobImpl() { | ||||
| 2509 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2509) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 2509); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2510 | |||||
| 2511 | MOZ_ASSERT(*mBlobImpl)do { static_assert( mozilla::detail::AssertionConditionType< decltype(*mBlobImpl)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(*mBlobImpl))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("*mBlobImpl", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2511); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl" ")"); do { MOZ_CrashSequence(__null, 2511); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2512 | mBlobImpl.destroy(); | ||||
| 2513 | } | ||||
| 2514 | |||||
| 2515 | public: | ||||
| 2516 | // Called when sending to the child. | ||||
| 2517 | explicit DatabaseFile(SafeRefPtr<DatabaseFileInfo> aFileInfo) | ||||
| 2518 | : mBlobImpl{nullptr}, mFileInfo(std::move(aFileInfo)) { | ||||
| 2519 | AssertIsOnBackgroundThread(); | ||||
| 2520 | MOZ_ASSERT(mFileInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")" ); do { MOZ_CrashSequence(__null, 2520); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2521 | } | ||||
| 2522 | |||||
| 2523 | // Called when receiving from the child. | ||||
| 2524 | DatabaseFile(RefPtr<BlobImpl> aBlobImpl, | ||||
| 2525 | SafeRefPtr<DatabaseFileInfo> aFileInfo) | ||||
| 2526 | : mBlobImpl(std::move(aBlobImpl)), mFileInfo(std::move(aFileInfo)) { | ||||
| 2527 | AssertIsOnBackgroundThread(); | ||||
| 2528 | MOZ_ASSERT(*mBlobImpl)do { static_assert( mozilla::detail::AssertionConditionType< decltype(*mBlobImpl)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(*mBlobImpl))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("*mBlobImpl", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl" ")"); do { MOZ_CrashSequence(__null, 2528); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2529 | MOZ_ASSERT(mFileInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")" ); do { MOZ_CrashSequence(__null, 2529); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2530 | } | ||||
| 2531 | |||||
| 2532 | private: | ||||
| 2533 | ~DatabaseFile() override = default; | ||||
| 2534 | |||||
| 2535 | void ActorDestroy(ActorDestroyReason aWhy) override { | ||||
| 2536 | AssertIsOnBackgroundThread(); | ||||
| 2537 | } | ||||
| 2538 | }; | ||||
| 2539 | |||||
| 2540 | nsCOMPtr<nsIInputStream> DatabaseFile::GetInputStream(ErrorResult& rv) const { | ||||
| 2541 | // We should only be called from our DB connection thread, not the background | ||||
| 2542 | // thread. | ||||
| 2543 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2543) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 2543); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2544 | |||||
| 2545 | // If we were constructed without a BlobImpl, or WriteSucceededClearBlobImpl | ||||
| 2546 | // was already called, return nullptr. | ||||
| 2547 | if (!mBlobImpl || !*mBlobImpl) { | ||||
| 2548 | return nullptr; | ||||
| 2549 | } | ||||
| 2550 | |||||
| 2551 | nsCOMPtr<nsIInputStream> inputStream; | ||||
| 2552 | (*mBlobImpl)->CreateInputStream(getter_AddRefs(inputStream), rv); | ||||
| 2553 | if (rv.Failed()) { | ||||
| 2554 | return nullptr; | ||||
| 2555 | } | ||||
| 2556 | |||||
| 2557 | return inputStream; | ||||
| 2558 | } | ||||
| 2559 | |||||
| 2560 | class TransactionBase : public AtomicSafeRefCounted<TransactionBase> { | ||||
| 2561 | friend class CursorBase; | ||||
| 2562 | |||||
| 2563 | template <IDBCursorType CursorType> | ||||
| 2564 | friend class Cursor; | ||||
| 2565 | |||||
| 2566 | class CommitOp; | ||||
| 2567 | |||||
| 2568 | protected: | ||||
| 2569 | using Mode = IDBTransaction::Mode; | ||||
| 2570 | using Durability = IDBTransaction::Durability; | ||||
| 2571 | |||||
| 2572 | private: | ||||
| 2573 | const SafeRefPtr<Database> mDatabase; | ||||
| 2574 | nsTArray<SafeRefPtr<FullObjectStoreMetadata>> | ||||
| 2575 | mModifiedAutoIncrementObjectStoreMetadataArray; | ||||
| 2576 | LazyInitializedOnceNotNull<const uint64_t> mTransactionId; | ||||
| 2577 | const nsCString mDatabaseId; | ||||
| 2578 | const int64_t mLoggingSerialNumber; | ||||
| 2579 | uint64_t mActiveRequestCount; | ||||
| 2580 | Atomic<bool> mInvalidatedOnAnyThread; | ||||
| 2581 | const Mode mMode; | ||||
| 2582 | const Durability mDurability; | ||||
| 2583 | FlippedOnce<false> mInitialized; | ||||
| 2584 | FlippedOnce<false> mHasBeenActiveOnConnectionThread; | ||||
| 2585 | FlippedOnce<false> mActorDestroyed; | ||||
| 2586 | FlippedOnce<false> mInvalidated; | ||||
| 2587 | |||||
| 2588 | protected: | ||||
| 2589 | nsresult mResultCode; | ||||
| 2590 | FlippedOnce<false> mCommitOrAbortReceived; | ||||
| 2591 | FlippedOnce<false> mCommittedOrAborted; | ||||
| 2592 | FlippedOnce<false> mForceAborted; | ||||
| 2593 | LazyInitializedOnce<const Maybe<int64_t>> mLastRequestBeforeCommit; | ||||
| 2594 | Maybe<int64_t> mLastFailedRequest; | ||||
| 2595 | |||||
| 2596 | public: | ||||
| 2597 | void AssertIsOnConnectionThread() const { | ||||
| 2598 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2598); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2598); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2599 | mDatabase->AssertIsOnConnectionThread(); | ||||
| 2600 | } | ||||
| 2601 | |||||
| 2602 | bool IsActorDestroyed() const { | ||||
| 2603 | AssertIsOnBackgroundThread(); | ||||
| 2604 | |||||
| 2605 | return mActorDestroyed; | ||||
| 2606 | } | ||||
| 2607 | |||||
| 2608 | // Must be called on the background thread. | ||||
| 2609 | bool IsInvalidated() const { | ||||
| 2610 | MOZ_ASSERT(IsOnBackgroundThread(), "Use IsInvalidatedOnAnyThread()")do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("IsOnBackgroundThread()" " (" "Use IsInvalidatedOnAnyThread()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2610); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()" ") (" "Use IsInvalidatedOnAnyThread()" ")"); do { MOZ_CrashSequence (__null, 2610); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); | ||||
| 2611 | MOZ_ASSERT_IF(mInvalidated, NS_FAILED(mResultCode))do { if (mInvalidated) { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(((bool)(__builtin_expect(! !(NS_FAILED_impl(mResultCode)), 0))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( NS_FAILED_impl(mResultCode)), 0)))))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2611) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)))" ")"); do { MOZ_CrashSequence(__null, 2611); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 2612 | |||||
| 2613 | return mInvalidated; | ||||
| 2614 | } | ||||
| 2615 | |||||
| 2616 | // May be called on any thread, but is more expensive than IsInvalidated(). | ||||
| 2617 | bool IsInvalidatedOnAnyThread() const { return mInvalidatedOnAnyThread; } | ||||
| 2618 | |||||
| 2619 | void Init(const uint64_t aTransactionId) { | ||||
| 2620 | AssertIsOnBackgroundThread(); | ||||
| 2621 | MOZ_ASSERT(aTransactionId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTransactionId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aTransactionId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aTransactionId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2621) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransactionId" ")" ); do { MOZ_CrashSequence(__null, 2621); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2622 | |||||
| 2623 | mTransactionId.init(aTransactionId); | ||||
| 2624 | mInitialized.Flip(); | ||||
| 2625 | } | ||||
| 2626 | |||||
| 2627 | void SetActiveOnConnectionThread() { | ||||
| 2628 | AssertIsOnConnectionThread(); | ||||
| 2629 | mHasBeenActiveOnConnectionThread.Flip(); | ||||
| 2630 | } | ||||
| 2631 | |||||
| 2632 | MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::TransactionBase)const char* typeName() const { return "mozilla::dom::indexedDB::TransactionBase" ; } size_t typeSize() const { return sizeof(*this); } | ||||
| 2633 | |||||
| 2634 | void Abort(nsresult aResultCode, bool aForce); | ||||
| 2635 | |||||
| 2636 | uint64_t TransactionId() const { return *mTransactionId; } | ||||
| 2637 | |||||
| 2638 | const nsACString& DatabaseId() const { return mDatabaseId; } | ||||
| 2639 | |||||
| 2640 | Mode GetMode() const { return mMode; } | ||||
| 2641 | |||||
| 2642 | Durability GetDurability() const { return mDurability; } | ||||
| 2643 | |||||
| 2644 | const Database& GetDatabase() const { | ||||
| 2645 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2645); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2646 | |||||
| 2647 | return *mDatabase; | ||||
| 2648 | } | ||||
| 2649 | |||||
| 2650 | Database& GetMutableDatabase() const { | ||||
| 2651 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2651); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2651); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2652 | |||||
| 2653 | return *mDatabase; | ||||
| 2654 | } | ||||
| 2655 | |||||
| 2656 | SafeRefPtr<Database> GetDatabasePtr() const { | ||||
| 2657 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2657); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2657); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2658 | |||||
| 2659 | return mDatabase.clonePtr(); | ||||
| 2660 | } | ||||
| 2661 | |||||
| 2662 | DatabaseLoggingInfo* GetLoggingInfo() const { | ||||
| 2663 | AssertIsOnBackgroundThread(); | ||||
| 2664 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2664); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2665 | |||||
| 2666 | return mDatabase->GetLoggingInfo(); | ||||
| 2667 | } | ||||
| 2668 | |||||
| 2669 | int64_t LoggingSerialNumber() const { return mLoggingSerialNumber; } | ||||
| 2670 | |||||
| 2671 | bool IsAborted() const { | ||||
| 2672 | AssertIsOnBackgroundThread(); | ||||
| 2673 | |||||
| 2674 | return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)) ); | ||||
| 2675 | } | ||||
| 2676 | |||||
| 2677 | [[nodiscard]] SafeRefPtr<FullObjectStoreMetadata> GetMetadataForObjectStoreId( | ||||
| 2678 | IndexOrObjectStoreId aObjectStoreId) const; | ||||
| 2679 | |||||
| 2680 | [[nodiscard]] SafeRefPtr<FullIndexMetadata> GetMetadataForIndexId( | ||||
| 2681 | FullObjectStoreMetadata& aObjectStoreMetadata, | ||||
| 2682 | IndexOrObjectStoreId aIndexId) const; | ||||
| 2683 | |||||
| 2684 | PBackgroundParent* GetBackgroundParent() const { | ||||
| 2685 | AssertIsOnBackgroundThread(); | ||||
| 2686 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2686) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 2686); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2687 | |||||
| 2688 | return GetDatabase().GetBackgroundParent(); | ||||
| 2689 | } | ||||
| 2690 | |||||
| 2691 | void NoteModifiedAutoIncrementObjectStore( | ||||
| 2692 | const SafeRefPtr<FullObjectStoreMetadata>& aMetadata); | ||||
| 2693 | |||||
| 2694 | void ForgetModifiedAutoIncrementObjectStore( | ||||
| 2695 | FullObjectStoreMetadata& aMetadata); | ||||
| 2696 | |||||
| 2697 | void NoteActiveRequest(); | ||||
| 2698 | |||||
| 2699 | void NoteFinishedRequest(int64_t aRequestId, nsresult aResultCode); | ||||
| 2700 | |||||
| 2701 | void Invalidate(); | ||||
| 2702 | |||||
| 2703 | virtual ~TransactionBase(); | ||||
| 2704 | |||||
| 2705 | protected: | ||||
| 2706 | TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode, | ||||
| 2707 | Durability aDurability); | ||||
| 2708 | |||||
| 2709 | void NoteActorDestroyed() { | ||||
| 2710 | AssertIsOnBackgroundThread(); | ||||
| 2711 | |||||
| 2712 | mActorDestroyed.Flip(); | ||||
| 2713 | } | ||||
| 2714 | |||||
| 2715 | #ifdef DEBUG1 | ||||
| 2716 | // Only called by VersionChangeTransaction. | ||||
| 2717 | void FakeActorDestroyed() { mActorDestroyed.EnsureFlipped(); } | ||||
| 2718 | #endif | ||||
| 2719 | |||||
| 2720 | mozilla::ipc::IPCResult RecvCommit(IProtocol* aActor, | ||||
| 2721 | const Maybe<int64_t> aLastRequest); | ||||
| 2722 | |||||
| 2723 | mozilla::ipc::IPCResult RecvAbort(IProtocol* aActor, nsresult aResultCode); | ||||
| 2724 | |||||
| 2725 | void MaybeCommitOrAbort() { | ||||
| 2726 | AssertIsOnBackgroundThread(); | ||||
| 2727 | |||||
| 2728 | // If we've already committed or aborted then there's nothing else to do. | ||||
| 2729 | if (mCommittedOrAborted) { | ||||
| 2730 | return; | ||||
| 2731 | } | ||||
| 2732 | |||||
| 2733 | // If there are active requests then we have to wait for those requests to | ||||
| 2734 | // complete (see NoteFinishedRequest). | ||||
| 2735 | if (mActiveRequestCount) { | ||||
| 2736 | return; | ||||
| 2737 | } | ||||
| 2738 | |||||
| 2739 | // If we haven't yet received a commit or abort message then there could be | ||||
| 2740 | // additional requests coming so we should wait unless we're being forced to | ||||
| 2741 | // abort. | ||||
| 2742 | if (!mCommitOrAbortReceived && !mForceAborted) { | ||||
| 2743 | return; | ||||
| 2744 | } | ||||
| 2745 | |||||
| 2746 | CommitOrAbort(); | ||||
| 2747 | } | ||||
| 2748 | |||||
| 2749 | PBackgroundIDBRequestParent* AllocRequest(const int64_t aRequestId, | ||||
| 2750 | RequestParams&& aParams, | ||||
| 2751 | bool aTrustParams); | ||||
| 2752 | |||||
| 2753 | bool StartRequest(PBackgroundIDBRequestParent* aActor); | ||||
| 2754 | |||||
| 2755 | bool DeallocRequest(PBackgroundIDBRequestParent* aActor); | ||||
| 2756 | |||||
| 2757 | already_AddRefed<PBackgroundIDBCursorParent> AllocCursor( | ||||
| 2758 | const OpenCursorParams& aParams, bool aTrustParams); | ||||
| 2759 | |||||
| 2760 | bool StartCursor(PBackgroundIDBCursorParent* aActor, const int64_t aRequestId, | ||||
| 2761 | const OpenCursorParams& aParams); | ||||
| 2762 | |||||
| 2763 | virtual void UpdateMetadata(nsresult aResult) {} | ||||
| 2764 | |||||
| 2765 | virtual void SendCompleteNotification(nsresult aResult) = 0; | ||||
| 2766 | |||||
| 2767 | private: | ||||
| 2768 | bool VerifyRequestParams(const RequestParams& aParams) const; | ||||
| 2769 | |||||
| 2770 | bool VerifyRequestParams(const SerializedKeyRange& aParams) const; | ||||
| 2771 | |||||
| 2772 | bool VerifyRequestParams(const ObjectStoreAddPutParams& aParams) const; | ||||
| 2773 | |||||
| 2774 | bool VerifyRequestParams(const Maybe<SerializedKeyRange>& aParams) const; | ||||
| 2775 | |||||
| 2776 | void CommitOrAbort(); | ||||
| 2777 | }; | ||||
| 2778 | |||||
| 2779 | class TransactionBase::CommitOp final : public DatabaseOperationBase, | ||||
| 2780 | public ConnectionPool::FinishCallback { | ||||
| 2781 | friend class TransactionBase; | ||||
| 2782 | |||||
| 2783 | SafeRefPtr<TransactionBase> mTransaction; | ||||
| 2784 | nsresult mResultCode; ///< TODO: There is also a mResultCode in | ||||
| 2785 | ///< DatabaseOperationBase. Is there a reason not to | ||||
| 2786 | ///< use that? At least a more specific name should be | ||||
| 2787 | ///< given to this one. | ||||
| 2788 | |||||
| 2789 | private: | ||||
| 2790 | CommitOp(SafeRefPtr<TransactionBase> aTransaction, nsresult aResultCode); | ||||
| 2791 | |||||
| 2792 | ~CommitOp() override = default; | ||||
| 2793 | |||||
| 2794 | // Writes new autoIncrement counts to database. | ||||
| 2795 | nsresult WriteAutoIncrementCounts(); | ||||
| 2796 | |||||
| 2797 | // Updates counts after a database activity has finished. | ||||
| 2798 | void CommitOrRollbackAutoIncrementCounts(); | ||||
| 2799 | |||||
| 2800 | void AssertForeignKeyConsistency(DatabaseConnection* aConnection) | ||||
| 2801 | #ifdef DEBUG1 | ||||
| 2802 | ; | ||||
| 2803 | #else | ||||
| 2804 | { | ||||
| 2805 | } | ||||
| 2806 | #endif | ||||
| 2807 | |||||
| 2808 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 2809 | |||||
| 2810 | void TransactionFinishedBeforeUnblock() override; | ||||
| 2811 | |||||
| 2812 | void TransactionFinishedAfterUnblock() override; | ||||
| 2813 | |||||
| 2814 | public: | ||||
| 2815 | // We need to declare all of nsISupports, because FinishCallback has | ||||
| 2816 | // a pure-virtual nsISupports declaration. | ||||
| 2817 | NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID , void** aInstancePtr) override; virtual MozExternalRefCountType AddRef(void) override; virtual MozExternalRefCountType Release (void) override; | ||||
| 2818 | }; | ||||
| 2819 | |||||
| 2820 | class NormalTransaction final : public TransactionBase, | ||||
| 2821 | public PBackgroundIDBTransactionParent { | ||||
| 2822 | nsTArray<SafeRefPtr<FullObjectStoreMetadata>> mObjectStores; | ||||
| 2823 | |||||
| 2824 | // Reference counted. | ||||
| 2825 | ~NormalTransaction() override = default; | ||||
| 2826 | |||||
| 2827 | bool IsSameProcessActor(); | ||||
| 2828 | |||||
| 2829 | // Only called by TransactionBase. | ||||
| 2830 | void SendCompleteNotification(nsresult aResult) override; | ||||
| 2831 | |||||
| 2832 | // IPDL methods are only called by IPDL. | ||||
| 2833 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 2834 | |||||
| 2835 | mozilla::ipc::IPCResult RecvDeleteMe() override; | ||||
| 2836 | |||||
| 2837 | mozilla::ipc::IPCResult RecvCommit( | ||||
| 2838 | const Maybe<int64_t>& aLastRequest) override; | ||||
| 2839 | |||||
| 2840 | mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override; | ||||
| 2841 | |||||
| 2842 | PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent( | ||||
| 2843 | const int64_t& aRequestId, const RequestParams& aParams) override; | ||||
| 2844 | |||||
| 2845 | mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor( | ||||
| 2846 | PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId, | ||||
| 2847 | const RequestParams& aParams) override; | ||||
| 2848 | |||||
| 2849 | bool DeallocPBackgroundIDBRequestParent( | ||||
| 2850 | PBackgroundIDBRequestParent* aActor) override; | ||||
| 2851 | |||||
| 2852 | already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent( | ||||
| 2853 | const int64_t& aRequestId, const OpenCursorParams& aParams) override; | ||||
| 2854 | |||||
| 2855 | mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor( | ||||
| 2856 | PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId, | ||||
| 2857 | const OpenCursorParams& aParams) override; | ||||
| 2858 | |||||
| 2859 | public: | ||||
| 2860 | // This constructor is only called by Database. | ||||
| 2861 | NormalTransaction( | ||||
| 2862 | SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode, | ||||
| 2863 | TransactionBase::Durability aDurability, | ||||
| 2864 | nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores); | ||||
| 2865 | |||||
| 2866 | 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; } | ||||
| 2867 | }; | ||||
| 2868 | |||||
| 2869 | class VersionChangeTransaction final | ||||
| 2870 | : public TransactionBase, | ||||
| 2871 | public PBackgroundIDBVersionChangeTransactionParent { | ||||
| 2872 | friend class OpenDatabaseOp; | ||||
| 2873 | |||||
| 2874 | RefPtr<OpenDatabaseOp> mOpenDatabaseOp; | ||||
| 2875 | SafeRefPtr<FullDatabaseMetadata> mOldMetadata; | ||||
| 2876 | |||||
| 2877 | FlippedOnce<false> mActorWasAlive; | ||||
| 2878 | |||||
| 2879 | public: | ||||
| 2880 | // Only called by OpenDatabaseOp. | ||||
| 2881 | explicit VersionChangeTransaction(OpenDatabaseOp* aOpenDatabaseOp); | ||||
| 2882 | |||||
| 2883 | 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; } | ||||
| 2884 | 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; } | ||||
| 2885 | |||||
| 2886 | private: | ||||
| 2887 | // Reference counted. | ||||
| 2888 | ~VersionChangeTransaction() override; | ||||
| 2889 | |||||
| 2890 | bool IsSameProcessActor(); | ||||
| 2891 | |||||
| 2892 | // Only called by OpenDatabaseOp. | ||||
| 2893 | bool CopyDatabaseMetadata(); | ||||
| 2894 | |||||
| 2895 | void SetActorAlive(); | ||||
| 2896 | |||||
| 2897 | // Only called by TransactionBase. | ||||
| 2898 | void UpdateMetadata(nsresult aResult) override; | ||||
| 2899 | |||||
| 2900 | // Only called by TransactionBase. | ||||
| 2901 | void SendCompleteNotification(nsresult aResult) override; | ||||
| 2902 | |||||
| 2903 | // IPDL methods are only called by IPDL. | ||||
| 2904 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 2905 | |||||
| 2906 | mozilla::ipc::IPCResult RecvDeleteMe() override; | ||||
| 2907 | |||||
| 2908 | mozilla::ipc::IPCResult RecvCommit( | ||||
| 2909 | const Maybe<int64_t>& aLastRequest) override; | ||||
| 2910 | |||||
| 2911 | mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override; | ||||
| 2912 | |||||
| 2913 | mozilla::ipc::IPCResult RecvCreateObjectStore( | ||||
| 2914 | const ObjectStoreMetadata& aMetadata) override; | ||||
| 2915 | |||||
| 2916 | mozilla::ipc::IPCResult RecvDeleteObjectStore( | ||||
| 2917 | const IndexOrObjectStoreId& aObjectStoreId) override; | ||||
| 2918 | |||||
| 2919 | mozilla::ipc::IPCResult RecvRenameObjectStore( | ||||
| 2920 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 2921 | const nsAString& aName) override; | ||||
| 2922 | |||||
| 2923 | mozilla::ipc::IPCResult RecvCreateIndex( | ||||
| 2924 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 2925 | const IndexMetadata& aMetadata) override; | ||||
| 2926 | |||||
| 2927 | mozilla::ipc::IPCResult RecvDeleteIndex( | ||||
| 2928 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 2929 | const IndexOrObjectStoreId& aIndexId) override; | ||||
| 2930 | |||||
| 2931 | mozilla::ipc::IPCResult RecvRenameIndex( | ||||
| 2932 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 2933 | const IndexOrObjectStoreId& aIndexId, const nsAString& aName) override; | ||||
| 2934 | |||||
| 2935 | PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent( | ||||
| 2936 | const int64_t& aRequestId, const RequestParams& aParams) override; | ||||
| 2937 | |||||
| 2938 | mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor( | ||||
| 2939 | PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId, | ||||
| 2940 | const RequestParams& aParams) override; | ||||
| 2941 | |||||
| 2942 | bool DeallocPBackgroundIDBRequestParent( | ||||
| 2943 | PBackgroundIDBRequestParent* aActor) override; | ||||
| 2944 | |||||
| 2945 | already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent( | ||||
| 2946 | const int64_t& aRequestId, const OpenCursorParams& aParams) override; | ||||
| 2947 | |||||
| 2948 | mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor( | ||||
| 2949 | PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId, | ||||
| 2950 | const OpenCursorParams& aParams) override; | ||||
| 2951 | }; | ||||
| 2952 | |||||
| 2953 | class FactoryOp : public DatabaseOperationBase, | ||||
| 2954 | public LinkedListElement<FactoryOp> { | ||||
| 2955 | public: | ||||
| 2956 | struct MaybeBlockedDatabaseInfo final { | ||||
| 2957 | SafeRefPtr<Database> mDatabase; | ||||
| 2958 | bool mBlocked; | ||||
| 2959 | |||||
| 2960 | MaybeBlockedDatabaseInfo(MaybeBlockedDatabaseInfo&&) = default; | ||||
| 2961 | MaybeBlockedDatabaseInfo& operator=(MaybeBlockedDatabaseInfo&&) = default; | ||||
| 2962 | |||||
| 2963 | MOZ_IMPLICIT MaybeBlockedDatabaseInfo(SafeRefPtr<Database> aDatabase) | ||||
| 2964 | : mDatabase(std::move(aDatabase)), mBlocked(false) { | ||||
| 2965 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2965); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2965); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2966 | |||||
| 2967 | MOZ_COUNT_CTOR(FactoryOp::MaybeBlockedDatabaseInfo)do { static_assert(std::is_class_v<FactoryOp::MaybeBlockedDatabaseInfo >, "Token '" "FactoryOp::MaybeBlockedDatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, FactoryOp ::MaybeBlockedDatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "FactoryOp::MaybeBlockedDatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 2968 | } | ||||
| 2969 | |||||
| 2970 | ~MaybeBlockedDatabaseInfo() { | ||||
| 2971 | MOZ_COUNT_DTOR(FactoryOp::MaybeBlockedDatabaseInfo)do { static_assert(std::is_class_v<FactoryOp::MaybeBlockedDatabaseInfo >, "Token '" "FactoryOp::MaybeBlockedDatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, FactoryOp ::MaybeBlockedDatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "FactoryOp::MaybeBlockedDatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 2972 | } | ||||
| 2973 | |||||
| 2974 | bool operator==(const Database* aOther) const { | ||||
| 2975 | return mDatabase == aOther; | ||||
| 2976 | } | ||||
| 2977 | |||||
| 2978 | Database* operator->() const& MOZ_NO_ADDREF_RELEASE_ON_RETURN { | ||||
| 2979 | return mDatabase.unsafeGetRawPtr(); | ||||
| 2980 | } | ||||
| 2981 | }; | ||||
| 2982 | |||||
| 2983 | protected: | ||||
| 2984 | enum class State { | ||||
| 2985 | // Just created on the PBackground thread, dispatched to the current thread. | ||||
| 2986 | // Next step is either SendingResults if opening initialization failed, or | ||||
| 2987 | // DirectoryOpenPending if the opening initialization succeeded. | ||||
| 2988 | Initial, | ||||
| 2989 | |||||
| 2990 | // Waiting for directory open allowed on the PBackground thread. The next | ||||
| 2991 | // step is either SendingResults if directory lock failed to acquire, or | ||||
| 2992 | // DirectoryWorkOpen if the factory operation is not tied up to a specific | ||||
| 2993 | // database, or DatabaseOpenPending otherwise. | ||||
| 2994 | DirectoryOpenPending, | ||||
| 2995 | |||||
| 2996 | // Waiting to do/doing directory work on the QuotaManager IO thread. Its | ||||
| 2997 | // next step is DirectoryWorkDone if directory work was successful or | ||||
| 2998 | // SendingResults if directory work failed. | ||||
| 2999 | DirectoryWorkOpen, | ||||
| 3000 | |||||
| 3001 | // Checking if database work can be started. If the database is not blocked | ||||
| 3002 | // by other factory operations then the next step is DatabaseWorkOpen. | ||||
| 3003 | // Otherwise the next step is DatabaseOpenPending. | ||||
| 3004 | DirectoryWorkDone, | ||||
| 3005 | |||||
| 3006 | // Waiting for database open allowed on the PBackground thread. The next | ||||
| 3007 | // step is DatabaseWorkOpen. | ||||
| 3008 | DatabaseOpenPending, | ||||
| 3009 | |||||
| 3010 | // Waiting to do/doing work on the QuotaManager IO thread. Its next step is | ||||
| 3011 | // either BeginVersionChange if the requested version doesn't match the | ||||
| 3012 | // existing database version or SendingResults if the versions match. | ||||
| 3013 | DatabaseWorkOpen, | ||||
| 3014 | |||||
| 3015 | // Starting a version change transaction or deleting a database on the | ||||
| 3016 | // PBackground thread. We need to notify other databases that a version | ||||
| 3017 | // change is about to happen, and maybe tell the request that a version | ||||
| 3018 | // change has been blocked. If databases are notified then the next step is | ||||
| 3019 | // WaitingForOtherDatabasesToClose. Otherwise the next step is | ||||
| 3020 | // WaitingForTransactionsToComplete. | ||||
| 3021 | BeginVersionChange, | ||||
| 3022 | |||||
| 3023 | // Waiting for other databases to close on the PBackground thread. This | ||||
| 3024 | // state may persist until all databases are closed. The next state is | ||||
| 3025 | // WaitingForTransactionsToComplete. | ||||
| 3026 | WaitingForOtherDatabasesToClose, | ||||
| 3027 | |||||
| 3028 | // Waiting for all transactions that could interfere with this operation to | ||||
| 3029 | // complete on the PBackground thread. Next state is | ||||
| 3030 | // DatabaseWorkVersionChange. | ||||
| 3031 | WaitingForTransactionsToComplete, | ||||
| 3032 | |||||
| 3033 | // Waiting to do/doing work on the "work thread". This involves waiting for | ||||
| 3034 | // the VersionChangeOp (OpenDatabaseOp and DeleteDatabaseOp each have a | ||||
| 3035 | // different implementation) to do its work. If the VersionChangeOp is | ||||
| 3036 | // OpenDatabaseOp and it succeeded then the next state is | ||||
| 3037 | // DatabaseWorkVersionUpdate. Otherwise the next step is SendingResults. | ||||
| 3038 | DatabaseWorkVersionChange, | ||||
| 3039 | |||||
| 3040 | // Waiting to do/doing finalization work on the QuotaManager IO thread. | ||||
| 3041 | // Eventually the state will transition to SendingResults. | ||||
| 3042 | DatabaseWorkVersionUpdate, | ||||
| 3043 | |||||
| 3044 | // Waiting to send/sending results on the PBackground thread. Next step is | ||||
| 3045 | // Completed. | ||||
| 3046 | SendingResults, | ||||
| 3047 | |||||
| 3048 | // All done. | ||||
| 3049 | Completed | ||||
| 3050 | }; | ||||
| 3051 | |||||
| 3052 | // Must be released on the background thread! | ||||
| 3053 | SafeRefPtr<Factory> mFactory; | ||||
| 3054 | |||||
| 3055 | Maybe<ContentParentId> mContentParentId; | ||||
| 3056 | |||||
| 3057 | // Must be released on the main thread! | ||||
| 3058 | ClientDirectoryLockHandle mDirectoryLockHandle; | ||||
| 3059 | |||||
| 3060 | nsTArray<NotNull<RefPtr<FactoryOp>>> mBlocking; | ||||
| 3061 | nsTHashSet<RefPtr<FactoryOp>> mBlockedOn; | ||||
| 3062 | |||||
| 3063 | nsTArray<MaybeBlockedDatabaseInfo> mMaybeBlockedDatabases; | ||||
| 3064 | |||||
| 3065 | const PrincipalInfo mPrincipalInfo; | ||||
| 3066 | OriginMetadata mOriginMetadata; | ||||
| 3067 | Maybe<nsString> mDatabaseName; | ||||
| 3068 | Maybe<nsCString> mDatabaseId; | ||||
| 3069 | Maybe<nsString> mDatabaseFilePath; | ||||
| 3070 | int64_t mDirectoryLockId; | ||||
| 3071 | const PersistenceType mPersistenceType; | ||||
| 3072 | State mState; | ||||
| 3073 | bool mWaitingForPermissionRetry; | ||||
| 3074 | bool mEnforcingQuota; | ||||
| 3075 | const bool mDeleting; | ||||
| 3076 | FlippedOnce<false> mInPrivateBrowsing; | ||||
| 3077 | |||||
| 3078 | public: | ||||
| 3079 | const nsACString& Origin() const { | ||||
| 3080 | AssertIsOnOwningThread(); | ||||
| 3081 | |||||
| 3082 | return mOriginMetadata.mOrigin; | ||||
| 3083 | } | ||||
| 3084 | |||||
| 3085 | const Maybe<nsString>& DatabaseNameRef() const { | ||||
| 3086 | AssertIsOnOwningThread(); | ||||
| 3087 | |||||
| 3088 | return mDatabaseName; | ||||
| 3089 | } | ||||
| 3090 | |||||
| 3091 | bool DatabaseFilePathIsKnown() const { | ||||
| 3092 | AssertIsOnOwningThread(); | ||||
| 3093 | |||||
| 3094 | return mDatabaseFilePath.isSome(); | ||||
| 3095 | } | ||||
| 3096 | |||||
| 3097 | const nsAString& DatabaseFilePath() const { | ||||
| 3098 | AssertIsOnOwningThread(); | ||||
| 3099 | MOZ_ASSERT(mDatabaseFilePath)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseFilePath)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabaseFilePath))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseFilePath" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3099) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath" ")"); do { MOZ_CrashSequence(__null, 3099); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3100 | |||||
| 3101 | return mDatabaseFilePath.ref(); | ||||
| 3102 | } | ||||
| 3103 | |||||
| 3104 | nsresult DispatchThisAfterProcessingCurrentEvent( | ||||
| 3105 | nsCOMPtr<nsIEventTarget> aEventTarget); | ||||
| 3106 | |||||
| 3107 | void NoteDatabaseBlocked(Database* aDatabase); | ||||
| 3108 | |||||
| 3109 | void NoteDatabaseClosed(Database* aDatabase); | ||||
| 3110 | |||||
| 3111 | #ifdef DEBUG1 | ||||
| 3112 | bool HasBlockedDatabases() const { return !mMaybeBlockedDatabases.IsEmpty(); } | ||||
| 3113 | #endif | ||||
| 3114 | |||||
| 3115 | void StringifyState(nsACString& aResult) const; | ||||
| 3116 | |||||
| 3117 | void Stringify(nsACString& aResult) const; | ||||
| 3118 | |||||
| 3119 | protected: | ||||
| 3120 | FactoryOp(SafeRefPtr<Factory> aFactory, | ||||
| 3121 | const Maybe<ContentParentId>& aContentParentId, | ||||
| 3122 | const PersistenceType aPersistenceType, | ||||
| 3123 | const PrincipalInfo& aPrincipalInfo, | ||||
| 3124 | const Maybe<nsString>& aDatabaseName, bool aDeleting); | ||||
| 3125 | |||||
| 3126 | ~FactoryOp() override { | ||||
| 3127 | // Normally this would be out-of-line since it is a virtual function but | ||||
| 3128 | // MSVC 2010 fails to link for some reason if it is not inlined here... | ||||
| 3129 | MOZ_ASSERT_IF(OperationMayProceed(),do { if (OperationMayProceed()) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(mState == State:: Initial || mState == State::Completed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial || mState == State::Completed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mState == State::Initial || mState == State::Completed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3130); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed" ")"); do { MOZ_CrashSequence(__null, 3130); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3130 | mState == State::Initial || mState == State::Completed)do { if (OperationMayProceed()) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(mState == State:: Initial || mState == State::Completed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial || mState == State::Completed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mState == State::Initial || mState == State::Completed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3130); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed" ")"); do { MOZ_CrashSequence(__null, 3130); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 3131 | MOZ_DIAGNOSTIC_ASSERT(!isInList())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!isInList())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!isInList()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!isInList()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3131); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!isInList()" ")"); do { MOZ_CrashSequence(__null, 3131); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3132 | } | ||||
| 3133 | |||||
| 3134 | nsresult Open(); | ||||
| 3135 | |||||
| 3136 | nsresult DirectoryOpen(); | ||||
| 3137 | |||||
| 3138 | nsresult DirectoryWorkDone(); | ||||
| 3139 | |||||
| 3140 | nsresult SendToIOThread(); | ||||
| 3141 | |||||
| 3142 | void WaitForTransactions(); | ||||
| 3143 | |||||
| 3144 | void CleanupMetadata(); | ||||
| 3145 | |||||
| 3146 | void FinishSendResults(); | ||||
| 3147 | |||||
| 3148 | nsresult SendVersionChangeMessages(DatabaseActorInfo* aDatabaseActorInfo, | ||||
| 3149 | Maybe<Database&> aOpeningDatabase, | ||||
| 3150 | uint64_t aOldVersion, | ||||
| 3151 | const Maybe<uint64_t>& aNewVersion); | ||||
| 3152 | |||||
| 3153 | // Methods that subclasses must implement. | ||||
| 3154 | virtual nsresult DoDirectoryWork() = 0; | ||||
| 3155 | |||||
| 3156 | virtual nsresult DatabaseOpen() = 0; | ||||
| 3157 | |||||
| 3158 | virtual nsresult DoDatabaseWork() = 0; | ||||
| 3159 | |||||
| 3160 | virtual nsresult BeginVersionChange() = 0; | ||||
| 3161 | |||||
| 3162 | virtual bool AreActorsAlive() = 0; | ||||
| 3163 | |||||
| 3164 | virtual nsresult DispatchToWorkThread() = 0; | ||||
| 3165 | |||||
| 3166 | virtual nsresult DoVersionUpdate() = 0; | ||||
| 3167 | |||||
| 3168 | // Should only be called by Run(). | ||||
| 3169 | virtual void SendResults() = 0; | ||||
| 3170 | |||||
| 3171 | // Common nsIRunnable implementation that subclasses may not override. | ||||
| 3172 | NS_IMETHODvirtual nsresult | ||||
| 3173 | Run() final; | ||||
| 3174 | |||||
| 3175 | void DirectoryLockAcquired(ClientDirectoryLockHandle aLockHandle); | ||||
| 3176 | |||||
| 3177 | void DirectoryLockFailed(); | ||||
| 3178 | |||||
| 3179 | virtual void SendBlockedNotification() = 0; | ||||
| 3180 | |||||
| 3181 | private: | ||||
| 3182 | // Test whether this FactoryOp needs to wait for the given op. | ||||
| 3183 | bool MustWaitFor(const FactoryOp& aExistingOp); | ||||
| 3184 | |||||
| 3185 | void AddBlockingOp(FactoryOp& aOp) { | ||||
| 3186 | AssertIsOnOwningThread(); | ||||
| 3187 | |||||
| 3188 | mBlocking.AppendElement(WrapNotNull(&aOp)); | ||||
| 3189 | } | ||||
| 3190 | |||||
| 3191 | void AddBlockedOnOp(FactoryOp& aOp) { | ||||
| 3192 | AssertIsOnOwningThread(); | ||||
| 3193 | |||||
| 3194 | mBlockedOn.Insert(&aOp); | ||||
| 3195 | } | ||||
| 3196 | |||||
| 3197 | void MaybeUnblock(FactoryOp& aOp) { | ||||
| 3198 | AssertIsOnOwningThread(); | ||||
| 3199 | |||||
| 3200 | mBlockedOn.Remove(&aOp); | ||||
| 3201 | if (mBlockedOn.IsEmpty()) { | ||||
| 3202 | MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(this))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_DispatchToCurrentThread(this))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(this))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3202) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(this))" ")"); do { MOZ_CrashSequence(__null, 3202); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 3203 | } | ||||
| 3204 | } | ||||
| 3205 | }; | ||||
| 3206 | |||||
| 3207 | class FactoryRequestOp : public FactoryOp, | ||||
| 3208 | public PBackgroundIDBFactoryRequestParent { | ||||
| 3209 | protected: | ||||
| 3210 | const CommonFactoryRequestParams mCommonParams; | ||||
| 3211 | |||||
| 3212 | FactoryRequestOp(SafeRefPtr<Factory> aFactory, | ||||
| 3213 | const Maybe<ContentParentId>& aContentParentId, | ||||
| 3214 | const CommonFactoryRequestParams& aCommonParams, | ||||
| 3215 | bool aDeleting) | ||||
| 3216 | : FactoryOp(std::move(aFactory), aContentParentId, | ||||
| 3217 | aCommonParams.metadata().persistenceType(), | ||||
| 3218 | aCommonParams.principalInfo(), | ||||
| 3219 | Some(aCommonParams.metadata().name()), aDeleting), | ||||
| 3220 | mCommonParams(aCommonParams) {} | ||||
| 3221 | |||||
| 3222 | nsresult DoDirectoryWork() override; | ||||
| 3223 | |||||
| 3224 | // IPDL methods. | ||||
| 3225 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 3226 | }; | ||||
| 3227 | |||||
| 3228 | class OpenDatabaseOp final : public FactoryRequestOp { | ||||
| 3229 | friend class Database; | ||||
| 3230 | friend class VersionChangeTransaction; | ||||
| 3231 | |||||
| 3232 | class VersionChangeOp; | ||||
| 3233 | |||||
| 3234 | SafeRefPtr<FullDatabaseMetadata> mMetadata; | ||||
| 3235 | |||||
| 3236 | uint64_t mRequestedVersion; | ||||
| 3237 | SafeRefPtr<DatabaseFileManager> mFileManager; | ||||
| 3238 | |||||
| 3239 | SafeRefPtr<Database> mDatabase; | ||||
| 3240 | SafeRefPtr<VersionChangeTransaction> mVersionChangeTransaction; | ||||
| 3241 | |||||
| 3242 | // This is only set while a VersionChangeOp is live. It holds a strong | ||||
| 3243 | // reference to its OpenDatabaseOp object so this is a weak pointer to avoid | ||||
| 3244 | // cycles. | ||||
| 3245 | VersionChangeOp* mVersionChangeOp; | ||||
| 3246 | |||||
| 3247 | MoveOnlyFunction<void()> mCompleteCallback; | ||||
| 3248 | |||||
| 3249 | uint32_t mTelemetryId; | ||||
| 3250 | |||||
| 3251 | public: | ||||
| 3252 | OpenDatabaseOp(SafeRefPtr<Factory> aFactory, | ||||
| 3253 | const Maybe<ContentParentId>& aContentParentId, | ||||
| 3254 | const CommonFactoryRequestParams& aParams); | ||||
| 3255 | |||||
| 3256 | private: | ||||
| 3257 | ~OpenDatabaseOp() override { MOZ_ASSERT(!mVersionChangeOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mVersionChangeOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mVersionChangeOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mVersionChangeOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3257) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeOp" ")"); do { MOZ_CrashSequence(__null, 3257); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 3258 | |||||
| 3259 | nsresult LoadDatabaseInformation(mozIStorageConnection& aConnection); | ||||
| 3260 | |||||
| 3261 | nsresult SendUpgradeNeeded(); | ||||
| 3262 | |||||
| 3263 | void EnsureDatabaseActor(); | ||||
| 3264 | |||||
| 3265 | nsresult EnsureDatabaseActorIsAlive(); | ||||
| 3266 | |||||
| 3267 | mozilla::Result<DatabaseSpec, nsresult> MetadataToSpec() const; | ||||
| 3268 | |||||
| 3269 | void AssertMetadataConsistency(const FullDatabaseMetadata& aMetadata) | ||||
| 3270 | #ifdef DEBUG1 | ||||
| 3271 | ; | ||||
| 3272 | #else | ||||
| 3273 | { | ||||
| 3274 | } | ||||
| 3275 | #endif | ||||
| 3276 | |||||
| 3277 | void ConnectionClosedCallback(); | ||||
| 3278 | |||||
| 3279 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 3280 | |||||
| 3281 | nsresult DatabaseOpen() override; | ||||
| 3282 | |||||
| 3283 | nsresult DoDatabaseWork() override; | ||||
| 3284 | |||||
| 3285 | nsresult BeginVersionChange() override; | ||||
| 3286 | |||||
| 3287 | bool AreActorsAlive() override; | ||||
| 3288 | |||||
| 3289 | void SendBlockedNotification() override; | ||||
| 3290 | |||||
| 3291 | nsresult DispatchToWorkThread() override; | ||||
| 3292 | |||||
| 3293 | nsresult DoVersionUpdate() override; | ||||
| 3294 | |||||
| 3295 | void SendResults() override; | ||||
| 3296 | |||||
| 3297 | static nsresult UpdateLocaleAwareIndex(mozIStorageConnection& aConnection, | ||||
| 3298 | const IndexMetadata& aIndexMetadata, | ||||
| 3299 | const nsCString& aLocale); | ||||
| 3300 | }; | ||||
| 3301 | |||||
| 3302 | class OpenDatabaseOp::VersionChangeOp final | ||||
| 3303 | : public TransactionDatabaseOperationBase { | ||||
| 3304 | friend class OpenDatabaseOp; | ||||
| 3305 | |||||
| 3306 | RefPtr<OpenDatabaseOp> mOpenDatabaseOp; | ||||
| 3307 | const uint64_t mRequestedVersion; | ||||
| 3308 | uint64_t mPreviousVersion; | ||||
| 3309 | |||||
| 3310 | private: | ||||
| 3311 | explicit VersionChangeOp(OpenDatabaseOp* aOpenDatabaseOp) | ||||
| 3312 | : TransactionDatabaseOperationBase( | ||||
| 3313 | aOpenDatabaseOp->mVersionChangeTransaction.clonePtr(), | ||||
| 3314 | /* aRequestId */ 0, aOpenDatabaseOp->LoggingSerialNumber()), | ||||
| 3315 | mOpenDatabaseOp(aOpenDatabaseOp), | ||||
| 3316 | mRequestedVersion(aOpenDatabaseOp->mRequestedVersion), | ||||
| 3317 | mPreviousVersion( | ||||
| 3318 | aOpenDatabaseOp->mMetadata->mCommonMetadata.version()) { | ||||
| 3319 | MOZ_ASSERT(aOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aOpenDatabaseOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3319) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 3319); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3320 | MOZ_ASSERT(mRequestedVersion)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRequestedVersion)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRequestedVersion))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRequestedVersion" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3320) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRequestedVersion" ")"); do { MOZ_CrashSequence(__null, 3320); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3321 | } | ||||
| 3322 | |||||
| 3323 | ~VersionChangeOp() override { MOZ_ASSERT(!mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mOpenDatabaseOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3323) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 3323); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 3324 | |||||
| 3325 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3326 | |||||
| 3327 | TransactionOpResult SendSuccessResult() override; | ||||
| 3328 | |||||
| 3329 | bool SendFailureResult(const TransactionOpResult& aResult) override; | ||||
| 3330 | |||||
| 3331 | void Cleanup() override; | ||||
| 3332 | }; | ||||
| 3333 | |||||
| 3334 | class DeleteDatabaseOp final : public FactoryRequestOp { | ||||
| 3335 | class VersionChangeOp; | ||||
| 3336 | |||||
| 3337 | nsString mDatabaseDirectoryPath; | ||||
| 3338 | nsString mDatabaseFilenameBase; | ||||
| 3339 | uint64_t mPreviousVersion; | ||||
| 3340 | |||||
| 3341 | public: | ||||
| 3342 | DeleteDatabaseOp(SafeRefPtr<Factory> aFactory, | ||||
| 3343 | const Maybe<ContentParentId>& aContentParentId, | ||||
| 3344 | const CommonFactoryRequestParams& aParams) | ||||
| 3345 | : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams, | ||||
| 3346 | /* aDeleting */ true), | ||||
| 3347 | mPreviousVersion(0) {} | ||||
| 3348 | |||||
| 3349 | private: | ||||
| 3350 | ~DeleteDatabaseOp() override = default; | ||||
| 3351 | |||||
| 3352 | void LoadPreviousVersion(nsIFile& aDatabaseFile); | ||||
| 3353 | |||||
| 3354 | nsresult DatabaseOpen() override; | ||||
| 3355 | |||||
| 3356 | nsresult DoDatabaseWork() override; | ||||
| 3357 | |||||
| 3358 | nsresult BeginVersionChange() override; | ||||
| 3359 | |||||
| 3360 | bool AreActorsAlive() override; | ||||
| 3361 | |||||
| 3362 | void SendBlockedNotification() override; | ||||
| 3363 | |||||
| 3364 | nsresult DispatchToWorkThread() override; | ||||
| 3365 | |||||
| 3366 | nsresult DoVersionUpdate() override; | ||||
| 3367 | |||||
| 3368 | void SendResults() override; | ||||
| 3369 | }; | ||||
| 3370 | |||||
| 3371 | class DeleteDatabaseOp::VersionChangeOp final : public DatabaseOperationBase { | ||||
| 3372 | friend class DeleteDatabaseOp; | ||||
| 3373 | |||||
| 3374 | RefPtr<DeleteDatabaseOp> mDeleteDatabaseOp; | ||||
| 3375 | |||||
| 3376 | private: | ||||
| 3377 | explicit VersionChangeOp(DeleteDatabaseOp* aDeleteDatabaseOp) | ||||
| 3378 | : DatabaseOperationBase(aDeleteDatabaseOp->BackgroundChildLoggingId(), | ||||
| 3379 | aDeleteDatabaseOp->LoggingSerialNumber()), | ||||
| 3380 | mDeleteDatabaseOp(aDeleteDatabaseOp) { | ||||
| 3381 | MOZ_ASSERT(aDeleteDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDeleteDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDeleteDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDeleteDatabaseOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3381) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDeleteDatabaseOp" ")"); do { MOZ_CrashSequence(__null, 3381); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3382 | MOZ_ASSERT(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3382); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 3382); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3383 | } | ||||
| 3384 | |||||
| 3385 | ~VersionChangeOp() override = default; | ||||
| 3386 | |||||
| 3387 | nsresult RunOnIOThread(); | ||||
| 3388 | |||||
| 3389 | void RunOnOwningThread(); | ||||
| 3390 | |||||
| 3391 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 3392 | }; | ||||
| 3393 | |||||
| 3394 | class GetDatabasesOp final : public FactoryOp { | ||||
| 3395 | nsTHashMap<nsStringHashKey, DatabaseMetadata> mDatabaseMetadataTable; | ||||
| 3396 | nsTArray<DatabaseMetadata> mDatabaseMetadataArray; | ||||
| 3397 | Factory::GetDatabasesResolver mResolver; | ||||
| 3398 | |||||
| 3399 | public: | ||||
| 3400 | GetDatabasesOp(SafeRefPtr<Factory> aFactory, | ||||
| 3401 | const Maybe<ContentParentId>& aContentParentId, | ||||
| 3402 | const PersistenceType aPersistenceType, | ||||
| 3403 | const PrincipalInfo& aPrincipalInfo, | ||||
| 3404 | Factory::GetDatabasesResolver&& aResolver) | ||||
| 3405 | : FactoryOp(std::move(aFactory), aContentParentId, aPersistenceType, | ||||
| 3406 | aPrincipalInfo, Nothing(), /* aDeleting */ false), | ||||
| 3407 | mResolver(std::move(aResolver)) {} | ||||
| 3408 | |||||
| 3409 | private: | ||||
| 3410 | ~GetDatabasesOp() override = default; | ||||
| 3411 | |||||
| 3412 | nsresult DatabasesNotAvailable(); | ||||
| 3413 | |||||
| 3414 | nsresult DoDirectoryWork() override; | ||||
| 3415 | |||||
| 3416 | nsresult DatabaseOpen() override; | ||||
| 3417 | |||||
| 3418 | nsresult DoDatabaseWork() override; | ||||
| 3419 | |||||
| 3420 | nsresult BeginVersionChange() override; | ||||
| 3421 | |||||
| 3422 | bool AreActorsAlive() override; | ||||
| 3423 | |||||
| 3424 | void SendBlockedNotification() override; | ||||
| 3425 | |||||
| 3426 | nsresult DispatchToWorkThread() override; | ||||
| 3427 | |||||
| 3428 | nsresult DoVersionUpdate() override; | ||||
| 3429 | |||||
| 3430 | void SendResults() override; | ||||
| 3431 | }; | ||||
| 3432 | |||||
| 3433 | class VersionChangeTransactionOp : public TransactionDatabaseOperationBase { | ||||
| 3434 | public: | ||||
| 3435 | void Cleanup() override; | ||||
| 3436 | |||||
| 3437 | protected: | ||||
| 3438 | explicit VersionChangeTransactionOp( | ||||
| 3439 | SafeRefPtr<VersionChangeTransaction> aTransaction) | ||||
| 3440 | : TransactionDatabaseOperationBase(std::move(aTransaction), | ||||
| 3441 | /* aRequestId */ 0) {} | ||||
| 3442 | |||||
| 3443 | ~VersionChangeTransactionOp() override = default; | ||||
| 3444 | |||||
| 3445 | private: | ||||
| 3446 | TransactionOpResult SendSuccessResult() override; | ||||
| 3447 | |||||
| 3448 | bool SendFailureResult(const TransactionOpResult& aResult) override; | ||||
| 3449 | }; | ||||
| 3450 | |||||
| 3451 | class CreateObjectStoreOp final : public VersionChangeTransactionOp { | ||||
| 3452 | friend class VersionChangeTransaction; | ||||
| 3453 | |||||
| 3454 | const ObjectStoreMetadata mMetadata; | ||||
| 3455 | |||||
| 3456 | private: | ||||
| 3457 | // Only created by VersionChangeTransaction. | ||||
| 3458 | CreateObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 3459 | const ObjectStoreMetadata& aMetadata) | ||||
| 3460 | : VersionChangeTransactionOp(std::move(aTransaction)), | ||||
| 3461 | mMetadata(aMetadata) { | ||||
| 3462 | MOZ_ASSERT(aMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMetadata.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aMetadata.id()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3462) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()" ")" ); do { MOZ_CrashSequence(__null, 3462); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3463 | } | ||||
| 3464 | |||||
| 3465 | ~CreateObjectStoreOp() override = default; | ||||
| 3466 | |||||
| 3467 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3468 | }; | ||||
| 3469 | |||||
| 3470 | class DeleteObjectStoreOp final : public VersionChangeTransactionOp { | ||||
| 3471 | friend class VersionChangeTransaction; | ||||
| 3472 | |||||
| 3473 | const SafeRefPtr<FullObjectStoreMetadata> mMetadata; | ||||
| 3474 | const bool mIsLastObjectStore; | ||||
| 3475 | |||||
| 3476 | private: | ||||
| 3477 | // Only created by VersionChangeTransaction. | ||||
| 3478 | DeleteObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 3479 | SafeRefPtr<FullObjectStoreMetadata> aMetadata, | ||||
| 3480 | const bool aIsLastObjectStore) | ||||
| 3481 | : VersionChangeTransactionOp(std::move(aTransaction)), | ||||
| 3482 | mMetadata(std::move(aMetadata)), | ||||
| 3483 | mIsLastObjectStore(aIsLastObjectStore) { | ||||
| 3484 | MOZ_ASSERT(mMetadata->mCommonMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata->mCommonMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata->mCommonMetadata .id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMetadata->mCommonMetadata.id()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3484); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.id()" ")"); do { MOZ_CrashSequence(__null, 3484); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3485 | } | ||||
| 3486 | |||||
| 3487 | ~DeleteObjectStoreOp() override = default; | ||||
| 3488 | |||||
| 3489 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3490 | }; | ||||
| 3491 | |||||
| 3492 | class RenameObjectStoreOp final : public VersionChangeTransactionOp { | ||||
| 3493 | friend class VersionChangeTransaction; | ||||
| 3494 | |||||
| 3495 | const int64_t mId; | ||||
| 3496 | const nsString mNewName; | ||||
| 3497 | |||||
| 3498 | private: | ||||
| 3499 | // Only created by VersionChangeTransaction. | ||||
| 3500 | RenameObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 3501 | FullObjectStoreMetadata& aMetadata) | ||||
| 3502 | : VersionChangeTransactionOp(std::move(aTransaction)), | ||||
| 3503 | mId(aMetadata.mCommonMetadata.id()), | ||||
| 3504 | mNewName(aMetadata.mCommonMetadata.name()) { | ||||
| 3505 | MOZ_ASSERT(mId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mId)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(mId))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3505); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mId" ")"); do { MOZ_CrashSequence(__null, 3505); __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | ||||
| 3506 | } | ||||
| 3507 | |||||
| 3508 | ~RenameObjectStoreOp() override = default; | ||||
| 3509 | |||||
| 3510 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3511 | }; | ||||
| 3512 | |||||
| 3513 | class CreateIndexOp final : public VersionChangeTransactionOp { | ||||
| 3514 | friend class VersionChangeTransaction; | ||||
| 3515 | |||||
| 3516 | class UpdateIndexDataValuesFunction; | ||||
| 3517 | |||||
| 3518 | const IndexMetadata mMetadata; | ||||
| 3519 | Maybe<UniqueIndexTable> mMaybeUniqueIndexTable; | ||||
| 3520 | const SafeRefPtr<DatabaseFileManager> mFileManager; | ||||
| 3521 | const nsCString mDatabaseId; | ||||
| 3522 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 3523 | |||||
| 3524 | private: | ||||
| 3525 | // Only created by VersionChangeTransaction. | ||||
| 3526 | CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 3527 | IndexOrObjectStoreId aObjectStoreId, | ||||
| 3528 | const IndexMetadata& aMetadata); | ||||
| 3529 | |||||
| 3530 | ~CreateIndexOp() override = default; | ||||
| 3531 | |||||
| 3532 | nsresult InsertDataFromObjectStore(DatabaseConnection* aConnection); | ||||
| 3533 | |||||
| 3534 | nsresult InsertDataFromObjectStoreInternal( | ||||
| 3535 | DatabaseConnection* aConnection) const; | ||||
| 3536 | |||||
| 3537 | bool Init(TransactionBase& aTransaction) override; | ||||
| 3538 | |||||
| 3539 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3540 | }; | ||||
| 3541 | |||||
| 3542 | class CreateIndexOp::UpdateIndexDataValuesFunction final | ||||
| 3543 | : public mozIStorageFunction { | ||||
| 3544 | RefPtr<CreateIndexOp> mOp; | ||||
| 3545 | RefPtr<DatabaseConnection> mConnection; | ||||
| 3546 | const NotNull<SafeRefPtr<Database>> mDatabase; | ||||
| 3547 | |||||
| 3548 | public: | ||||
| 3549 | UpdateIndexDataValuesFunction(CreateIndexOp* aOp, | ||||
| 3550 | DatabaseConnection* aConnection, | ||||
| 3551 | SafeRefPtr<Database> aDatabase) | ||||
| 3552 | : mOp(aOp), | ||||
| 3553 | mConnection(aConnection), | ||||
| 3554 | mDatabase(WrapNotNull(std::move(aDatabase))) { | ||||
| 3555 | MOZ_ASSERT(aOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOp)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aOp))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("aOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3555); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOp" ")"); do { MOZ_CrashSequence(__null, 3555); __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | ||||
| 3556 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3556); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 3556); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3557 | aConnection->AssertIsOnConnectionThread(); | ||||
| 3558 | } | ||||
| 3559 | |||||
| 3560 | 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: | ||||
| 3561 | |||||
| 3562 | private: | ||||
| 3563 | ~UpdateIndexDataValuesFunction() = default; | ||||
| 3564 | |||||
| 3565 | NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments , nsIVariant **_retval) override; | ||||
| 3566 | }; | ||||
| 3567 | |||||
| 3568 | class DeleteIndexOp final : public VersionChangeTransactionOp { | ||||
| 3569 | friend class VersionChangeTransaction; | ||||
| 3570 | |||||
| 3571 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 3572 | const IndexOrObjectStoreId mIndexId; | ||||
| 3573 | const bool mUnique; | ||||
| 3574 | const bool mIsLastIndex; | ||||
| 3575 | |||||
| 3576 | private: | ||||
| 3577 | // Only created by VersionChangeTransaction. | ||||
| 3578 | DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 3579 | IndexOrObjectStoreId aObjectStoreId, | ||||
| 3580 | IndexOrObjectStoreId aIndexId, const bool aUnique, | ||||
| 3581 | const bool aIsLastIndex); | ||||
| 3582 | |||||
| 3583 | ~DeleteIndexOp() override = default; | ||||
| 3584 | |||||
| 3585 | nsresult RemoveReferencesToIndex( | ||||
| 3586 | DatabaseConnection* aConnection, const Key& aObjectDataKey, | ||||
| 3587 | nsTArray<IndexDataValue>& aIndexValues) const; | ||||
| 3588 | |||||
| 3589 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3590 | }; | ||||
| 3591 | |||||
| 3592 | class RenameIndexOp final : public VersionChangeTransactionOp { | ||||
| 3593 | friend class VersionChangeTransaction; | ||||
| 3594 | |||||
| 3595 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 3596 | const IndexOrObjectStoreId mIndexId; | ||||
| 3597 | const nsString mNewName; | ||||
| 3598 | |||||
| 3599 | private: | ||||
| 3600 | // Only created by VersionChangeTransaction. | ||||
| 3601 | RenameIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 3602 | FullIndexMetadata& aMetadata, | ||||
| 3603 | IndexOrObjectStoreId aObjectStoreId) | ||||
| 3604 | : VersionChangeTransactionOp(std::move(aTransaction)), | ||||
| 3605 | mObjectStoreId(aObjectStoreId), | ||||
| 3606 | mIndexId(aMetadata.mCommonMetadata.id()), | ||||
| 3607 | mNewName(aMetadata.mCommonMetadata.name()) { | ||||
| 3608 | MOZ_ASSERT(mIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIndexId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mIndexId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3608); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIndexId" ")" ); do { MOZ_CrashSequence(__null, 3608); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3609 | } | ||||
| 3610 | |||||
| 3611 | ~RenameIndexOp() override = default; | ||||
| 3612 | |||||
| 3613 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3614 | }; | ||||
| 3615 | |||||
| 3616 | class NormalTransactionOp : public TransactionDatabaseOperationBase, | ||||
| 3617 | public PBackgroundIDBRequestParent { | ||||
| 3618 | #ifdef DEBUG1 | ||||
| 3619 | bool mResponseSent; | ||||
| 3620 | #endif | ||||
| 3621 | |||||
| 3622 | public: | ||||
| 3623 | void Cleanup() override; | ||||
| 3624 | |||||
| 3625 | protected: | ||||
| 3626 | NormalTransactionOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 3627 | const int64_t aRequestId) | ||||
| 3628 | : TransactionDatabaseOperationBase(std::move(aTransaction), aRequestId) | ||||
| 3629 | #ifdef DEBUG1 | ||||
| 3630 | , | ||||
| 3631 | mResponseSent(false) | ||||
| 3632 | #endif | ||||
| 3633 | { | ||||
| 3634 | } | ||||
| 3635 | |||||
| 3636 | ~NormalTransactionOp() override = default; | ||||
| 3637 | |||||
| 3638 | // An overload of DatabaseOperationBase's function that can avoid doing extra | ||||
| 3639 | // work on non-versionchange transactions. | ||||
| 3640 | mozilla::Result<bool, nsresult> ObjectStoreHasIndexes( | ||||
| 3641 | DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId, | ||||
| 3642 | bool aMayHaveIndexes); | ||||
| 3643 | |||||
| 3644 | virtual mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams(); | ||||
| 3645 | |||||
| 3646 | // Subclasses use this override to set the IPDL response value. | ||||
| 3647 | virtual void GetResponse(RequestResponse& aResponse, | ||||
| 3648 | size_t* aResponseSize) = 0; | ||||
| 3649 | |||||
| 3650 | private: | ||||
| 3651 | nsresult SendPreprocessInfo() override; | ||||
| 3652 | |||||
| 3653 | TransactionOpResult SendSuccessResult() override; | ||||
| 3654 | |||||
| 3655 | bool SendFailureResult(const TransactionOpResult& aResult) override; | ||||
| 3656 | |||||
| 3657 | // IPDL methods. | ||||
| 3658 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 3659 | |||||
| 3660 | mozilla::ipc::IPCResult RecvContinue( | ||||
| 3661 | const PreprocessResponse& aResponse) final; | ||||
| 3662 | }; | ||||
| 3663 | |||||
| 3664 | class ObjectStoreAddOrPutRequestOp final : public NormalTransactionOp { | ||||
| 3665 | friend class TransactionBase; | ||||
| 3666 | |||||
| 3667 | using PersistenceType = mozilla::dom::quota::PersistenceType; | ||||
| 3668 | |||||
| 3669 | class StoredFileInfo final { | ||||
| 3670 | InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileInfo>>> mFileInfo; | ||||
| 3671 | // Either nothing, a file actor or a non-Blob-backed inputstream to write to | ||||
| 3672 | // disk. | ||||
| 3673 | using FileActorOrInputStream = | ||||
| 3674 | Variant<Nothing, RefPtr<DatabaseFile>, nsCOMPtr<nsIInputStream>>; | ||||
| 3675 | InitializedOnce<const FileActorOrInputStream> mFileActorOrInputStream; | ||||
| 3676 | #ifdef DEBUG1 | ||||
| 3677 | const StructuredCloneFileBase::FileType mType; | ||||
| 3678 | #endif | ||||
| 3679 | void EnsureCipherKey(); | ||||
| 3680 | void AssertInvariants() const; | ||||
| 3681 | |||||
| 3682 | StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo, | ||||
| 3683 | RefPtr<DatabaseFile> aFileActor); | ||||
| 3684 | |||||
| 3685 | StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo, | ||||
| 3686 | nsCOMPtr<nsIInputStream> aInputStream); | ||||
| 3687 | |||||
| 3688 | public: | ||||
| 3689 | #if defined(NS_BUILD_REFCNT_LOGGING1) | ||||
| 3690 | // Only for MOZ_COUNT_CTOR. | ||||
| 3691 | StoredFileInfo(StoredFileInfo&& aOther) | ||||
| 3692 | : mFileInfo{std::move(aOther.mFileInfo)}, | ||||
| 3693 | mFileActorOrInputStream{std::move(aOther.mFileActorOrInputStream)} | ||||
| 3694 | # ifdef DEBUG1 | ||||
| 3695 | , | ||||
| 3696 | mType{aOther.mType} | ||||
| 3697 | # endif | ||||
| 3698 | { | ||||
| 3699 | MOZ_COUNT_CTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp ::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo" "' is not a class type."); static_assert(!std::is_base_of_v< nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo> , "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo" , sizeof(*this)); } while (0); | ||||
| 3700 | } | ||||
| 3701 | #else | ||||
| 3702 | StoredFileInfo(StoredFileInfo&&) = default; | ||||
| 3703 | #endif | ||||
| 3704 | |||||
| 3705 | static StoredFileInfo CreateForBlob(SafeRefPtr<DatabaseFileInfo> aFileInfo, | ||||
| 3706 | RefPtr<DatabaseFile> aFileActor); | ||||
| 3707 | static StoredFileInfo CreateForStructuredClone( | ||||
| 3708 | SafeRefPtr<DatabaseFileInfo> aFileInfo, | ||||
| 3709 | nsCOMPtr<nsIInputStream> aInputStream); | ||||
| 3710 | |||||
| 3711 | #if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1) | ||||
| 3712 | ~StoredFileInfo() { | ||||
| 3713 | AssertIsOnBackgroundThread(); | ||||
| 3714 | AssertInvariants(); | ||||
| 3715 | |||||
| 3716 | MOZ_COUNT_DTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp ::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo" "' is not a class type."); static_assert(!std::is_base_of_v< nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo> , "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo" , sizeof(*this)); } while (0); | ||||
| 3717 | } | ||||
| 3718 | #endif | ||||
| 3719 | |||||
| 3720 | bool IsValid() const { return static_cast<bool>(mFileInfo); } | ||||
| 3721 | |||||
| 3722 | const DatabaseFileInfo& GetFileInfo() const { return **mFileInfo; } | ||||
| 3723 | |||||
| 3724 | bool ShouldCompress() const; | ||||
| 3725 | |||||
| 3726 | void NotifyWriteSucceeded() const; | ||||
| 3727 | |||||
| 3728 | using InputStreamResult = | ||||
| 3729 | mozilla::Result<nsCOMPtr<nsIInputStream>, nsresult>; | ||||
| 3730 | InputStreamResult GetInputStream(); | ||||
| 3731 | |||||
| 3732 | void Serialize(nsString& aText) const; | ||||
| 3733 | }; | ||||
| 3734 | class SCInputStream; | ||||
| 3735 | |||||
| 3736 | ObjectStoreAddPutParams mParams; | ||||
| 3737 | Maybe<UniqueIndexTable> mUniqueIndexTable; | ||||
| 3738 | |||||
| 3739 | // This must be non-const so that we can update the mNextAutoIncrementId field | ||||
| 3740 | // if we are modifying an autoIncrement objectStore. | ||||
| 3741 | SafeRefPtr<FullObjectStoreMetadata> mMetadata; | ||||
| 3742 | |||||
| 3743 | nsTArray<StoredFileInfo> mStoredFileInfos; | ||||
| 3744 | |||||
| 3745 | Key mResponse; | ||||
| 3746 | const OriginMetadata mOriginMetadata; | ||||
| 3747 | const PersistenceType mPersistenceType; | ||||
| 3748 | const bool mOverwrite; | ||||
| 3749 | bool mObjectStoreMayHaveIndexes; | ||||
| 3750 | bool mDataOverThreshold; | ||||
| 3751 | |||||
| 3752 | private: | ||||
| 3753 | // Only created by TransactionBase. | ||||
| 3754 | ObjectStoreAddOrPutRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 3755 | const int64_t aRequestId, | ||||
| 3756 | RequestParams&& aParams); | ||||
| 3757 | |||||
| 3758 | ~ObjectStoreAddOrPutRequestOp() override = default; | ||||
| 3759 | |||||
| 3760 | nsresult RemoveOldIndexDataValues(DatabaseConnection* aConnection); | ||||
| 3761 | |||||
| 3762 | bool Init(TransactionBase& aTransaction) override; | ||||
| 3763 | |||||
| 3764 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3765 | |||||
| 3766 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 3767 | |||||
| 3768 | void Cleanup() override; | ||||
| 3769 | }; | ||||
| 3770 | |||||
| 3771 | void ObjectStoreAddOrPutRequestOp::StoredFileInfo::AssertInvariants() const { | ||||
| 3772 | // The only allowed types are eStructuredClone, eBlob and eMutableFile. | ||||
| 3773 | MOZ_ASSERT(StructuredCloneFileBase::eStructuredClone == mType ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase ::eMutableFile == mType)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase ::eMutableFile == mType))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3775) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" ")"); do { MOZ_CrashSequence(__null, 3775); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 3774 | StructuredCloneFileBase::eBlob == mType ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase ::eMutableFile == mType)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase ::eMutableFile == mType))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3775) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" ")"); do { MOZ_CrashSequence(__null, 3775); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 3775 | StructuredCloneFileBase::eMutableFile == mType)do { static_assert( mozilla::detail::AssertionConditionType< decltype(StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase ::eMutableFile == mType)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase ::eMutableFile == mType))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3775) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" ")"); do { MOZ_CrashSequence(__null, 3775); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3776 | |||||
| 3777 | // mFileInfo and a file actor in mFileActorOrInputStream are present until | ||||
| 3778 | // the object is moved away, but an inputStream in mFileActorOrInputStream | ||||
| 3779 | // can be released early. | ||||
| 3780 | MOZ_ASSERT_IF(static_cast<bool>(mFileActorOrInputStream) &&do { if (static_cast<bool>(mFileActorOrInputStream) && mFileActorOrInputStream->is<RefPtr<DatabaseFile>> ()) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(static_cast<bool>(mFileInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(static_cast<bool>(mFileInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("static_cast<bool>(mFileInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3782) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)" ")"); do { MOZ_CrashSequence(__null, 3782); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3781 | mFileActorOrInputStream->is<RefPtr<DatabaseFile>>(),do { if (static_cast<bool>(mFileActorOrInputStream) && mFileActorOrInputStream->is<RefPtr<DatabaseFile>> ()) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(static_cast<bool>(mFileInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(static_cast<bool>(mFileInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("static_cast<bool>(mFileInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3782) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)" ")"); do { MOZ_CrashSequence(__null, 3782); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3782 | static_cast<bool>(mFileInfo))do { if (static_cast<bool>(mFileActorOrInputStream) && mFileActorOrInputStream->is<RefPtr<DatabaseFile>> ()) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(static_cast<bool>(mFileInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(static_cast<bool>(mFileInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("static_cast<bool>(mFileInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3782) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)" ")"); do { MOZ_CrashSequence(__null, 3782); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 3783 | |||||
| 3784 | if (mFileInfo) { | ||||
| 3785 | // In a non-moved StoredFileInfo, one of the following is true: | ||||
| 3786 | // - This was an overflow structured clone (eStructuredClone) and | ||||
| 3787 | // storedFileInfo.mFileActorOrInputStream CAN be a non-nullptr input | ||||
| 3788 | // stream (but that might have been release by ReleaseInputStream). | ||||
| 3789 | MOZ_ASSERT_IF(do { if (StructuredCloneFileBase::eStructuredClone == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileActorOrInputStream || (mFileActorOrInputStream ->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>()))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mFileActorOrInputStream || (mFileActorOrInputStream->is <nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3793) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { MOZ_CrashSequence(__null, 3793); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3790 | StructuredCloneFileBase::eStructuredClone == mType,do { if (StructuredCloneFileBase::eStructuredClone == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileActorOrInputStream || (mFileActorOrInputStream ->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>()))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mFileActorOrInputStream || (mFileActorOrInputStream->is <nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3793) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { MOZ_CrashSequence(__null, 3793); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3791 | !mFileActorOrInputStream ||do { if (StructuredCloneFileBase::eStructuredClone == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileActorOrInputStream || (mFileActorOrInputStream ->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>()))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mFileActorOrInputStream || (mFileActorOrInputStream->is <nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3793) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { MOZ_CrashSequence(__null, 3793); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3792 | (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() &&do { if (StructuredCloneFileBase::eStructuredClone == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileActorOrInputStream || (mFileActorOrInputStream ->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>()))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mFileActorOrInputStream || (mFileActorOrInputStream->is <nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3793) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { MOZ_CrashSequence(__null, 3793); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3793 | mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>()))do { if (StructuredCloneFileBase::eStructuredClone == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileActorOrInputStream || (mFileActorOrInputStream ->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>()))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mFileActorOrInputStream || (mFileActorOrInputStream->is <nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3793) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { MOZ_CrashSequence(__null, 3793); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 3794 | |||||
| 3795 | // - This is a reference to a Blob (eBlob) that may or may not have | ||||
| 3796 | // already been written to disk. storedFileInfo.mFileActorOrInputStream | ||||
| 3797 | // MUST be a non-null file actor, but its GetInputStream may return | ||||
| 3798 | // nullptr (so don't assert on that). | ||||
| 3799 | MOZ_ASSERT_IF(StructuredCloneFileBase::eBlob == mType,do { if (StructuredCloneFileBase::eBlob == mType) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(mFileActorOrInputStream ->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream ->as<RefPtr<DatabaseFile>>())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileActorOrInputStream-> is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream ->as<RefPtr<DatabaseFile>>()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3801) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" ")"); do { MOZ_CrashSequence(__null, 3801); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3800 | mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() &&do { if (StructuredCloneFileBase::eBlob == mType) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(mFileActorOrInputStream ->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream ->as<RefPtr<DatabaseFile>>())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileActorOrInputStream-> is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream ->as<RefPtr<DatabaseFile>>()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3801) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" ")"); do { MOZ_CrashSequence(__null, 3801); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3801 | mFileActorOrInputStream->as<RefPtr<DatabaseFile>>())do { if (StructuredCloneFileBase::eBlob == mType) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(mFileActorOrInputStream ->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream ->as<RefPtr<DatabaseFile>>())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileActorOrInputStream-> is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream ->as<RefPtr<DatabaseFile>>()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3801) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" ")"); do { MOZ_CrashSequence(__null, 3801); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 3802 | |||||
| 3803 | // - It's a mutable file (eMutableFile). No writing will be performed, | ||||
| 3804 | // and storedFileInfo.mFileActorOrInputStream is Nothing. | ||||
| 3805 | MOZ_ASSERT_IF(StructuredCloneFileBase::eMutableFile == mType,do { if (StructuredCloneFileBase::eMutableFile == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileActorOrInputStream->is<Nothing>())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mFileActorOrInputStream->is<Nothing>()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<Nothing>()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3806) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()" ")"); do { MOZ_CrashSequence(__null, 3806); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3806 | mFileActorOrInputStream->is<Nothing>())do { if (StructuredCloneFileBase::eMutableFile == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileActorOrInputStream->is<Nothing>())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mFileActorOrInputStream->is<Nothing>()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<Nothing>()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3806) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()" ")"); do { MOZ_CrashSequence(__null, 3806); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 3807 | } | ||||
| 3808 | } | ||||
| 3809 | |||||
| 3810 | void ObjectStoreAddOrPutRequestOp::StoredFileInfo::EnsureCipherKey() { | ||||
| 3811 | const auto& fileInfo = GetFileInfo(); | ||||
| 3812 | const auto& fileManager = fileInfo.Manager(); | ||||
| 3813 | |||||
| 3814 | // No need to generate cipher keys if we are not in PBM | ||||
| 3815 | if (!fileManager.IsInPrivateBrowsingMode()) { | ||||
| 3816 | return; | ||||
| 3817 | } | ||||
| 3818 | |||||
| 3819 | nsCString keyId; | ||||
| 3820 | keyId.AppendInt(fileInfo.Id()); | ||||
| 3821 | |||||
| 3822 | fileManager.MutableCipherKeyManagerRef().Ensure(keyId); | ||||
| 3823 | } | ||||
| 3824 | |||||
| 3825 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo( | ||||
| 3826 | SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor) | ||||
| 3827 | : mFileInfo{WrapNotNull(std::move(aFileInfo))}, | ||||
| 3828 | mFileActorOrInputStream{std::move(aFileActor)} | ||||
| 3829 | #ifdef DEBUG1 | ||||
| 3830 | , | ||||
| 3831 | mType{StructuredCloneFileBase::eBlob} | ||||
| 3832 | #endif | ||||
| 3833 | { | ||||
| 3834 | AssertIsOnBackgroundThread(); | ||||
| 3835 | AssertInvariants(); | ||||
| 3836 | |||||
| 3837 | EnsureCipherKey(); | ||||
| 3838 | MOZ_COUNT_CTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp ::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo" "' is not a class type."); static_assert(!std::is_base_of_v< nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo> , "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo" , sizeof(*this)); } while (0); | ||||
| 3839 | } | ||||
| 3840 | |||||
| 3841 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo( | ||||
| 3842 | SafeRefPtr<DatabaseFileInfo> aFileInfo, | ||||
| 3843 | nsCOMPtr<nsIInputStream> aInputStream) | ||||
| 3844 | : mFileInfo{WrapNotNull(std::move(aFileInfo))}, | ||||
| 3845 | mFileActorOrInputStream{std::move(aInputStream)} | ||||
| 3846 | #ifdef DEBUG1 | ||||
| 3847 | , | ||||
| 3848 | mType{StructuredCloneFileBase::eStructuredClone} | ||||
| 3849 | #endif | ||||
| 3850 | { | ||||
| 3851 | AssertIsOnBackgroundThread(); | ||||
| 3852 | AssertInvariants(); | ||||
| 3853 | |||||
| 3854 | EnsureCipherKey(); | ||||
| 3855 | MOZ_COUNT_CTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp ::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo" "' is not a class type."); static_assert(!std::is_base_of_v< nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo> , "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo" , sizeof(*this)); } while (0); | ||||
| 3856 | } | ||||
| 3857 | |||||
| 3858 | ObjectStoreAddOrPutRequestOp::StoredFileInfo | ||||
| 3859 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForBlob( | ||||
| 3860 | SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor) { | ||||
| 3861 | return {std::move(aFileInfo), std::move(aFileActor)}; | ||||
| 3862 | } | ||||
| 3863 | |||||
| 3864 | ObjectStoreAddOrPutRequestOp::StoredFileInfo | ||||
| 3865 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForStructuredClone( | ||||
| 3866 | SafeRefPtr<DatabaseFileInfo> aFileInfo, | ||||
| 3867 | nsCOMPtr<nsIInputStream> aInputStream) { | ||||
| 3868 | return {std::move(aFileInfo), std::move(aInputStream)}; | ||||
| 3869 | } | ||||
| 3870 | |||||
| 3871 | bool ObjectStoreAddOrPutRequestOp::StoredFileInfo::ShouldCompress() const { | ||||
| 3872 | // Must not be called after moving. | ||||
| 3873 | MOZ_ASSERT(IsValid())do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsValid())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsValid()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("IsValid()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3873); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")" ); do { MOZ_CrashSequence(__null, 3873); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3874 | |||||
| 3875 | // Compression is only necessary for eStructuredClone, i.e. when | ||||
| 3876 | // mFileActorOrInputStream stored an input stream. However, this is only | ||||
| 3877 | // called after GetInputStream, when mFileActorOrInputStream has been | ||||
| 3878 | // cleared, which is only possible for this type. | ||||
| 3879 | const bool res = !mFileActorOrInputStream; | ||||
| 3880 | MOZ_ASSERT(res == (StructuredCloneFileBase::eStructuredClone == mType))do { static_assert( mozilla::detail::AssertionConditionType< decltype(res == (StructuredCloneFileBase::eStructuredClone == mType))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(res == (StructuredCloneFileBase::eStructuredClone == mType)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("res == (StructuredCloneFileBase::eStructuredClone == mType)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3880) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "res == (StructuredCloneFileBase::eStructuredClone == mType)" ")"); do { MOZ_CrashSequence(__null, 3880); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3881 | return res; | ||||
| 3882 | } | ||||
| 3883 | |||||
| 3884 | void ObjectStoreAddOrPutRequestOp::StoredFileInfo::NotifyWriteSucceeded() | ||||
| 3885 | const { | ||||
| 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()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3886); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")" ); do { MOZ_CrashSequence(__null, 3886); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3887 | |||||
| 3888 | // For eBlob, clear the blob implementation. | ||||
| 3889 | if (mFileActorOrInputStream && | ||||
| 3890 | mFileActorOrInputStream->is<RefPtr<DatabaseFile>>()) { | ||||
| 3891 | mFileActorOrInputStream->as<RefPtr<DatabaseFile>>() | ||||
| 3892 | ->WriteSucceededClearBlobImpl(); | ||||
| 3893 | } | ||||
| 3894 | |||||
| 3895 | // For the other types, no action is necessary. | ||||
| 3896 | } | ||||
| 3897 | |||||
| 3898 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::InputStreamResult | ||||
| 3899 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::GetInputStream() { | ||||
| 3900 | if (!mFileActorOrInputStream) { | ||||
| 3901 | MOZ_ASSERT(StructuredCloneFileBase::eStructuredClone == mType)do { static_assert( mozilla::detail::AssertionConditionType< decltype(StructuredCloneFileBase::eStructuredClone == mType)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(StructuredCloneFileBase::eStructuredClone == mType)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("StructuredCloneFileBase::eStructuredClone == mType" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3901) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType" ")"); do { MOZ_CrashSequence(__null, 3901); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3902 | return nsCOMPtr<nsIInputStream>{}; | ||||
| 3903 | } | ||||
| 3904 | |||||
| 3905 | // For the different cases, see also the comments in AssertInvariants. | ||||
| 3906 | return mFileActorOrInputStream->match( | ||||
| 3907 | [](const Nothing&) -> InputStreamResult { | ||||
| 3908 | return nsCOMPtr<nsIInputStream>{}; | ||||
| 3909 | }, | ||||
| 3910 | [](const RefPtr<DatabaseFile>& databaseActor) -> InputStreamResult { | ||||
| 3911 | ErrorResult rv; | ||||
| 3912 | auto inputStream = databaseActor->GetInputStream(rv); | ||||
| 3913 | if (NS_WARN_IF(rv.Failed())NS_warn_if_impl(rv.Failed(), "rv.Failed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3913)) { | ||||
| 3914 | return Err(rv.StealNSResult()); | ||||
| 3915 | } | ||||
| 3916 | |||||
| 3917 | return inputStream; | ||||
| 3918 | }, | ||||
| 3919 | [this](const nsCOMPtr<nsIInputStream>& inputStream) -> InputStreamResult { | ||||
| 3920 | auto res = inputStream; | ||||
| 3921 | // destroy() clears the inputStream parameter, so we needed to make a | ||||
| 3922 | // copy before | ||||
| 3923 | mFileActorOrInputStream.destroy(); | ||||
| 3924 | AssertInvariants(); | ||||
| 3925 | return res; | ||||
| 3926 | }); | ||||
| 3927 | } | ||||
| 3928 | |||||
| 3929 | void ObjectStoreAddOrPutRequestOp::StoredFileInfo::Serialize( | ||||
| 3930 | nsString& aText) const { | ||||
| 3931 | AssertInvariants(); | ||||
| 3932 | MOZ_ASSERT(IsValid())do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsValid())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsValid()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("IsValid()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")" ); do { MOZ_CrashSequence(__null, 3932); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3933 | |||||
| 3934 | const int64_t id = (*mFileInfo)->Id(); | ||||
| 3935 | |||||
| 3936 | auto structuredCloneHandler = [&aText, id](const nsCOMPtr<nsIInputStream>&) { | ||||
| 3937 | // eStructuredClone | ||||
| 3938 | aText.Append('.'); | ||||
| 3939 | aText.AppendInt(id); | ||||
| 3940 | }; | ||||
| 3941 | |||||
| 3942 | // If mFileActorOrInputStream was moved, we had an inputStream before. | ||||
| 3943 | if (!mFileActorOrInputStream) { | ||||
| 3944 | structuredCloneHandler(nullptr); | ||||
| 3945 | return; | ||||
| 3946 | } | ||||
| 3947 | |||||
| 3948 | // This encoding is parsed in DeserializeStructuredCloneFile. | ||||
| 3949 | mFileActorOrInputStream->match( | ||||
| 3950 | [&aText, id](const Nothing&) { | ||||
| 3951 | // eMutableFile | ||||
| 3952 | aText.AppendInt(-id); | ||||
| 3953 | }, | ||||
| 3954 | [&aText, id](const RefPtr<DatabaseFile>&) { | ||||
| 3955 | // eBlob | ||||
| 3956 | aText.AppendInt(id); | ||||
| 3957 | }, | ||||
| 3958 | structuredCloneHandler); | ||||
| 3959 | } | ||||
| 3960 | |||||
| 3961 | class ObjectStoreAddOrPutRequestOp::SCInputStream final | ||||
| 3962 | : public nsIInputStream { | ||||
| 3963 | const JSStructuredCloneData& mData; | ||||
| 3964 | JSStructuredCloneData::Iterator mIter; | ||||
| 3965 | |||||
| 3966 | public: | ||||
| 3967 | explicit SCInputStream(const JSStructuredCloneData& aData) | ||||
| 3968 | : mData(aData), mIter(aData.Start()) {} | ||||
| 3969 | |||||
| 3970 | private: | ||||
| 3971 | virtual ~SCInputStream() = default; | ||||
| 3972 | |||||
| 3973 | 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: | ||||
| 3974 | 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; | ||||
| 3975 | }; | ||||
| 3976 | |||||
| 3977 | class ObjectStoreGetRequestOp final : public NormalTransactionOp { | ||||
| 3978 | friend class TransactionBase; | ||||
| 3979 | |||||
| 3980 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 3981 | SafeRefPtr<Database> mDatabase; | ||||
| 3982 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 3983 | AutoTArray<StructuredCloneReadInfoParent, 1> mResponse; | ||||
| 3984 | PBackgroundParent* mBackgroundParent; | ||||
| 3985 | uint32_t mPreprocessInfoCount; | ||||
| 3986 | const uint32_t mLimit; | ||||
| 3987 | const IDBCursorDirection mDirection; | ||||
| 3988 | const bool mGetAll; | ||||
| 3989 | |||||
| 3990 | private: | ||||
| 3991 | // Only created by TransactionBase. | ||||
| 3992 | ObjectStoreGetRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 3993 | const int64_t aRequestId, | ||||
| 3994 | const RequestParams& aParams, bool aGetAll); | ||||
| 3995 | |||||
| 3996 | ~ObjectStoreGetRequestOp() override = default; | ||||
| 3997 | |||||
| 3998 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3999 | |||||
| 4000 | bool HasPreprocessInfo() override; | ||||
| 4001 | |||||
| 4002 | mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams() override; | ||||
| 4003 | |||||
| 4004 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 4005 | }; | ||||
| 4006 | |||||
| 4007 | class ObjectStoreGetKeyRequestOp final : public NormalTransactionOp { | ||||
| 4008 | friend class TransactionBase; | ||||
| 4009 | |||||
| 4010 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 4011 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 4012 | const uint32_t mLimit; | ||||
| 4013 | const IDBCursorDirection mDirection; | ||||
| 4014 | const bool mGetAll; | ||||
| 4015 | nsTArray<Key> mResponse; | ||||
| 4016 | |||||
| 4017 | private: | ||||
| 4018 | // Only created by TransactionBase. | ||||
| 4019 | ObjectStoreGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4020 | const int64_t aRequestId, | ||||
| 4021 | const RequestParams& aParams, bool aGetAll); | ||||
| 4022 | |||||
| 4023 | ~ObjectStoreGetKeyRequestOp() override = default; | ||||
| 4024 | |||||
| 4025 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4026 | |||||
| 4027 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 4028 | }; | ||||
| 4029 | |||||
| 4030 | class ObjectStoreDeleteRequestOp final : public NormalTransactionOp { | ||||
| 4031 | friend class TransactionBase; | ||||
| 4032 | |||||
| 4033 | const ObjectStoreDeleteParams mParams; | ||||
| 4034 | ObjectStoreDeleteResponse mResponse; | ||||
| 4035 | bool mObjectStoreMayHaveIndexes; | ||||
| 4036 | |||||
| 4037 | private: | ||||
| 4038 | ObjectStoreDeleteRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4039 | const int64_t aRequestId, | ||||
| 4040 | const ObjectStoreDeleteParams& aParams); | ||||
| 4041 | |||||
| 4042 | ~ObjectStoreDeleteRequestOp() override = default; | ||||
| 4043 | |||||
| 4044 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4045 | |||||
| 4046 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override { | ||||
| 4047 | aResponse = std::move(mResponse); | ||||
| 4048 | *aResponseSize = 0; | ||||
| 4049 | } | ||||
| 4050 | }; | ||||
| 4051 | |||||
| 4052 | class ObjectStoreClearRequestOp final : public NormalTransactionOp { | ||||
| 4053 | friend class TransactionBase; | ||||
| 4054 | |||||
| 4055 | const ObjectStoreClearParams mParams; | ||||
| 4056 | ObjectStoreClearResponse mResponse; | ||||
| 4057 | bool mObjectStoreMayHaveIndexes; | ||||
| 4058 | |||||
| 4059 | private: | ||||
| 4060 | ObjectStoreClearRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4061 | const int64_t aRequestId, | ||||
| 4062 | const ObjectStoreClearParams& aParams); | ||||
| 4063 | |||||
| 4064 | ~ObjectStoreClearRequestOp() override = default; | ||||
| 4065 | |||||
| 4066 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4067 | |||||
| 4068 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override { | ||||
| 4069 | aResponse = std::move(mResponse); | ||||
| 4070 | *aResponseSize = 0; | ||||
| 4071 | } | ||||
| 4072 | }; | ||||
| 4073 | |||||
| 4074 | class ObjectStoreCountRequestOp final : public NormalTransactionOp { | ||||
| 4075 | friend class TransactionBase; | ||||
| 4076 | |||||
| 4077 | const ObjectStoreCountParams mParams; | ||||
| 4078 | ObjectStoreCountResponse mResponse; | ||||
| 4079 | |||||
| 4080 | private: | ||||
| 4081 | ObjectStoreCountRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4082 | const int64_t aRequestId, | ||||
| 4083 | const ObjectStoreCountParams& aParams) | ||||
| 4084 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 4085 | mParams(aParams) {} | ||||
| 4086 | |||||
| 4087 | ~ObjectStoreCountRequestOp() override = default; | ||||
| 4088 | |||||
| 4089 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4090 | |||||
| 4091 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override { | ||||
| 4092 | aResponse = std::move(mResponse); | ||||
| 4093 | *aResponseSize = sizeof(uint64_t); | ||||
| 4094 | } | ||||
| 4095 | }; | ||||
| 4096 | |||||
| 4097 | class IndexRequestOpBase : public NormalTransactionOp { | ||||
| 4098 | protected: | ||||
| 4099 | const SafeRefPtr<FullIndexMetadata> mMetadata; | ||||
| 4100 | |||||
| 4101 | protected: | ||||
| 4102 | IndexRequestOpBase(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4103 | const int64_t aRequestId, const RequestParams& aParams) | ||||
| 4104 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 4105 | mMetadata(IndexMetadataForParams(Transaction(), aParams)) {} | ||||
| 4106 | |||||
| 4107 | ~IndexRequestOpBase() override = default; | ||||
| 4108 | |||||
| 4109 | private: | ||||
| 4110 | static SafeRefPtr<FullIndexMetadata> IndexMetadataForParams( | ||||
| 4111 | const TransactionBase& aTransaction, const RequestParams& aParams); | ||||
| 4112 | }; | ||||
| 4113 | |||||
| 4114 | class IndexGetRequestOp final : public IndexRequestOpBase { | ||||
| 4115 | friend class TransactionBase; | ||||
| 4116 | |||||
| 4117 | SafeRefPtr<Database> mDatabase; | ||||
| 4118 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 4119 | AutoTArray<StructuredCloneReadInfoParent, 1> mResponse; | ||||
| 4120 | PBackgroundParent* mBackgroundParent; | ||||
| 4121 | const uint32_t mLimit; | ||||
| 4122 | const IDBCursorDirection mDirection; | ||||
| 4123 | const bool mGetAll; | ||||
| 4124 | |||||
| 4125 | private: | ||||
| 4126 | // Only created by TransactionBase. | ||||
| 4127 | IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4128 | const int64_t aRequestId, const RequestParams& aParams, | ||||
| 4129 | bool aGetAll); | ||||
| 4130 | |||||
| 4131 | ~IndexGetRequestOp() override = default; | ||||
| 4132 | |||||
| 4133 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4134 | |||||
| 4135 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 4136 | |||||
| 4137 | nsCString MakeQuery() const; | ||||
| 4138 | }; | ||||
| 4139 | |||||
| 4140 | class IndexGetKeyRequestOp final : public IndexRequestOpBase { | ||||
| 4141 | friend class TransactionBase; | ||||
| 4142 | |||||
| 4143 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 4144 | AutoTArray<Key, 1> mResponse; | ||||
| 4145 | const uint32_t mLimit; | ||||
| 4146 | const IDBCursorDirection mDirection; | ||||
| 4147 | const bool mGetAll; | ||||
| 4148 | |||||
| 4149 | private: | ||||
| 4150 | // Only created by TransactionBase. | ||||
| 4151 | IndexGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4152 | const int64_t aRequestId, const RequestParams& aParams, | ||||
| 4153 | bool aGetAll); | ||||
| 4154 | |||||
| 4155 | ~IndexGetKeyRequestOp() override = default; | ||||
| 4156 | |||||
| 4157 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4158 | |||||
| 4159 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 4160 | |||||
| 4161 | nsCString MakeQuery() const; | ||||
| 4162 | }; | ||||
| 4163 | |||||
| 4164 | class IndexCountRequestOp final : public IndexRequestOpBase { | ||||
| 4165 | friend class TransactionBase; | ||||
| 4166 | |||||
| 4167 | const IndexCountParams mParams; | ||||
| 4168 | IndexCountResponse mResponse; | ||||
| 4169 | |||||
| 4170 | private: | ||||
| 4171 | // Only created by TransactionBase. | ||||
| 4172 | IndexCountRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4173 | const int64_t aRequestId, const RequestParams& aParams) | ||||
| 4174 | : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams), | ||||
| 4175 | mParams(aParams.get_IndexCountParams()) {} | ||||
| 4176 | |||||
| 4177 | ~IndexCountRequestOp() override = default; | ||||
| 4178 | |||||
| 4179 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4180 | |||||
| 4181 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override { | ||||
| 4182 | aResponse = std::move(mResponse); | ||||
| 4183 | *aResponseSize = sizeof(uint64_t); | ||||
| 4184 | } | ||||
| 4185 | }; | ||||
| 4186 | |||||
| 4187 | class ObjectStoreGetAllRecordsRequestOp final : public NormalTransactionOp { | ||||
| 4188 | friend class TransactionBase; | ||||
| 4189 | |||||
| 4190 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 4191 | SafeRefPtr<Database> mDatabase; | ||||
| 4192 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 4193 | nsTArray<Key> mKeys; | ||||
| 4194 | FallibleTArray<StructuredCloneReadInfoParent> mCloneInfos; | ||||
| 4195 | PBackgroundParent* mBackgroundParent; | ||||
| 4196 | const uint32_t mLimit; | ||||
| 4197 | const IDBCursorDirection mDirection; | ||||
| 4198 | |||||
| 4199 | private: | ||||
| 4200 | // Only created by TransactionBase. | ||||
| 4201 | ObjectStoreGetAllRecordsRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4202 | const int64_t aRequestId, | ||||
| 4203 | const RequestParams& aParams); | ||||
| 4204 | |||||
| 4205 | ~ObjectStoreGetAllRecordsRequestOp() override = default; | ||||
| 4206 | |||||
| 4207 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4208 | |||||
| 4209 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 4210 | }; | ||||
| 4211 | |||||
| 4212 | class IndexGetAllRecordsRequestOp final : public IndexRequestOpBase { | ||||
| 4213 | friend class TransactionBase; | ||||
| 4214 | |||||
| 4215 | SafeRefPtr<Database> mDatabase; | ||||
| 4216 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 4217 | nsTArray<Key> mKeys; | ||||
| 4218 | nsTArray<Key> mPrimaryKeys; | ||||
| 4219 | FallibleTArray<StructuredCloneReadInfoParent> mCloneInfos; | ||||
| 4220 | PBackgroundParent* mBackgroundParent; | ||||
| 4221 | const uint32_t mLimit; | ||||
| 4222 | const IDBCursorDirection mDirection; | ||||
| 4223 | |||||
| 4224 | private: | ||||
| 4225 | // Only created by TransactionBase. | ||||
| 4226 | IndexGetAllRecordsRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4227 | const int64_t aRequestId, | ||||
| 4228 | const RequestParams& aParams); | ||||
| 4229 | |||||
| 4230 | ~IndexGetAllRecordsRequestOp() override = default; | ||||
| 4231 | |||||
| 4232 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4233 | |||||
| 4234 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 4235 | |||||
| 4236 | nsCString MakeQuery() const; | ||||
| 4237 | }; | ||||
| 4238 | |||||
| 4239 | template <IDBCursorType CursorType> | ||||
| 4240 | class Cursor; | ||||
| 4241 | |||||
| 4242 | constexpr IDBCursorType ToKeyOnlyType(const IDBCursorType aType) { | ||||
| 4243 | MOZ_ASSERT(aType == IDBCursorType::ObjectStore ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType ::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType ::Index || aType == IDBCursorType::IndexKey))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4245) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { MOZ_CrashSequence(__null, 4245); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 4244 | aType == IDBCursorType::ObjectStoreKey ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType ::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType ::Index || aType == IDBCursorType::IndexKey))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4245) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { MOZ_CrashSequence(__null, 4245); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 4245 | aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType ::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType ::Index || aType == IDBCursorType::IndexKey))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4245) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { MOZ_CrashSequence(__null, 4245); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4246 | switch (aType) { | ||||
| 4247 | case IDBCursorType::ObjectStore: | ||||
| 4248 | [[fallthrough]]; | ||||
| 4249 | case IDBCursorType::ObjectStoreKey: | ||||
| 4250 | return IDBCursorType::ObjectStoreKey; | ||||
| 4251 | case IDBCursorType::Index: | ||||
| 4252 | [[fallthrough]]; | ||||
| 4253 | case IDBCursorType::IndexKey: | ||||
| 4254 | return IDBCursorType::IndexKey; | ||||
| 4255 | } | ||||
| 4256 | } | ||||
| 4257 | |||||
| 4258 | template <IDBCursorType CursorType> | ||||
| 4259 | using CursorPosition = CursorData<ToKeyOnlyType(CursorType)>; | ||||
| 4260 | |||||
| 4261 | #ifdef DEBUG1 | ||||
| 4262 | constexpr indexedDB::OpenCursorParams::Type ToOpenCursorParamsType( | ||||
| 4263 | const IDBCursorType aType) { | ||||
| 4264 | MOZ_ASSERT(aType == IDBCursorType::ObjectStore ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType ::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType ::Index || aType == IDBCursorType::IndexKey))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4266) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { MOZ_CrashSequence(__null, 4266); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 4265 | aType == IDBCursorType::ObjectStoreKey ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType ::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType ::Index || aType == IDBCursorType::IndexKey))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4266) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { MOZ_CrashSequence(__null, 4266); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 4266 | aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType ::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType ::Index || aType == IDBCursorType::IndexKey))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4266) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { MOZ_CrashSequence(__null, 4266); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4267 | switch (aType) { | ||||
| 4268 | case IDBCursorType::ObjectStore: | ||||
| 4269 | return indexedDB::OpenCursorParams::TObjectStoreOpenCursorParams; | ||||
| 4270 | case IDBCursorType::ObjectStoreKey: | ||||
| 4271 | return indexedDB::OpenCursorParams::TObjectStoreOpenKeyCursorParams; | ||||
| 4272 | case IDBCursorType::Index: | ||||
| 4273 | return indexedDB::OpenCursorParams::TIndexOpenCursorParams; | ||||
| 4274 | case IDBCursorType::IndexKey: | ||||
| 4275 | return indexedDB::OpenCursorParams::TIndexOpenKeyCursorParams; | ||||
| 4276 | } | ||||
| 4277 | } | ||||
| 4278 | #endif | ||||
| 4279 | |||||
| 4280 | class CursorBase : public PBackgroundIDBCursorParent { | ||||
| 4281 | friend class TransactionBase; | ||||
| 4282 | template <IDBCursorType CursorType> | ||||
| 4283 | friend class CommonOpenOpHelper; | ||||
| 4284 | |||||
| 4285 | protected: | ||||
| 4286 | const SafeRefPtr<TransactionBase> mTransaction; | ||||
| 4287 | |||||
| 4288 | // This should only be touched on the PBackground thread to check whether | ||||
| 4289 | // the objectStore has been deleted. Holding these saves a hash lookup for | ||||
| 4290 | // every call to continue()/advance(). | ||||
| 4291 | InitializedOnce<const NotNull<SafeRefPtr<FullObjectStoreMetadata>>> | ||||
| 4292 | mObjectStoreMetadata; | ||||
| 4293 | |||||
| 4294 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 4295 | |||||
| 4296 | LazyInitializedOnce<const Key> | ||||
| 4297 | mLocaleAwareRangeBound; ///< If the cursor is based on a key range, the | ||||
| 4298 | ///< bound in the direction of iteration (e.g. | ||||
| 4299 | ///< the upper bound in case of mDirection == | ||||
| 4300 | ///< NEXT). If the cursor is based on a key, it | ||||
| 4301 | ///< is unset. If mLocale is set, this was | ||||
| 4302 | ///< converted to mLocale. | ||||
| 4303 | |||||
| 4304 | const Direction mDirection; | ||||
| 4305 | |||||
| 4306 | const int32_t mMaxExtraCount; | ||||
| 4307 | |||||
| 4308 | const bool mIsSameProcessActor; | ||||
| 4309 | |||||
| 4310 | struct ConstructFromTransactionBase {}; | ||||
| 4311 | |||||
| 4312 | public: | ||||
| 4313 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::CursorBase,public: MozExternalRefCountType AddRef(void) final { static_assert (!std::is_destructible_v<mozilla::dom::indexedDB::CursorBase >, "Reference-counted class " "mozilla::dom::indexedDB::CursorBase" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4314); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4314 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("mozilla::dom::indexedDB::CursorBase"), (uint32_t)(sizeof (*this))); return (nsrefcnt)count; } MozExternalRefCountType Release (void) final { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4314); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4314 ); __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: | ||||
| 4314 | final)public: MozExternalRefCountType AddRef(void) final { static_assert (!std::is_destructible_v<mozilla::dom::indexedDB::CursorBase >, "Reference-counted class " "mozilla::dom::indexedDB::CursorBase" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4314); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4314 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("mozilla::dom::indexedDB::CursorBase"), (uint32_t)(sizeof (*this))); return (nsrefcnt)count; } MozExternalRefCountType Release (void) final { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4314); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4314 ); __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: | ||||
| 4315 | |||||
| 4316 | CursorBase(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4317 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | ||||
| 4318 | Direction aDirection, | ||||
| 4319 | ConstructFromTransactionBase aConstructionTag); | ||||
| 4320 | |||||
| 4321 | protected: | ||||
| 4322 | // Reference counted. | ||||
| 4323 | ~CursorBase() override { MOZ_ASSERT(!mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mObjectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mObjectStoreMetadata))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!mObjectStoreMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4323) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 4323); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 4324 | |||||
| 4325 | private: | ||||
| 4326 | virtual bool Start(const int64_t aRequestId, | ||||
| 4327 | const OpenCursorParams& aParams) = 0; | ||||
| 4328 | }; | ||||
| 4329 | |||||
| 4330 | class IndexCursorBase : public CursorBase { | ||||
| 4331 | public: | ||||
| 4332 | bool IsLocaleAware() const { return !mLocale.IsEmpty(); } | ||||
| 4333 | |||||
| 4334 | IndexCursorBase(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4335 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | ||||
| 4336 | SafeRefPtr<FullIndexMetadata> aIndexMetadata, | ||||
| 4337 | Direction aDirection, | ||||
| 4338 | ConstructFromTransactionBase aConstructionTag) | ||||
| 4339 | : CursorBase{std::move(aTransaction), std::move(aObjectStoreMetadata), | ||||
| 4340 | aDirection, aConstructionTag}, | ||||
| 4341 | mIndexMetadata(WrapNotNull(std::move(aIndexMetadata))), | ||||
| 4342 | mIndexId((*mIndexMetadata)->mCommonMetadata.id()), | ||||
| 4343 | mUniqueIndex((*mIndexMetadata)->mCommonMetadata.unique()), | ||||
| 4344 | mLocale((*mIndexMetadata)->mCommonMetadata.locale()) {} | ||||
| 4345 | |||||
| 4346 | protected: | ||||
| 4347 | IndexOrObjectStoreId Id() const { return mIndexId; } | ||||
| 4348 | |||||
| 4349 | // This should only be touched on the PBackground thread to check whether | ||||
| 4350 | // the index has been deleted. Holding these saves a hash lookup for every | ||||
| 4351 | // call to continue()/advance(). | ||||
| 4352 | InitializedOnce<const NotNull<SafeRefPtr<FullIndexMetadata>>> mIndexMetadata; | ||||
| 4353 | const IndexOrObjectStoreId mIndexId; | ||||
| 4354 | const bool mUniqueIndex; | ||||
| 4355 | const nsCString | ||||
| 4356 | mLocale; ///< The locale if the cursor is locale-aware, otherwise empty. | ||||
| 4357 | |||||
| 4358 | struct ContinueQueries { | ||||
| 4359 | nsCString mContinueQuery; | ||||
| 4360 | nsCString mContinueToQuery; | ||||
| 4361 | nsCString mContinuePrimaryKeyQuery; | ||||
| 4362 | |||||
| 4363 | const nsACString& GetContinueQuery(const bool hasContinueKey, | ||||
| 4364 | const bool hasContinuePrimaryKey) const { | ||||
| 4365 | return hasContinuePrimaryKey ? mContinuePrimaryKeyQuery | ||||
| 4366 | : hasContinueKey ? mContinueToQuery | ||||
| 4367 | : mContinueQuery; | ||||
| 4368 | } | ||||
| 4369 | }; | ||||
| 4370 | }; | ||||
| 4371 | |||||
| 4372 | class ObjectStoreCursorBase : public CursorBase { | ||||
| 4373 | public: | ||||
| 4374 | using CursorBase::CursorBase; | ||||
| 4375 | |||||
| 4376 | static constexpr bool IsLocaleAware() { return false; } | ||||
| 4377 | |||||
| 4378 | protected: | ||||
| 4379 | IndexOrObjectStoreId Id() const { return mObjectStoreId; } | ||||
| 4380 | |||||
| 4381 | struct ContinueQueries { | ||||
| 4382 | nsCString mContinueQuery; | ||||
| 4383 | nsCString mContinueToQuery; | ||||
| 4384 | |||||
| 4385 | const nsACString& GetContinueQuery(const bool hasContinueKey, | ||||
| 4386 | const bool hasContinuePrimaryKey) const { | ||||
| 4387 | MOZ_ASSERT(!hasContinuePrimaryKey)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!hasContinuePrimaryKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!hasContinuePrimaryKey))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!hasContinuePrimaryKey" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4387) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasContinuePrimaryKey" ")"); do { MOZ_CrashSequence(__null, 4387); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4388 | return hasContinueKey ? mContinueToQuery : mContinueQuery; | ||||
| 4389 | } | ||||
| 4390 | }; | ||||
| 4391 | }; | ||||
| 4392 | |||||
| 4393 | using FilesArray = nsTArray<nsTArray<StructuredCloneFileParent>>; | ||||
| 4394 | |||||
| 4395 | struct PseudoFilesArray { | ||||
| 4396 | static constexpr bool IsEmpty() { return true; } | ||||
| 4397 | |||||
| 4398 | static constexpr void Clear() {} | ||||
| 4399 | }; | ||||
| 4400 | |||||
| 4401 | template <IDBCursorType CursorType> | ||||
| 4402 | using FilesArrayT = | ||||
| 4403 | std::conditional_t<!CursorTypeTraits<CursorType>::IsKeyOnlyCursor, | ||||
| 4404 | FilesArray, PseudoFilesArray>; | ||||
| 4405 | |||||
| 4406 | class ValueCursorBase { | ||||
| 4407 | friend struct ValuePopulateResponseHelper<true>; | ||||
| 4408 | friend struct ValuePopulateResponseHelper<false>; | ||||
| 4409 | |||||
| 4410 | protected: | ||||
| 4411 | explicit ValueCursorBase(TransactionBase* const aTransaction) | ||||
| 4412 | : mDatabase(aTransaction->GetDatabasePtr()), | ||||
| 4413 | mFileManager(mDatabase->GetFileManagerPtr()), | ||||
| 4414 | mBackgroundParent(WrapNotNull(aTransaction->GetBackgroundParent())) { | ||||
| 4415 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4415); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 4415); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4416 | } | ||||
| 4417 | |||||
| 4418 | void ProcessFiles(CursorResponse& aResponse, const FilesArray& aFiles); | ||||
| 4419 | |||||
| 4420 | ~ValueCursorBase() { MOZ_ASSERT(!mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mBackgroundParent)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mBackgroundParent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mBackgroundParent" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4420) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBackgroundParent" ")"); do { MOZ_CrashSequence(__null, 4420); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 4421 | |||||
| 4422 | const SafeRefPtr<Database> mDatabase; | ||||
| 4423 | const NotNull<SafeRefPtr<DatabaseFileManager>> mFileManager; | ||||
| 4424 | |||||
| 4425 | InitializedOnce<const NotNull<PBackgroundParent*>> mBackgroundParent; | ||||
| 4426 | }; | ||||
| 4427 | |||||
| 4428 | class KeyCursorBase { | ||||
| 4429 | protected: | ||||
| 4430 | explicit KeyCursorBase(TransactionBase* const /*aTransaction*/) {} | ||||
| 4431 | |||||
| 4432 | static constexpr void ProcessFiles(CursorResponse& aResponse, | ||||
| 4433 | const PseudoFilesArray& aFiles) {} | ||||
| 4434 | }; | ||||
| 4435 | |||||
| 4436 | template <IDBCursorType CursorType> | ||||
| 4437 | class CursorOpBaseHelperBase; | ||||
| 4438 | |||||
| 4439 | template <IDBCursorType CursorType> | ||||
| 4440 | class Cursor final | ||||
| 4441 | : public std::conditional_t< | ||||
| 4442 | CursorTypeTraits<CursorType>::IsObjectStoreCursor, | ||||
| 4443 | ObjectStoreCursorBase, IndexCursorBase>, | ||||
| 4444 | public std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor, | ||||
| 4445 | KeyCursorBase, ValueCursorBase> { | ||||
| 4446 | using Base = | ||||
| 4447 | std::conditional_t<CursorTypeTraits<CursorType>::IsObjectStoreCursor, | ||||
| 4448 | ObjectStoreCursorBase, IndexCursorBase>; | ||||
| 4449 | |||||
| 4450 | using KeyValueBase = | ||||
| 4451 | std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor, | ||||
| 4452 | KeyCursorBase, ValueCursorBase>; | ||||
| 4453 | |||||
| 4454 | static constexpr bool IsIndexCursor = | ||||
| 4455 | !CursorTypeTraits<CursorType>::IsObjectStoreCursor; | ||||
| 4456 | |||||
| 4457 | static constexpr bool IsValueCursor = | ||||
| 4458 | !CursorTypeTraits<CursorType>::IsKeyOnlyCursor; | ||||
| 4459 | |||||
| 4460 | class CursorOpBase; | ||||
| 4461 | class OpenOp; | ||||
| 4462 | class ContinueOp; | ||||
| 4463 | |||||
| 4464 | using Base::Id; | ||||
| 4465 | using CursorBase::Manager; | ||||
| 4466 | using CursorBase::mDirection; | ||||
| 4467 | using CursorBase::mObjectStoreId; | ||||
| 4468 | using CursorBase::mTransaction; | ||||
| 4469 | using typename CursorBase::ActorDestroyReason; | ||||
| 4470 | |||||
| 4471 | using TypedOpenOpHelper = | ||||
| 4472 | std::conditional_t<IsIndexCursor, IndexOpenOpHelper<CursorType>, | ||||
| 4473 | ObjectStoreOpenOpHelper<CursorType>>; | ||||
| 4474 | |||||
| 4475 | friend class CursorOpBaseHelperBase<CursorType>; | ||||
| 4476 | friend class CommonOpenOpHelper<CursorType>; | ||||
| 4477 | friend TypedOpenOpHelper; | ||||
| 4478 | friend class OpenOpHelper<CursorType>; | ||||
| 4479 | |||||
| 4480 | CursorOpBase* mCurrentlyRunningOp = nullptr; | ||||
| 4481 | |||||
| 4482 | LazyInitializedOnce<const typename Base::ContinueQueries> mContinueQueries; | ||||
| 4483 | |||||
| 4484 | // Only called by TransactionBase. | ||||
| 4485 | bool Start(const int64_t aRequestId, const OpenCursorParams& aParams) final; | ||||
| 4486 | |||||
| 4487 | void SendResponseInternal(CursorResponse& aResponse, | ||||
| 4488 | const FilesArrayT<CursorType>& aFiles); | ||||
| 4489 | |||||
| 4490 | // IPDL methods. | ||||
| 4491 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 4492 | |||||
| 4493 | mozilla::ipc::IPCResult RecvDeleteMe() override; | ||||
| 4494 | |||||
| 4495 | mozilla::ipc::IPCResult RecvContinue( | ||||
| 4496 | const int64_t& aRequestId, const CursorRequestParams& aParams, | ||||
| 4497 | const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) override; | ||||
| 4498 | |||||
| 4499 | public: | ||||
| 4500 | Cursor(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4501 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | ||||
| 4502 | SafeRefPtr<FullIndexMetadata> aIndexMetadata, | ||||
| 4503 | typename Base::Direction aDirection, | ||||
| 4504 | typename Base::ConstructFromTransactionBase aConstructionTag) | ||||
| 4505 | : Base{std::move(aTransaction), std::move(aObjectStoreMetadata), | ||||
| 4506 | std::move(aIndexMetadata), aDirection, aConstructionTag}, | ||||
| 4507 | KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {} | ||||
| 4508 | |||||
| 4509 | Cursor(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4510 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | ||||
| 4511 | typename Base::Direction aDirection, | ||||
| 4512 | typename Base::ConstructFromTransactionBase aConstructionTag) | ||||
| 4513 | : Base{std::move(aTransaction), std::move(aObjectStoreMetadata), | ||||
| 4514 | aDirection, aConstructionTag}, | ||||
| 4515 | KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {} | ||||
| 4516 | |||||
| 4517 | // Must call SendResponseInternal! | ||||
| 4518 | bool SendResponse(const CursorResponse& aResponse) = delete; | ||||
| 4519 | |||||
| 4520 | private: | ||||
| 4521 | void SetOptionalKeyRange(const Maybe<SerializedKeyRange>& aOptionalKeyRange, | ||||
| 4522 | bool* aOpen); | ||||
| 4523 | |||||
| 4524 | bool VerifyRequestParams(const CursorRequestParams& aParams, | ||||
| 4525 | const CursorPosition<CursorType>& aPosition) const; | ||||
| 4526 | |||||
| 4527 | ~Cursor() final = default; | ||||
| 4528 | }; | ||||
| 4529 | |||||
| 4530 | template <IDBCursorType CursorType> | ||||
| 4531 | class Cursor<CursorType>::CursorOpBase | ||||
| 4532 | : public TransactionDatabaseOperationBase { | ||||
| 4533 | friend class CursorOpBaseHelperBase<CursorType>; | ||||
| 4534 | |||||
| 4535 | protected: | ||||
| 4536 | RefPtr<Cursor> mCursor; | ||||
| 4537 | FilesArrayT<CursorType> mFiles; // TODO: Consider removing this member | ||||
| 4538 | // entirely if we are no value cursor. | ||||
| 4539 | |||||
| 4540 | CursorResponse mResponse; | ||||
| 4541 | |||||
| 4542 | #ifdef DEBUG1 | ||||
| 4543 | bool mResponseSent; | ||||
| 4544 | #endif | ||||
| 4545 | |||||
| 4546 | protected: | ||||
| 4547 | explicit CursorOpBase(Cursor* aCursor, const int64_t aRequestId) | ||||
| 4548 | : TransactionDatabaseOperationBase(aCursor->mTransaction.clonePtr(), | ||||
| 4549 | /* aRequestId */ aRequestId), | ||||
| 4550 | mCursor(aCursor) | ||||
| 4551 | #ifdef DEBUG1 | ||||
| 4552 | , | ||||
| 4553 | mResponseSent(false) | ||||
| 4554 | #endif | ||||
| 4555 | { | ||||
| 4556 | AssertIsOnBackgroundThread(); | ||||
| 4557 | MOZ_ASSERT(aCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4557); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCursor" ")" ); do { MOZ_CrashSequence(__null, 4557); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4558 | } | ||||
| 4559 | |||||
| 4560 | ~CursorOpBase() override = default; | ||||
| 4561 | |||||
| 4562 | bool SendFailureResult(const TransactionOpResult& aResult) final; | ||||
| 4563 | TransactionOpResult SendSuccessResult() final; | ||||
| 4564 | |||||
| 4565 | void Cleanup() override; | ||||
| 4566 | }; | ||||
| 4567 | |||||
| 4568 | template <IDBCursorType CursorType> | ||||
| 4569 | class OpenOpHelper; | ||||
| 4570 | |||||
| 4571 | using ResponseSizeOrError = Result<size_t, nsresult>; | ||||
| 4572 | |||||
| 4573 | template <IDBCursorType CursorType> | ||||
| 4574 | class CursorOpBaseHelperBase { | ||||
| 4575 | public: | ||||
| 4576 | explicit CursorOpBaseHelperBase( | ||||
| 4577 | typename Cursor<CursorType>::CursorOpBase& aOp) | ||||
| 4578 | : mOp{aOp} {} | ||||
| 4579 | |||||
| 4580 | ResponseSizeOrError PopulateResponseFromStatement(mozIStorageStatement* aStmt, | ||||
| 4581 | bool aInitializeResponse, | ||||
| 4582 | Key* const aOptOutSortKey); | ||||
| 4583 | |||||
| 4584 | void PopulateExtraResponses(mozIStorageStatement* aStmt, | ||||
| 4585 | uint32_t aMaxExtraCount, | ||||
| 4586 | const size_t aInitialResponseSize, | ||||
| 4587 | const nsACString& aOperation, | ||||
| 4588 | Key* const aOptPreviousSortKey); | ||||
| 4589 | |||||
| 4590 | protected: | ||||
| 4591 | Cursor<CursorType>& GetCursor() { | ||||
| 4592 | MOZ_ASSERT(mOp.mCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOp.mCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOp.mCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOp.mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4592); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mCursor" ")"); do { MOZ_CrashSequence(__null, 4592); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4593 | return *mOp.mCursor; | ||||
| 4594 | } | ||||
| 4595 | |||||
| 4596 | void SetResponse(CursorResponse aResponse) { | ||||
| 4597 | mOp.mResponse = std::move(aResponse); | ||||
| 4598 | } | ||||
| 4599 | |||||
| 4600 | protected: | ||||
| 4601 | typename Cursor<CursorType>::CursorOpBase& mOp; | ||||
| 4602 | }; | ||||
| 4603 | |||||
| 4604 | class CommonOpenOpHelperBase { | ||||
| 4605 | protected: | ||||
| 4606 | static void AppendConditionClause(const nsACString& aColumnName, | ||||
| 4607 | const nsACString& aStatementParameterName, | ||||
| 4608 | bool aLessThan, bool aEquals, | ||||
| 4609 | nsCString& aResult); | ||||
| 4610 | }; | ||||
| 4611 | |||||
| 4612 | template <IDBCursorType CursorType> | ||||
| 4613 | class CommonOpenOpHelper : public CursorOpBaseHelperBase<CursorType>, | ||||
| 4614 | protected CommonOpenOpHelperBase { | ||||
| 4615 | public: | ||||
| 4616 | explicit CommonOpenOpHelper(typename Cursor<CursorType>::OpenOp& aOp) | ||||
| 4617 | : CursorOpBaseHelperBase<CursorType>{aOp} {} | ||||
| 4618 | |||||
| 4619 | protected: | ||||
| 4620 | using CursorOpBaseHelperBase<CursorType>::GetCursor; | ||||
| 4621 | using CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses; | ||||
| 4622 | using CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement; | ||||
| 4623 | using CursorOpBaseHelperBase<CursorType>::SetResponse; | ||||
| 4624 | |||||
| 4625 | const Maybe<SerializedKeyRange>& GetOptionalKeyRange() const { | ||||
| 4626 | // This downcast is safe, since we initialized mOp from an OpenOp in the | ||||
| 4627 | // ctor. | ||||
| 4628 | return static_cast<typename Cursor<CursorType>::OpenOp&>(this->mOp) | ||||
| 4629 | .mOptionalKeyRange; | ||||
| 4630 | } | ||||
| 4631 | |||||
| 4632 | nsresult ProcessStatementSteps(mozIStorageStatement* aStmt); | ||||
| 4633 | }; | ||||
| 4634 | |||||
| 4635 | template <IDBCursorType CursorType> | ||||
| 4636 | class ObjectStoreOpenOpHelper : protected CommonOpenOpHelper<CursorType> { | ||||
| 4637 | public: | ||||
| 4638 | using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper; | ||||
| 4639 | |||||
| 4640 | protected: | ||||
| 4641 | using CommonOpenOpHelper<CursorType>::GetCursor; | ||||
| 4642 | using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange; | ||||
| 4643 | using CommonOpenOpHelper<CursorType>::AppendConditionClause; | ||||
| 4644 | |||||
| 4645 | void PrepareKeyConditionClauses(const nsACString& aDirectionClause, | ||||
| 4646 | const nsACString& aQueryStart); | ||||
| 4647 | }; | ||||
| 4648 | |||||
| 4649 | template <IDBCursorType CursorType> | ||||
| 4650 | class IndexOpenOpHelper : protected CommonOpenOpHelper<CursorType> { | ||||
| 4651 | public: | ||||
| 4652 | using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper; | ||||
| 4653 | |||||
| 4654 | protected: | ||||
| 4655 | using CommonOpenOpHelper<CursorType>::GetCursor; | ||||
| 4656 | using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange; | ||||
| 4657 | using CommonOpenOpHelper<CursorType>::AppendConditionClause; | ||||
| 4658 | |||||
| 4659 | void PrepareIndexKeyConditionClause( | ||||
| 4660 | const nsACString& aDirectionClause, | ||||
| 4661 | const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart); | ||||
| 4662 | }; | ||||
| 4663 | |||||
| 4664 | template <> | ||||
| 4665 | class OpenOpHelper<IDBCursorType::ObjectStore> | ||||
| 4666 | : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStore> { | ||||
| 4667 | public: | ||||
| 4668 | using ObjectStoreOpenOpHelper< | ||||
| 4669 | IDBCursorType::ObjectStore>::ObjectStoreOpenOpHelper; | ||||
| 4670 | |||||
| 4671 | nsresult DoDatabaseWork(DatabaseConnection* aConnection); | ||||
| 4672 | }; | ||||
| 4673 | |||||
| 4674 | template <> | ||||
| 4675 | class OpenOpHelper<IDBCursorType::ObjectStoreKey> | ||||
| 4676 | : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStoreKey> { | ||||
| 4677 | public: | ||||
| 4678 | using ObjectStoreOpenOpHelper< | ||||
| 4679 | IDBCursorType::ObjectStoreKey>::ObjectStoreOpenOpHelper; | ||||
| 4680 | |||||
| 4681 | nsresult DoDatabaseWork(DatabaseConnection* aConnection); | ||||
| 4682 | }; | ||||
| 4683 | |||||
| 4684 | template <> | ||||
| 4685 | class OpenOpHelper<IDBCursorType::Index> | ||||
| 4686 | : IndexOpenOpHelper<IDBCursorType::Index> { | ||||
| 4687 | private: | ||||
| 4688 | void PrepareKeyConditionClauses(const nsACString& aDirectionClause, | ||||
| 4689 | nsAutoCString aQueryStart) { | ||||
| 4690 | PrepareIndexKeyConditionClause(aDirectionClause, "index_table."_ns, | ||||
| 4691 | std::move(aQueryStart)); | ||||
| 4692 | } | ||||
| 4693 | |||||
| 4694 | public: | ||||
| 4695 | using IndexOpenOpHelper<IDBCursorType::Index>::IndexOpenOpHelper; | ||||
| 4696 | |||||
| 4697 | nsresult DoDatabaseWork(DatabaseConnection* aConnection); | ||||
| 4698 | }; | ||||
| 4699 | |||||
| 4700 | template <> | ||||
| 4701 | class OpenOpHelper<IDBCursorType::IndexKey> | ||||
| 4702 | : IndexOpenOpHelper<IDBCursorType::IndexKey> { | ||||
| 4703 | private: | ||||
| 4704 | void PrepareKeyConditionClauses(const nsACString& aDirectionClause, | ||||
| 4705 | nsAutoCString aQueryStart) { | ||||
| 4706 | PrepareIndexKeyConditionClause(aDirectionClause, ""_ns, | ||||
| 4707 | std::move(aQueryStart)); | ||||
| 4708 | } | ||||
| 4709 | |||||
| 4710 | public: | ||||
| 4711 | using IndexOpenOpHelper<IDBCursorType::IndexKey>::IndexOpenOpHelper; | ||||
| 4712 | |||||
| 4713 | nsresult DoDatabaseWork(DatabaseConnection* aConnection); | ||||
| 4714 | }; | ||||
| 4715 | |||||
| 4716 | template <IDBCursorType CursorType> | ||||
| 4717 | class Cursor<CursorType>::OpenOp final : public CursorOpBase { | ||||
| 4718 | friend class Cursor<CursorType>; | ||||
| 4719 | friend class CommonOpenOpHelper<CursorType>; | ||||
| 4720 | |||||
| 4721 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 4722 | |||||
| 4723 | using CursorOpBase::mCursor; | ||||
| 4724 | using CursorOpBase::mResponse; | ||||
| 4725 | |||||
| 4726 | // Only created by Cursor. | ||||
| 4727 | OpenOp(Cursor* const aCursor, const int64_t aRequestId, | ||||
| 4728 | const Maybe<SerializedKeyRange>& aOptionalKeyRange) | ||||
| 4729 | : CursorOpBase(aCursor, aRequestId), | ||||
| 4730 | mOptionalKeyRange(aOptionalKeyRange) {} | ||||
| 4731 | |||||
| 4732 | // Reference counted. | ||||
| 4733 | ~OpenOp() override = default; | ||||
| 4734 | |||||
| 4735 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4736 | }; | ||||
| 4737 | |||||
| 4738 | template <IDBCursorType CursorType> | ||||
| 4739 | class Cursor<CursorType>::ContinueOp final | ||||
| 4740 | : public Cursor<CursorType>::CursorOpBase { | ||||
| 4741 | friend class Cursor<CursorType>; | ||||
| 4742 | |||||
| 4743 | using CursorOpBase::mCursor; | ||||
| 4744 | using CursorOpBase::mResponse; | ||||
| 4745 | const CursorRequestParams mParams; | ||||
| 4746 | |||||
| 4747 | // Only created by Cursor. | ||||
| 4748 | ContinueOp(Cursor* const aCursor, int64_t aRequestId, | ||||
| 4749 | CursorRequestParams aParams, CursorPosition<CursorType> aPosition) | ||||
| 4750 | : CursorOpBase(aCursor, aRequestId), | ||||
| 4751 | mParams(std::move(aParams)), | ||||
| 4752 | mCurrentPosition{std::move(aPosition)} { | ||||
| 4753 | MOZ_ASSERT(mParams.type() != CursorRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mParams.type() != CursorRequestParams::T__None)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mParams.type() != CursorRequestParams::T__None))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mParams.type() != CursorRequestParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4753) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mParams.type() != CursorRequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 4753); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4754 | } | ||||
| 4755 | |||||
| 4756 | // Reference counted. | ||||
| 4757 | ~ContinueOp() override = default; | ||||
| 4758 | |||||
| 4759 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4760 | |||||
| 4761 | const CursorPosition<CursorType> mCurrentPosition; | ||||
| 4762 | }; | ||||
| 4763 | |||||
| 4764 | class Utils final : public PBackgroundIndexedDBUtilsParent { | ||||
| 4765 | #ifdef DEBUG1 | ||||
| 4766 | bool mActorDestroyed; | ||||
| 4767 | #endif | ||||
| 4768 | |||||
| 4769 | public: | ||||
| 4770 | Utils(); | ||||
| 4771 | |||||
| 4772 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::Utils)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<mozilla::dom::indexedDB::Utils> , "Reference-counted class " "mozilla::dom::indexedDB::Utils" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4772 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("mozilla::dom::indexedDB::Utils"), (uint32_t)(sizeof(*this ))); return (nsrefcnt)count; } MozExternalRefCountType Release (void) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4772 ); __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: | ||||
| 4773 | |||||
| 4774 | private: | ||||
| 4775 | // Reference counted. | ||||
| 4776 | ~Utils() override; | ||||
| 4777 | |||||
| 4778 | // IPDL methods are only called by IPDL. | ||||
| 4779 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 4780 | |||||
| 4781 | mozilla::ipc::IPCResult RecvDeleteMe() override; | ||||
| 4782 | |||||
| 4783 | mozilla::ipc::IPCResult RecvGetFileReferences( | ||||
| 4784 | const PersistenceType& aPersistenceType, const nsACString& aOrigin, | ||||
| 4785 | const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt, | ||||
| 4786 | int32_t* aDBRefCnt, bool* aResult) override; | ||||
| 4787 | |||||
| 4788 | mozilla::ipc::IPCResult RecvDoMaintenance( | ||||
| 4789 | DoMaintenanceResolver&& aResolver) override; | ||||
| 4790 | }; | ||||
| 4791 | |||||
| 4792 | /******************************************************************************* | ||||
| 4793 | * Other class declarations | ||||
| 4794 | ******************************************************************************/ | ||||
| 4795 | |||||
| 4796 | struct DatabaseActorInfo final { | ||||
| 4797 | friend mozilla::DefaultDelete<DatabaseActorInfo>; | ||||
| 4798 | |||||
| 4799 | SafeRefPtr<FullDatabaseMetadata> mMetadata; | ||||
| 4800 | // We don't use LinkedList<CheckedUnsafePtr<Database>> because | ||||
| 4801 | // CheckedUnsafePtr is not suitable for use within LinkedList. While it's | ||||
| 4802 | // theoretically possible to adapt LinkedList to support it, doing so would | ||||
| 4803 | // introduce unnecessary overhead. Instead, we use a simpler and more | ||||
| 4804 | // efficient approach. Each Database instance asserts !isInList() in its | ||||
| 4805 | // destructor to catch dangling pointer issues. | ||||
| 4806 | LinkedList<Database> mLiveDatabases; | ||||
| 4807 | RefPtr<FactoryOp> mWaitingFactoryOp; | ||||
| 4808 | |||||
| 4809 | DatabaseActorInfo(SafeRefPtr<FullDatabaseMetadata> aMetadata, | ||||
| 4810 | NotNull<Database*> aDatabase) | ||||
| 4811 | : mMetadata(std::move(aMetadata)) { | ||||
| 4812 | MOZ_COUNT_CTOR(DatabaseActorInfo)do { static_assert(std::is_class_v<DatabaseActorInfo>, "Token '" "DatabaseActorInfo" "' is not a class type."); static_assert (!std::is_base_of_v<nsISupports, DatabaseActorInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseActorInfo" , sizeof(*this)); } while (0); | ||||
| 4813 | |||||
| 4814 | mLiveDatabases.insertBack(aDatabase); | ||||
| 4815 | } | ||||
| 4816 | |||||
| 4817 | private: | ||||
| 4818 | ~DatabaseActorInfo() { | ||||
| 4819 | MOZ_ASSERT(mLiveDatabases.isEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLiveDatabases.isEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLiveDatabases.isEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mLiveDatabases.isEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4819) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLiveDatabases.isEmpty()" ")"); do { MOZ_CrashSequence(__null, 4819); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4820 | MOZ_ASSERT(!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4820) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases()" ")"); do { MOZ_CrashSequence(__null, 4820); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4821 | |||||
| 4822 | MOZ_COUNT_DTOR(DatabaseActorInfo)do { static_assert(std::is_class_v<DatabaseActorInfo>, "Token '" "DatabaseActorInfo" "' is not a class type."); static_assert (!std::is_base_of_v<nsISupports, DatabaseActorInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseActorInfo" , sizeof(*this)); } while (0); | ||||
| 4823 | } | ||||
| 4824 | }; | ||||
| 4825 | |||||
| 4826 | class DatabaseLoggingInfo final { | ||||
| 4827 | #ifdef DEBUG1 | ||||
| 4828 | // Just for potential warnings. | ||||
| 4829 | friend class Factory; | ||||
| 4830 | #endif | ||||
| 4831 | |||||
| 4832 | LoggingInfo mLoggingInfo; | ||||
| 4833 | |||||
| 4834 | public: | ||||
| 4835 | explicit DatabaseLoggingInfo(const LoggingInfo& aLoggingInfo) | ||||
| 4836 | : mLoggingInfo(aLoggingInfo) { | ||||
| 4837 | AssertIsOnBackgroundThread(); | ||||
| 4838 | MOZ_ASSERT(aLoggingInfo.nextTransactionSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aLoggingInfo.nextTransactionSerialNumber())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aLoggingInfo.nextTransactionSerialNumber()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aLoggingInfo.nextTransactionSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4838) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextTransactionSerialNumber()" ")"); do { MOZ_CrashSequence(__null, 4838); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4839 | MOZ_ASSERT(aLoggingInfo.nextVersionChangeTransactionSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aLoggingInfo.nextVersionChangeTransactionSerialNumber ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aLoggingInfo.nextVersionChangeTransactionSerialNumber ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aLoggingInfo.nextVersionChangeTransactionSerialNumber()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4839); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextVersionChangeTransactionSerialNumber()" ")"); do { MOZ_CrashSequence(__null, 4839); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4840 | MOZ_ASSERT(aLoggingInfo.nextRequestSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aLoggingInfo.nextRequestSerialNumber())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aLoggingInfo.nextRequestSerialNumber()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aLoggingInfo.nextRequestSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4840) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextRequestSerialNumber()" ")"); do { MOZ_CrashSequence(__null, 4840); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4841 | } | ||||
| 4842 | |||||
| 4843 | const nsID& Id() const { | ||||
| 4844 | AssertIsOnBackgroundThread(); | ||||
| 4845 | |||||
| 4846 | return mLoggingInfo.backgroundChildLoggingId(); | ||||
| 4847 | } | ||||
| 4848 | |||||
| 4849 | int64_t NextTransactionSN(IDBTransaction::Mode aMode) { | ||||
| 4850 | AssertIsOnBackgroundThread(); | ||||
| 4851 | MOZ_ASSERT(mLoggingInfo.nextTransactionSerialNumber() < INT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4851) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L)" ")"); do { MOZ_CrashSequence(__null, 4851); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4852 | MOZ_ASSERT(mLoggingInfo.nextVersionChangeTransactionSerialNumber() >do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLoggingInfo.nextVersionChangeTransactionSerialNumber () > (-9223372036854775807L -1))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLoggingInfo.nextVersionChangeTransactionSerialNumber () > (-9223372036854775807L -1)))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4853) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)" ")"); do { MOZ_CrashSequence(__null, 4853); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 4853 | INT64_MIN)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLoggingInfo.nextVersionChangeTransactionSerialNumber () > (-9223372036854775807L -1))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLoggingInfo.nextVersionChangeTransactionSerialNumber () > (-9223372036854775807L -1)))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4853) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)" ")"); do { MOZ_CrashSequence(__null, 4853); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4854 | |||||
| 4855 | if (aMode == IDBTransaction::Mode::VersionChange) { | ||||
| 4856 | return mLoggingInfo.nextVersionChangeTransactionSerialNumber()--; | ||||
| 4857 | } | ||||
| 4858 | |||||
| 4859 | return mLoggingInfo.nextTransactionSerialNumber()++; | ||||
| 4860 | } | ||||
| 4861 | |||||
| 4862 | uint64_t NextRequestSN() { | ||||
| 4863 | AssertIsOnBackgroundThread(); | ||||
| 4864 | MOZ_ASSERT(mLoggingInfo.nextRequestSerialNumber() < UINT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4864) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL)" ")"); do { MOZ_CrashSequence(__null, 4864); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4865 | |||||
| 4866 | return mLoggingInfo.nextRequestSerialNumber()++; | ||||
| 4867 | } | ||||
| 4868 | |||||
| 4869 | NS_INLINE_DECL_REFCOUNTING(DatabaseLoggingInfo)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<DatabaseLoggingInfo>, "Reference-counted class " "DatabaseLoggingInfo" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4869); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4869 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); _mOwningThread.AssertOwnership("DatabaseLoggingInfo" " not thread-safe"); ++mRefCnt; NS_LogAddRef((this), (mRefCnt ), ("DatabaseLoggingInfo"), (uint32_t)(sizeof(*this))); return mRefCnt; } MozExternalRefCountType Release(void) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4869); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4869 ); __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: | ||||
| 4870 | |||||
| 4871 | private: | ||||
| 4872 | ~DatabaseLoggingInfo(); | ||||
| 4873 | }; | ||||
| 4874 | |||||
| 4875 | class QuotaClient final : public mozilla::dom::quota::Client { | ||||
| 4876 | friend class GetDatabasesOp; | ||||
| 4877 | |||||
| 4878 | static QuotaClient* sInstance; | ||||
| 4879 | |||||
| 4880 | nsCOMPtr<nsIEventTarget> mBackgroundThread; | ||||
| 4881 | nsCOMPtr<nsITimer> mDeleteTimer; | ||||
| 4882 | nsTArray<RefPtr<Maintenance>> mMaintenanceQueue; | ||||
| 4883 | RefPtr<Maintenance> mCurrentMaintenance; | ||||
| 4884 | RefPtr<nsThreadPool> mMaintenanceThreadPool; | ||||
| 4885 | nsClassHashtable<nsRefPtrHashKey<DatabaseFileManager>, nsTArray<int64_t>> | ||||
| 4886 | mPendingDeleteInfos; | ||||
| 4887 | |||||
| 4888 | public: | ||||
| 4889 | QuotaClient(); | ||||
| 4890 | |||||
| 4891 | static QuotaClient* GetInstance() { | ||||
| 4892 | AssertIsOnBackgroundThread(); | ||||
| 4893 | |||||
| 4894 | return sInstance; | ||||
| 4895 | } | ||||
| 4896 | |||||
| 4897 | nsIEventTarget* BackgroundThread() const { | ||||
| 4898 | MOZ_ASSERT(mBackgroundThread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mBackgroundThread)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mBackgroundThread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mBackgroundThread" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4898) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundThread" ")"); do { MOZ_CrashSequence(__null, 4898); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4899 | return mBackgroundThread; | ||||
| 4900 | } | ||||
| 4901 | |||||
| 4902 | nsresult AsyncDeleteFile(DatabaseFileManager* aFileManager, int64_t aFileId); | ||||
| 4903 | |||||
| 4904 | nsresult FlushPendingFileDeletions(); | ||||
| 4905 | |||||
| 4906 | RefPtr<BoolPromise> DoMaintenance(); | ||||
| 4907 | |||||
| 4908 | RefPtr<Maintenance> GetCurrentMaintenance() const { | ||||
| 4909 | return mCurrentMaintenance; | ||||
| 4910 | } | ||||
| 4911 | |||||
| 4912 | void NoteFinishedMaintenance(Maintenance* aMaintenance) { | ||||
| 4913 | AssertIsOnBackgroundThread(); | ||||
| 4914 | MOZ_ASSERT(aMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMaintenance)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMaintenance))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aMaintenance", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4914); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMaintenance" ")"); do { MOZ_CrashSequence(__null, 4914); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4915 | MOZ_ASSERT(mCurrentMaintenance == aMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCurrentMaintenance == aMaintenance)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCurrentMaintenance == aMaintenance ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mCurrentMaintenance == aMaintenance", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4915); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentMaintenance == aMaintenance" ")"); do { MOZ_CrashSequence(__null, 4915); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4916 | |||||
| 4917 | mCurrentMaintenance = nullptr; | ||||
| 4918 | |||||
| 4919 | QuotaManager::MaybeRecordQuotaClientShutdownStep(quota::Client::IDB, | ||||
| 4920 | "Maintenance finished"_ns); | ||||
| 4921 | |||||
| 4922 | ProcessMaintenanceQueue(); | ||||
| 4923 | } | ||||
| 4924 | |||||
| 4925 | nsThreadPool* GetOrCreateThreadPool(); | ||||
| 4926 | |||||
| 4927 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::QuotaClient,public: MozExternalRefCountType AddRef(void) override { static_assert (!std::is_destructible_v<mozilla::dom::indexedDB::QuotaClient >, "Reference-counted class " "mozilla::dom::indexedDB::QuotaClient" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4928); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4928 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("mozilla::dom::indexedDB::QuotaClient"), (uint32_t)(sizeof (*this))); return (nsrefcnt)count; } MozExternalRefCountType Release (void) override { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4928); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4928 ); __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: | ||||
| 4928 | override)public: MozExternalRefCountType AddRef(void) override { static_assert (!std::is_destructible_v<mozilla::dom::indexedDB::QuotaClient >, "Reference-counted class " "mozilla::dom::indexedDB::QuotaClient" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4928); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4928 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("mozilla::dom::indexedDB::QuotaClient"), (uint32_t)(sizeof (*this))); return (nsrefcnt)count; } MozExternalRefCountType Release (void) override { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 4928); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4928 ); __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: | ||||
| 4929 | |||||
| 4930 | mozilla::dom::quota::Client::Type GetType() override; | ||||
| 4931 | |||||
| 4932 | nsresult UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) override; | ||||
| 4933 | |||||
| 4934 | nsresult UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) override; | ||||
| 4935 | |||||
| 4936 | Result<UsageInfo, nsresult> InitOrigin(PersistenceType aPersistenceType, | ||||
| 4937 | const OriginMetadata& aOriginMetadata, | ||||
| 4938 | const AtomicBool& aCanceled) override; | ||||
| 4939 | |||||
| 4940 | nsresult InitOriginWithoutTracking(PersistenceType aPersistenceType, | ||||
| 4941 | const OriginMetadata& aOriginMetadata, | ||||
| 4942 | const AtomicBool& aCanceled) override; | ||||
| 4943 | |||||
| 4944 | Result<UsageInfo, nsresult> GetUsageForOrigin( | ||||
| 4945 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | ||||
| 4946 | const AtomicBool& aCanceled) override; | ||||
| 4947 | |||||
| 4948 | void OnOriginClearCompleted(const OriginMetadata& aOriginMetadata) override; | ||||
| 4949 | |||||
| 4950 | void OnRepositoryClearCompleted(PersistenceType aPersistenceType) override; | ||||
| 4951 | |||||
| 4952 | void ReleaseIOThreadObjects() override; | ||||
| 4953 | |||||
| 4954 | void AbortOperationsForLocks( | ||||
| 4955 | const DirectoryLockIdTable& aDirectoryLockIds) override; | ||||
| 4956 | |||||
| 4957 | void AbortOperationsForProcess(ContentParentId aContentParentId) override; | ||||
| 4958 | |||||
| 4959 | void AbortAllOperations() override; | ||||
| 4960 | |||||
| 4961 | void StartIdleMaintenance() override; | ||||
| 4962 | |||||
| 4963 | void StopIdleMaintenance() override; | ||||
| 4964 | |||||
| 4965 | private: | ||||
| 4966 | ~QuotaClient() override; | ||||
| 4967 | |||||
| 4968 | void InitiateShutdown() override; | ||||
| 4969 | bool IsShutdownCompleted() const override; | ||||
| 4970 | nsCString GetShutdownStatus() const override; | ||||
| 4971 | void ForceKillActors() override; | ||||
| 4972 | void FinalizeShutdown() override; | ||||
| 4973 | |||||
| 4974 | static void DeleteTimerCallback(nsITimer* aTimer, void* aClosure); | ||||
| 4975 | |||||
| 4976 | void AbortAllMaintenances(); | ||||
| 4977 | |||||
| 4978 | Result<nsCOMPtr<nsIFile>, nsresult> GetDirectory( | ||||
| 4979 | const OriginMetadata& aOriginMetadata); | ||||
| 4980 | |||||
| 4981 | struct SubdirectoriesToProcessAndDatabaseFilenames { | ||||
| 4982 | AutoTArray<nsString, 20> subdirsToProcess; | ||||
| 4983 | nsTHashSet<nsString> databaseFilenames{20}; | ||||
| 4984 | }; | ||||
| 4985 | |||||
| 4986 | struct SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames { | ||||
| 4987 | AutoTArray<nsString, 20> subdirsToProcess; | ||||
| 4988 | nsTHashSet<nsString> databaseFilenames{20}; | ||||
| 4989 | nsTHashSet<nsString> obsoleteFilenames{20}; | ||||
| 4990 | }; | ||||
| 4991 | |||||
| 4992 | enum class ObsoleteFilenamesHandling { Include, Omit }; | ||||
| 4993 | |||||
| 4994 | template <ObsoleteFilenamesHandling ObsoleteFilenames> | ||||
| 4995 | using GetDatabaseFilenamesResult = std::conditional_t< | ||||
| 4996 | ObsoleteFilenames == ObsoleteFilenamesHandling::Include, | ||||
| 4997 | SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames, | ||||
| 4998 | SubdirectoriesToProcessAndDatabaseFilenames>; | ||||
| 4999 | |||||
| 5000 | // Returns a two-part or three-part structure: | ||||
| 5001 | // | ||||
| 5002 | // The first part is an array of subdirectories to process. | ||||
| 5003 | // | ||||
| 5004 | // The second part is a hashtable of database filenames. | ||||
| 5005 | // | ||||
| 5006 | // When ObsoleteFilenames is ObsoleteFilenamesHandling::Include, will also | ||||
| 5007 | // collect files based on the marker files. For now, | ||||
| 5008 | // GetUsageForOriginInternal() is the only consumer of this result because it | ||||
| 5009 | // checks those unfinished deletion and clean them up after that. | ||||
| 5010 | template <ObsoleteFilenamesHandling ObsoleteFilenames = | ||||
| 5011 | ObsoleteFilenamesHandling::Omit> | ||||
| 5012 | Result<GetDatabaseFilenamesResult<ObsoleteFilenames>, | ||||
| 5013 | nsresult> static GetDatabaseFilenames(nsIFile& aDirectory, | ||||
| 5014 | const AtomicBool& aCanceled); | ||||
| 5015 | |||||
| 5016 | nsresult GetUsageForOriginInternal(PersistenceType aPersistenceType, | ||||
| 5017 | const OriginMetadata& aOriginMetadata, | ||||
| 5018 | const AtomicBool& aCanceled, | ||||
| 5019 | bool aInitializing, UsageInfo* aUsageInfo); | ||||
| 5020 | |||||
| 5021 | // Runs on the PBackground thread. Checks to see if there's a queued | ||||
| 5022 | // Maintenance to run. | ||||
| 5023 | void ProcessMaintenanceQueue(); | ||||
| 5024 | }; | ||||
| 5025 | |||||
| 5026 | class DeleteFilesRunnable final : public Runnable { | ||||
| 5027 | using ClientDirectoryLock = mozilla::dom::quota::ClientDirectoryLock; | ||||
| 5028 | |||||
| 5029 | enum State { | ||||
| 5030 | // Just created on the PBackground thread. Next step is | ||||
| 5031 | // State_DirectoryOpenPending. | ||||
| 5032 | State_Initial, | ||||
| 5033 | |||||
| 5034 | // Waiting for directory open allowed on the main thread. The next step is | ||||
| 5035 | // State_DatabaseWorkOpen. | ||||
| 5036 | State_DirectoryOpenPending, | ||||
| 5037 | |||||
| 5038 | // Waiting to do/doing work on the QuotaManager IO thread. The next step is | ||||
| 5039 | // State_UnblockingOpen. | ||||
| 5040 | State_DatabaseWorkOpen, | ||||
| 5041 | |||||
| 5042 | // Notifying the QuotaManager that it can proceed to the next operation on | ||||
| 5043 | // the main thread. Next step is State_Completed. | ||||
| 5044 | State_UnblockingOpen, | ||||
| 5045 | |||||
| 5046 | // All done. | ||||
| 5047 | State_Completed | ||||
| 5048 | }; | ||||
| 5049 | |||||
| 5050 | nsCOMPtr<nsIEventTarget> mOwningEventTarget; | ||||
| 5051 | SafeRefPtr<DatabaseFileManager> mFileManager; | ||||
| 5052 | ClientDirectoryLockHandle mDirectoryLockHandle; | ||||
| 5053 | nsTArray<int64_t> mFileIds; | ||||
| 5054 | State mState; | ||||
| 5055 | DEBUGONLY(bool mDEBUGCountsAsPending = false)bool mDEBUGCountsAsPending = false; | ||||
| 5056 | |||||
| 5057 | static uint64_t sPendingRunnables; | ||||
| 5058 | |||||
| 5059 | public: | ||||
| 5060 | DeleteFilesRunnable(SafeRefPtr<DatabaseFileManager> aFileManager, | ||||
| 5061 | nsTArray<int64_t>&& aFileIds); | ||||
| 5062 | |||||
| 5063 | void RunImmediately(); | ||||
| 5064 | |||||
| 5065 | static bool IsDeletionPending() { return sPendingRunnables > 0; } | ||||
| 5066 | |||||
| 5067 | private: | ||||
| 5068 | #ifdef DEBUG1 | ||||
| 5069 | ~DeleteFilesRunnable(); | ||||
| 5070 | #else | ||||
| 5071 | ~DeleteFilesRunnable() = default; | ||||
| 5072 | #endif | ||||
| 5073 | |||||
| 5074 | void Open(); | ||||
| 5075 | |||||
| 5076 | void DoDatabaseWork(); | ||||
| 5077 | |||||
| 5078 | void Finish(); | ||||
| 5079 | |||||
| 5080 | void UnblockOpen(); | ||||
| 5081 | |||||
| 5082 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 5083 | |||||
| 5084 | void DirectoryLockAcquired(ClientDirectoryLockHandle aLockHandle); | ||||
| 5085 | |||||
| 5086 | void DirectoryLockFailed(); | ||||
| 5087 | }; | ||||
| 5088 | |||||
| 5089 | class Maintenance final : public Runnable { | ||||
| 5090 | struct DirectoryInfo final { | ||||
| 5091 | InitializedOnce<const OriginMetadata> mOriginMetadata; | ||||
| 5092 | InitializedOnce<const nsTArray<nsString>> mDatabasePaths; | ||||
| 5093 | const PersistenceType mPersistenceType; | ||||
| 5094 | |||||
| 5095 | DirectoryInfo(PersistenceType aPersistenceType, | ||||
| 5096 | OriginMetadata aOriginMetadata, | ||||
| 5097 | nsTArray<nsString>&& aDatabasePaths); | ||||
| 5098 | |||||
| 5099 | DirectoryInfo(const DirectoryInfo& aOther) = delete; | ||||
| 5100 | DirectoryInfo(DirectoryInfo&& aOther) = delete; | ||||
| 5101 | |||||
| 5102 | ~DirectoryInfo() { MOZ_COUNT_DTOR(Maintenance::DirectoryInfo)do { static_assert(std::is_class_v<Maintenance::DirectoryInfo >, "Token '" "Maintenance::DirectoryInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, Maintenance ::DirectoryInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "Maintenance::DirectoryInfo" , sizeof(*this)); } while (0); } | ||||
| 5103 | }; | ||||
| 5104 | |||||
| 5105 | enum class State { | ||||
| 5106 | // Newly created on the PBackground thread. Will proceed immediately or be | ||||
| 5107 | // added to the maintenance queue. The next step is either | ||||
| 5108 | // DirectoryOpenPending if IndexedDatabaseManager is running, or | ||||
| 5109 | // CreateIndexedDatabaseManager if not. | ||||
| 5110 | Initial = 0, | ||||
| 5111 | |||||
| 5112 | // Create IndexedDatabaseManager on the main thread. The next step is either | ||||
| 5113 | // Finishing if IndexedDatabaseManager initialization fails, or | ||||
| 5114 | // IndexedDatabaseManagerOpen if initialization succeeds. | ||||
| 5115 | CreateIndexedDatabaseManager, | ||||
| 5116 | |||||
| 5117 | // Call OpenDirectory() on the PBackground thread. The next step is | ||||
| 5118 | // DirectoryOpenPending. | ||||
| 5119 | IndexedDatabaseManagerOpen, | ||||
| 5120 | |||||
| 5121 | // Waiting for directory open allowed on the PBackground thread. The next | ||||
| 5122 | // step is either Finishing if directory lock failed to acquire, or | ||||
| 5123 | // DirectoryWorkOpen if directory lock is acquired. | ||||
| 5124 | DirectoryOpenPending, | ||||
| 5125 | |||||
| 5126 | // Waiting to do/doing work on the QuotaManager IO thread. The next step is | ||||
| 5127 | // BeginDatabaseMaintenance. | ||||
| 5128 | DirectoryWorkOpen, | ||||
| 5129 | |||||
| 5130 | // Dispatching a runnable for each database on the PBackground thread. The | ||||
| 5131 | // next state is either WaitingForDatabaseMaintenancesToComplete if at least | ||||
| 5132 | // one runnable has been dispatched, or Finishing otherwise. | ||||
| 5133 | BeginDatabaseMaintenance, | ||||
| 5134 | |||||
| 5135 | // Waiting for DatabaseMaintenance to finish on maintenance thread pool. | ||||
| 5136 | // The next state is Finishing if the last runnable has finished. | ||||
| 5137 | WaitingForDatabaseMaintenancesToComplete, | ||||
| 5138 | |||||
| 5139 | // Waiting to finish/finishing on the PBackground thread. The next step is | ||||
| 5140 | // Completed. | ||||
| 5141 | Finishing, | ||||
| 5142 | |||||
| 5143 | // All done. | ||||
| 5144 | Complete | ||||
| 5145 | }; | ||||
| 5146 | |||||
| 5147 | RefPtr<QuotaClient> mQuotaClient; | ||||
| 5148 | MozPromiseHolder<BoolPromise> mPromiseHolder; | ||||
| 5149 | PRTime mStartTime; | ||||
| 5150 | RefPtr<UniversalDirectoryLock> mPendingDirectoryLock; | ||||
| 5151 | // The directory lock is normally dropped by BeginDatabaseMaintenance, but if | ||||
| 5152 | // something fails (in any method), the Finish method will do the cleanup. | ||||
| 5153 | RefPtr<UniversalDirectoryLock> mDirectoryLock; | ||||
| 5154 | nsTArray<nsCOMPtr<nsIRunnable>> mCompleteCallbacks; | ||||
| 5155 | nsTArray<DirectoryInfo> mDirectoryInfos; | ||||
| 5156 | nsTHashMap<nsStringHashKey, DatabaseMaintenance*> mDatabaseMaintenances; | ||||
| 5157 | nsresult mResultCode; | ||||
| 5158 | Atomic<bool> mAborted; | ||||
| 5159 | bool mOpenStorageForAllRepositoriesFailed; | ||||
| 5160 | State mState; | ||||
| 5161 | |||||
| 5162 | public: | ||||
| 5163 | explicit Maintenance(QuotaClient* aQuotaClient) | ||||
| 5164 | : Runnable("dom::indexedDB::Maintenance"), | ||||
| 5165 | mQuotaClient(aQuotaClient), | ||||
| 5166 | mStartTime(PR_Now()), | ||||
| 5167 | mResultCode(NS_OK), | ||||
| 5168 | mAborted(false), | ||||
| 5169 | mOpenStorageForAllRepositoriesFailed(false), | ||||
| 5170 | mState(State::Initial) { | ||||
| 5171 | AssertIsOnBackgroundThread(); | ||||
| 5172 | MOZ_ASSERT(aQuotaClient)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aQuotaClient)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aQuotaClient))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aQuotaClient", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5172); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaClient" ")"); do { MOZ_CrashSequence(__null, 5172); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5173 | MOZ_ASSERT(QuotaClient::GetInstance() == aQuotaClient)do { static_assert( mozilla::detail::AssertionConditionType< decltype(QuotaClient::GetInstance() == aQuotaClient)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(QuotaClient::GetInstance() == aQuotaClient))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("QuotaClient::GetInstance() == aQuotaClient" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5173) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "QuotaClient::GetInstance() == aQuotaClient" ")"); do { MOZ_CrashSequence(__null, 5173); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5174 | MOZ_ASSERT(mStartTime)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mStartTime)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mStartTime))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mStartTime", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mStartTime" ")"); do { MOZ_CrashSequence(__null, 5174); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5175 | } | ||||
| 5176 | |||||
| 5177 | nsIEventTarget* BackgroundThread() const { | ||||
| 5178 | MOZ_ASSERT(mQuotaClient)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mQuotaClient)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mQuotaClient))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mQuotaClient", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5178); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaClient" ")"); do { MOZ_CrashSequence(__null, 5178); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5179 | return mQuotaClient->BackgroundThread(); | ||||
| 5180 | } | ||||
| 5181 | |||||
| 5182 | PRTime StartTime() const { return mStartTime; } | ||||
| 5183 | |||||
| 5184 | bool IsAborted() const { return mAborted; } | ||||
| 5185 | |||||
| 5186 | void RunImmediately() { | ||||
| 5187 | MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5187) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial" ")"); do { MOZ_CrashSequence(__null, 5187); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5188 | |||||
| 5189 | (void)this->Run(); | ||||
| 5190 | } | ||||
| 5191 | |||||
| 5192 | RefPtr<BoolPromise> OnResults() { | ||||
| 5193 | AssertIsOnBackgroundThread(); | ||||
| 5194 | |||||
| 5195 | return mPromiseHolder.Ensure(__func__); | ||||
| 5196 | } | ||||
| 5197 | |||||
| 5198 | void Abort(); | ||||
| 5199 | |||||
| 5200 | void RegisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance); | ||||
| 5201 | |||||
| 5202 | void UnregisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance); | ||||
| 5203 | |||||
| 5204 | bool HasDatabaseMaintenances() const { return mDatabaseMaintenances.Count(); } | ||||
| 5205 | |||||
| 5206 | RefPtr<DatabaseMaintenance> GetDatabaseMaintenance( | ||||
| 5207 | const nsAString& aDatabasePath) const { | ||||
| 5208 | AssertIsOnBackgroundThread(); | ||||
| 5209 | |||||
| 5210 | return mDatabaseMaintenances.Get(aDatabasePath); | ||||
| 5211 | } | ||||
| 5212 | |||||
| 5213 | void WaitForCompletion(nsIRunnable* aCallback) { | ||||
| 5214 | AssertIsOnBackgroundThread(); | ||||
| 5215 | MOZ_ASSERT(mDatabaseMaintenances.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseMaintenances.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabaseMaintenances.Count( )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mDatabaseMaintenances.Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5215); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseMaintenances.Count()" ")"); do { MOZ_CrashSequence(__null, 5215); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5216 | |||||
| 5217 | mCompleteCallbacks.AppendElement(aCallback); | ||||
| 5218 | } | ||||
| 5219 | |||||
| 5220 | void Stringify(nsACString& aResult) const; | ||||
| 5221 | |||||
| 5222 | private: | ||||
| 5223 | ~Maintenance() override { | ||||
| 5224 | MOZ_ASSERT(mState == State::Complete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Complete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Complete))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Complete" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5224) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete" ")"); do { MOZ_CrashSequence(__null, 5224); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5225 | MOZ_ASSERT(!mDatabaseMaintenances.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseMaintenances.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseMaintenances.Count ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mDatabaseMaintenances.Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5225); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Count()" ")"); do { MOZ_CrashSequence(__null, 5225); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5226 | } | ||||
| 5227 | |||||
| 5228 | // Runs on the PBackground thread. Checks if IndexedDatabaseManager is | ||||
| 5229 | // running. Calls OpenDirectory() or dispatches to the main thread on which | ||||
| 5230 | // CreateIndexedDatabaseManager() is called. | ||||
| 5231 | nsresult Start(); | ||||
| 5232 | |||||
| 5233 | // Runs on the main thread. Once IndexedDatabaseManager is created it will | ||||
| 5234 | // dispatch to the PBackground thread on which OpenDirectory() is called. | ||||
| 5235 | nsresult CreateIndexedDatabaseManager(); | ||||
| 5236 | |||||
| 5237 | RefPtr<UniversalDirectoryLockPromise> OpenStorageDirectory( | ||||
| 5238 | const PersistenceScope& aPersistenceScope, bool aInitializeOrigins); | ||||
| 5239 | |||||
| 5240 | // Runs on the PBackground thread. Once QuotaManager has given a lock it will | ||||
| 5241 | // call DirectoryOpen(). | ||||
| 5242 | nsresult OpenDirectory(); | ||||
| 5243 | |||||
| 5244 | // Runs on the PBackground thread. Dispatches to the QuotaManager I/O thread. | ||||
| 5245 | nsresult DirectoryOpen(); | ||||
| 5246 | |||||
| 5247 | // Runs on the QuotaManager I/O thread. Once it finds databases it will | ||||
| 5248 | // dispatch to the PBackground thread on which BeginDatabaseMaintenance() | ||||
| 5249 | // is called. | ||||
| 5250 | nsresult DirectoryWork(); | ||||
| 5251 | |||||
| 5252 | // Runs on the PBackground thread. It dispatches a runnable for each database. | ||||
| 5253 | nsresult BeginDatabaseMaintenance(); | ||||
| 5254 | |||||
| 5255 | // Runs on the PBackground thread. Called when the maintenance is finished or | ||||
| 5256 | // if any of above methods fails. | ||||
| 5257 | void Finish(); | ||||
| 5258 | |||||
| 5259 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 5260 | |||||
| 5261 | void DirectoryLockAcquired(UniversalDirectoryLock* aLock); | ||||
| 5262 | |||||
| 5263 | void DirectoryLockFailed(); | ||||
| 5264 | }; | ||||
| 5265 | |||||
| 5266 | Maintenance::DirectoryInfo::DirectoryInfo(PersistenceType aPersistenceType, | ||||
| 5267 | OriginMetadata aOriginMetadata, | ||||
| 5268 | nsTArray<nsString>&& aDatabasePaths) | ||||
| 5269 | : mOriginMetadata(std::move(aOriginMetadata)), | ||||
| 5270 | mDatabasePaths(std::move(aDatabasePaths)), | ||||
| 5271 | mPersistenceType(aPersistenceType) { | ||||
| 5272 | MOZ_ASSERT(aPersistenceType != PERSISTENCE_TYPE_INVALID)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aPersistenceType != PERSISTENCE_TYPE_INVALID)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aPersistenceType != PERSISTENCE_TYPE_INVALID))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aPersistenceType != PERSISTENCE_TYPE_INVALID" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5272) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPersistenceType != PERSISTENCE_TYPE_INVALID" ")"); do { MOZ_CrashSequence(__null, 5272); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5273 | MOZ_ASSERT(!mOriginMetadata->mGroup.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOriginMetadata->mGroup.IsEmpty())>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(!mOriginMetadata->mGroup.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mOriginMetadata->mGroup.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5273) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mGroup.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5273); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5274 | MOZ_ASSERT(!mOriginMetadata->mOrigin.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOriginMetadata->mOrigin.IsEmpty())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mOriginMetadata->mOrigin.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mOriginMetadata->mOrigin.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5274) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mOrigin.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5274); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5275 | #ifdef DEBUG1 | ||||
| 5276 | MOZ_ASSERT(!mDatabasePaths->IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabasePaths->IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabasePaths->IsEmpty( )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mDatabasePaths->IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5276); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasePaths->IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5276); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5277 | for (const nsAString& databasePath : *mDatabasePaths) { | ||||
| 5278 | MOZ_ASSERT(!databasePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!databasePath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!databasePath.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!databasePath.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5278) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePath.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5278); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5279 | } | ||||
| 5280 | #endif | ||||
| 5281 | |||||
| 5282 | MOZ_COUNT_CTOR(Maintenance::DirectoryInfo)do { static_assert(std::is_class_v<Maintenance::DirectoryInfo >, "Token '" "Maintenance::DirectoryInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, Maintenance ::DirectoryInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "Maintenance::DirectoryInfo" , sizeof(*this)); } while (0); | ||||
| 5283 | } | ||||
| 5284 | |||||
| 5285 | class DatabaseMaintenance final : public Runnable { | ||||
| 5286 | // The minimum amount of time that has passed since the last vacuum before we | ||||
| 5287 | // will attempt to analyze the database for fragmentation. | ||||
| 5288 | static const PRTime kMinVacuumAge = | ||||
| 5289 | PRTime(PR_USEC_PER_SEC1000000L) * 60 * 60 * 24 * 7; | ||||
| 5290 | |||||
| 5291 | // If the percent of database pages that are not in contiguous order is higher | ||||
| 5292 | // than this percentage we will attempt a vacuum. | ||||
| 5293 | static const int32_t kPercentUnorderedThreshold = 30; | ||||
| 5294 | |||||
| 5295 | // If the percent of file size growth since the last vacuum is higher than | ||||
| 5296 | // this percentage we will attempt a vacuum. | ||||
| 5297 | static const int32_t kPercentFileSizeGrowthThreshold = 10; | ||||
| 5298 | |||||
| 5299 | // The number of freelist pages beyond which we will favor an incremental | ||||
| 5300 | // vacuum over a full vacuum. | ||||
| 5301 | static const int32_t kMaxFreelistThreshold = 5; | ||||
| 5302 | |||||
| 5303 | // If the percent of unused file bytes in the database exceeds this percentage | ||||
| 5304 | // then we will attempt a full vacuum. | ||||
| 5305 | static const int32_t kPercentUnusedThreshold = 20; | ||||
| 5306 | |||||
| 5307 | enum class MaintenanceAction { Nothing = 0, IncrementalVacuum, FullVacuum }; | ||||
| 5308 | |||||
| 5309 | RefPtr<Maintenance> mMaintenance; | ||||
| 5310 | // The directory lock is dropped in RunOnOwningThread which serves as a | ||||
| 5311 | // cleanup method and is always called. | ||||
| 5312 | RefPtr<ClientDirectoryLock> mDirectoryLock; | ||||
| 5313 | const OriginMetadata mOriginMetadata; | ||||
| 5314 | const nsString mDatabasePath; | ||||
| 5315 | int64_t mDirectoryLockId; | ||||
| 5316 | nsCOMPtr<nsIRunnable> mCompleteCallback; | ||||
| 5317 | const PersistenceType mPersistenceType; | ||||
| 5318 | const Maybe<CipherKey> mMaybeKey; | ||||
| 5319 | Atomic<bool> mAborted; | ||||
| 5320 | DataMutex<nsCOMPtr<mozIStorageConnection>> mSharedStorageConnection; | ||||
| 5321 | |||||
| 5322 | public: | ||||
| 5323 | DatabaseMaintenance(Maintenance* aMaintenance, | ||||
| 5324 | RefPtr<ClientDirectoryLock> aDirectoryLock, | ||||
| 5325 | PersistenceType aPersistenceType, | ||||
| 5326 | const OriginMetadata& aOriginMetadata, | ||||
| 5327 | const nsAString& aDatabasePath, | ||||
| 5328 | const Maybe<CipherKey>& aMaybeKey) | ||||
| 5329 | : Runnable("dom::indexedDB::DatabaseMaintenance"), | ||||
| 5330 | mMaintenance(aMaintenance), | ||||
| 5331 | mDirectoryLock(std::move(aDirectoryLock)), | ||||
| 5332 | mOriginMetadata(aOriginMetadata), | ||||
| 5333 | mDatabasePath(aDatabasePath), | ||||
| 5334 | mPersistenceType(aPersistenceType), | ||||
| 5335 | mMaybeKey{aMaybeKey}, | ||||
| 5336 | mAborted(false), | ||||
| 5337 | mSharedStorageConnection("sharedStorageConnection") { | ||||
| 5338 | MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLock" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5338) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")" ); do { MOZ_CrashSequence(__null, 5338); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5339 | |||||
| 5340 | MOZ_ASSERT(mDirectoryLock->Id() >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock->Id() >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock->Id() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mDirectoryLock->Id() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5340); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock->Id() >= 0" ")"); do { MOZ_CrashSequence(__null, 5340); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5341 | mDirectoryLockId = mDirectoryLock->Id(); | ||||
| 5342 | } | ||||
| 5343 | |||||
| 5344 | const nsAString& DatabasePath() const { return mDatabasePath; } | ||||
| 5345 | |||||
| 5346 | void WaitForCompletion(nsIRunnable* aCallback) { | ||||
| 5347 | AssertIsOnBackgroundThread(); | ||||
| 5348 | MOZ_ASSERT(!mCompleteCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCompleteCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mCompleteCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mCompleteCallback" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5348) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCompleteCallback" ")"); do { MOZ_CrashSequence(__null, 5348); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5349 | |||||
| 5350 | mCompleteCallback = aCallback; | ||||
| 5351 | } | ||||
| 5352 | |||||
| 5353 | void Stringify(nsACString& aResult) const; | ||||
| 5354 | |||||
| 5355 | nsresult Abort(); | ||||
| 5356 | |||||
| 5357 | private: | ||||
| 5358 | ~DatabaseMaintenance() override = default; | ||||
| 5359 | |||||
| 5360 | // Runs on maintenance thread pool. Does maintenance on the database. | ||||
| 5361 | void PerformMaintenanceOnDatabase(); | ||||
| 5362 | |||||
| 5363 | // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase. | ||||
| 5364 | nsresult CheckIntegrity(mozIStorageConnection& aConnection, bool* aOk); | ||||
| 5365 | |||||
| 5366 | // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase. | ||||
| 5367 | nsresult DetermineMaintenanceAction(mozIStorageConnection& aConnection, | ||||
| 5368 | nsIFile* aDatabaseFile, | ||||
| 5369 | MaintenanceAction* aMaintenanceAction); | ||||
| 5370 | |||||
| 5371 | // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase. | ||||
| 5372 | void IncrementalVacuum(mozIStorageConnection& aConnection); | ||||
| 5373 | |||||
| 5374 | // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase. | ||||
| 5375 | void FullVacuum(mozIStorageConnection& aConnection, nsIFile* aDatabaseFile); | ||||
| 5376 | |||||
| 5377 | // Runs on the PBackground thread. It dispatches a complete callback and | ||||
| 5378 | // unregisters from Maintenance. | ||||
| 5379 | void RunOnOwningThread(); | ||||
| 5380 | |||||
| 5381 | // Runs on maintenance thread pool. Once it performs database maintenance | ||||
| 5382 | // it will dispatch to the PBackground thread on which RunOnOwningThread() | ||||
| 5383 | // is called. | ||||
| 5384 | void RunOnConnectionThread(); | ||||
| 5385 | |||||
| 5386 | // TODO: Could QuotaClient::IsShuttingDownOnNonBackgroundThread() call | ||||
| 5387 | // be part of mMaintenance::IsAborted() ? | ||||
| 5388 | inline bool IsAborted() const { | ||||
| 5389 | return mMaintenance->IsAborted() || mAborted || | ||||
| 5390 | NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5390); | ||||
| 5391 | } | ||||
| 5392 | |||||
| 5393 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 5394 | }; | ||||
| 5395 | |||||
| 5396 | #ifdef DEBUG1 | ||||
| 5397 | |||||
| 5398 | class DEBUGThreadSlower final : public nsIThreadObserver { | ||||
| 5399 | public: | ||||
| 5400 | DEBUGThreadSlower() { | ||||
| 5401 | AssertIsOnBackgroundThread(); | ||||
| 5402 | MOZ_ASSERT(kDEBUGThreadSleepMS)do { static_assert( mozilla::detail::AssertionConditionType< decltype(kDEBUGThreadSleepMS)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(kDEBUGThreadSleepMS))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("kDEBUGThreadSleepMS" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5402) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS" ")"); do { MOZ_CrashSequence(__null, 5402); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5403 | } | ||||
| 5404 | |||||
| 5405 | 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: | ||||
| 5406 | |||||
| 5407 | private: | ||||
| 5408 | ~DEBUGThreadSlower() { AssertIsOnBackgroundThread(); } | ||||
| 5409 | |||||
| 5410 | NS_DECL_NSITHREADOBSERVERvirtual nsresult OnDispatchedEvent(void) override; virtual nsresult OnProcessNextEvent(nsIThreadInternal *thread, bool mayWait) override ; virtual nsresult AfterProcessNextEvent(nsIThreadInternal *thread , bool eventWasProcessed) override; | ||||
| 5411 | }; | ||||
| 5412 | |||||
| 5413 | #endif // DEBUG | ||||
| 5414 | |||||
| 5415 | /******************************************************************************* | ||||
| 5416 | * Helper classes | ||||
| 5417 | ******************************************************************************/ | ||||
| 5418 | |||||
| 5419 | // XXX Get rid of FileHelper and move the functions into DatabaseFileManager. | ||||
| 5420 | // Then, DatabaseFileManager::Get(Journal)Directory and | ||||
| 5421 | // DatabaseFileManager::GetFileForId might eventually be made private. | ||||
| 5422 | class MOZ_STACK_CLASS FileHelper final { | ||||
| 5423 | const SafeRefPtr<DatabaseFileManager> mFileManager; | ||||
| 5424 | |||||
| 5425 | LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mFileDirectory; | ||||
| 5426 | LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mJournalDirectory; | ||||
| 5427 | |||||
| 5428 | class ReadCallback; | ||||
| 5429 | LazyInitializedOnce<const NotNull<RefPtr<ReadCallback>>> mReadCallback; | ||||
| 5430 | |||||
| 5431 | public: | ||||
| 5432 | explicit FileHelper(SafeRefPtr<DatabaseFileManager>&& aFileManager) | ||||
| 5433 | : mFileManager(std::move(aFileManager)) { | ||||
| 5434 | MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5434); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { MOZ_CrashSequence(__null, 5434); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5435 | } | ||||
| 5436 | |||||
| 5437 | nsresult Init(); | ||||
| 5438 | |||||
| 5439 | [[nodiscard]] nsCOMPtr<nsIFile> GetFile(const DatabaseFileInfo& aFileInfo); | ||||
| 5440 | |||||
| 5441 | [[nodiscard]] nsCOMPtr<nsIFile> GetJournalFile( | ||||
| 5442 | const DatabaseFileInfo& aFileInfo); | ||||
| 5443 | |||||
| 5444 | nsresult CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile, | ||||
| 5445 | nsIInputStream& aInputStream, bool aCompress, | ||||
| 5446 | const Maybe<CipherKey>& aMaybeKey); | ||||
| 5447 | |||||
| 5448 | private: | ||||
| 5449 | nsresult SyncCopy(nsIInputStream& aInputStream, | ||||
| 5450 | nsIOutputStream& aOutputStream, char* aBuffer, | ||||
| 5451 | uint32_t aBufferSize); | ||||
| 5452 | |||||
| 5453 | nsresult SyncRead(nsIInputStream& aInputStream, char* aBuffer, | ||||
| 5454 | uint32_t aBufferSize, uint32_t* aRead); | ||||
| 5455 | }; | ||||
| 5456 | |||||
| 5457 | /******************************************************************************* | ||||
| 5458 | * Helper Functions | ||||
| 5459 | ******************************************************************************/ | ||||
| 5460 | |||||
| 5461 | bool GetFilenameBase(const nsAString& aFilename, const nsAString& aSuffix, | ||||
| 5462 | nsDependentSubstring& aFilenameBase) { | ||||
| 5463 | MOZ_ASSERT(!aFilename.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aFilename.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aFilename.IsEmpty()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!aFilename.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5463) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5463); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5464 | MOZ_ASSERT(aFilenameBase.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aFilenameBase.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aFilenameBase.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aFilenameBase.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5464) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilenameBase.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5464); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5465 | |||||
| 5466 | if (!StringEndsWith(aFilename, aSuffix) || | ||||
| 5467 | aFilename.Length() == aSuffix.Length()) { | ||||
| 5468 | return false; | ||||
| 5469 | } | ||||
| 5470 | |||||
| 5471 | MOZ_ASSERT(aFilename.Length() > aSuffix.Length())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aFilename.Length() > aSuffix.Length())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aFilename.Length() > aSuffix.Length()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFilename.Length() > aSuffix.Length()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5471) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilename.Length() > aSuffix.Length()" ")"); do { MOZ_CrashSequence(__null, 5471); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5472 | |||||
| 5473 | aFilenameBase.Rebind(aFilename, 0, aFilename.Length() - aSuffix.Length()); | ||||
| 5474 | return true; | ||||
| 5475 | } | ||||
| 5476 | |||||
| 5477 | class EncryptedFileBlobImpl final : public FileBlobImpl { | ||||
| 5478 | public: | ||||
| 5479 | EncryptedFileBlobImpl(const nsCOMPtr<nsIFile>& aNativeFile, | ||||
| 5480 | const DatabaseFileInfo::IdType aId, | ||||
| 5481 | const CipherKey& aKey) | ||||
| 5482 | : FileBlobImpl{aNativeFile}, mKey{aKey} { | ||||
| 5483 | SetFileId(aId); | ||||
| 5484 | } | ||||
| 5485 | |||||
| 5486 | // The size of the blob is stored in the metadata where EncryptedFileBlobImpl | ||||
| 5487 | // is used, allowing a child process to set the size lazily. Therefore, the | ||||
| 5488 | // parent process is allowed to return a dummy value to avoid sync I/O. In a | ||||
| 5489 | // child process, the size should already be set beforehand and GetSize should | ||||
| 5490 | // only accesses it. And the reason why 0 is returned, even when the size is | ||||
| 5491 | // not set in a child process, is is because the spec doesn't allow Blob.size | ||||
| 5492 | // to throw. | ||||
| 5493 | uint64_t GetSize(ErrorResult& aRv) override { | ||||
| 5494 | MOZ_DIAGNOSTIC_ASSERT(XRE_IsParentProcess() || mLength.isSome())do { static_assert( mozilla::detail::AssertionConditionType< decltype(XRE_IsParentProcess() || mLength.isSome())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(XRE_IsParentProcess() || mLength.isSome()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("XRE_IsParentProcess() || mLength.isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5494) ; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "XRE_IsParentProcess() || mLength.isSome()" ")"); do { MOZ_CrashSequence(__null, 5494); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5495 | return mLength.valueOr(0); | ||||
| 5496 | } | ||||
| 5497 | |||||
| 5498 | void CreateInputStream(nsIInputStream** aInputStream, | ||||
| 5499 | ErrorResult& aRv) const override { | ||||
| 5500 | nsCOMPtr<nsIInputStream> baseInputStream; | ||||
| 5501 | FileBlobImpl::CreateInputStream(getter_AddRefs(baseInputStream), aRv); | ||||
| 5502 | if (NS_WARN_IF(aRv.Failed())NS_warn_if_impl(aRv.Failed(), "aRv.Failed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5502)) { | ||||
| 5503 | return; | ||||
| 5504 | } | ||||
| 5505 | |||||
| 5506 | *aInputStream = | ||||
| 5507 | MakeAndAddRef<DecryptingInputStream<IndexedDBCipherStrategy>>( | ||||
| 5508 | WrapNotNull(std::move(baseInputStream)), kEncryptedStreamBlockSize, | ||||
| 5509 | mKey) | ||||
| 5510 | .take(); | ||||
| 5511 | } | ||||
| 5512 | |||||
| 5513 | void GetBlobImplType(nsAString& aBlobImplType) const override { | ||||
| 5514 | aBlobImplType = u"EncryptedFileBlobImpl"_ns; | ||||
| 5515 | } | ||||
| 5516 | |||||
| 5517 | already_AddRefed<BlobImpl> CreateSlice(uint64_t aStart, uint64_t aLength, | ||||
| 5518 | const nsAString& aContentType, | ||||
| 5519 | ErrorResult& aRv) const override { | ||||
| 5520 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5520) ; AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 5520); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 5521 | } | ||||
| 5522 | |||||
| 5523 | private: | ||||
| 5524 | const CipherKey mKey; | ||||
| 5525 | }; | ||||
| 5526 | |||||
| 5527 | RefPtr<BlobImpl> CreateFileBlobImpl(const Database& aDatabase, | ||||
| 5528 | const nsCOMPtr<nsIFile>& aNativeFile, | ||||
| 5529 | const DatabaseFileInfo::IdType aId) { | ||||
| 5530 | if (aDatabase.IsInPrivateBrowsing()) { | ||||
| 5531 | nsCString keyId; | ||||
| 5532 | keyId.AppendInt(aId); | ||||
| 5533 | |||||
| 5534 | const auto& key = | ||||
| 5535 | aDatabase.GetFileManager().MutableCipherKeyManagerRef().Get(keyId); | ||||
| 5536 | |||||
| 5537 | 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()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5537); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "key.isSome()" ")"); do { MOZ_CrashSequence(__null, 5537); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5538 | return MakeRefPtr<EncryptedFileBlobImpl>(aNativeFile, aId, *key); | ||||
| 5539 | } | ||||
| 5540 | |||||
| 5541 | auto impl = MakeRefPtr<FileBlobImpl>(aNativeFile); | ||||
| 5542 | impl->SetFileId(aId); | ||||
| 5543 | |||||
| 5544 | return impl; | ||||
| 5545 | } | ||||
| 5546 | |||||
| 5547 | Result<nsTArray<SerializedStructuredCloneFile>, nsresult> | ||||
| 5548 | SerializeStructuredCloneFiles(const SafeRefPtr<Database>& aDatabase, | ||||
| 5549 | const nsTArray<StructuredCloneFileParent>& aFiles, | ||||
| 5550 | bool aForPreprocess) { | ||||
| 5551 | AssertIsOnBackgroundThread(); | ||||
| 5552 | MOZ_ASSERT(aDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase" ")" ); do { MOZ_CrashSequence(__null, 5552); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5553 | |||||
| 5554 | if (aFiles.IsEmpty()) { | ||||
| 5555 | return nsTArray<SerializedStructuredCloneFile>{}; | ||||
| 5556 | } | ||||
| 5557 | |||||
| 5558 | const nsCOMPtr<nsIFile> directory = | ||||
| 5559 | aDatabase->GetFileManager().GetCheckedDirectory(); | ||||
| 5560 | QM_TRY(OkIf(directory), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult872 = (OkIf(directory)); static_assert(std::is_empty_v <typename decltype(tryResult872)::ok_type>); if ((__builtin_expect (!!(tryResult872.isErr()), 0))) { auto tryTempError = tryResult872 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5561, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5561, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(directory)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 5561 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult872 = (OkIf(directory)); static_assert(std::is_empty_v <typename decltype(tryResult872)::ok_type>); if ((__builtin_expect (!!(tryResult872.isErr()), 0))) { auto tryTempError = tryResult872 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5561, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5561, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(directory)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | ||||
| 5562 | |||||
| 5563 | nsTArray<SerializedStructuredCloneFile> serializedStructuredCloneFiles; | ||||
| 5564 | QM_TRY(OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(),{auto tryResult873 = (OkIf(serializedStructuredCloneFiles.SetCapacity (aFiles.Length(), fallible))); static_assert(std::is_empty_v< typename decltype(tryResult873)::ok_type>); if ((__builtin_expect (!!(tryResult873.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult873.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5566, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }} | ||||
| 5565 | fallible)),{auto tryResult873 = (OkIf(serializedStructuredCloneFiles.SetCapacity (aFiles.Length(), fallible))); static_assert(std::is_empty_v< typename decltype(tryResult873)::ok_type>); if ((__builtin_expect (!!(tryResult873.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult873.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5566, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }} | ||||
| 5566 | Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult873 = (OkIf(serializedStructuredCloneFiles.SetCapacity (aFiles.Length(), fallible))); static_assert(std::is_empty_v< typename decltype(tryResult873)::ok_type>); if ((__builtin_expect (!!(tryResult873.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult873.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5566, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; | ||||
| 5567 | |||||
| 5568 | QM_TRY(TransformIfAbortOnErr({auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5569 | aFiles, MakeBackInserter(serializedStructuredCloneFiles),{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5570 | [aForPreprocess](const auto& file) {{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5571 | return !aForPreprocess ||{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5572 | file.Type() == StructuredCloneFileBase::eStructuredClone;{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5573 | },{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5574 | [&directory, &aDatabase, aForPreprocess]({auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5575 | const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> {{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5576 | const int64_t fileId = file.FileInfo().Id();{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5577 | MOZ_ASSERT(fileId > 0);{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5578 | |||||
| 5579 | const nsCOMPtr<nsIFile> nativeFile ={auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5580 | mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId({auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5581 | directory, fileId);{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5582 | QM_TRY(OkIf(nativeFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5583 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5584 | |||||
| 5585 | switch (file.Type()) {{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5586 | case StructuredCloneFileBase::eStructuredClone:{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5587 | if (!aForPreprocess) {{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5588 | return SerializedStructuredCloneFile{{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5589 | null_t(), StructuredCloneFileBase::eStructuredClone};{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5590 | }{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5591 | |||||
| 5592 | [[fallthrough]];{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5593 | |||||
| 5594 | case StructuredCloneFileBase::eBlob: {{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5595 | const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile,{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5596 | file.FileInfo().Id());{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5597 | |||||
| 5598 | IPCBlob ipcBlob;{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5599 | |||||
| 5600 | // This can only fail if the child has crashed.{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5601 | QM_TRY(MOZ_TO_RESULT(IPCBlobUtils::Serialize(impl, ipcBlob)),{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5602 | Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5603 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5604 | |||||
| 5605 | aDatabase->MapBlob(ipcBlob, file.FileInfoPtr());{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5606 | |||||
| 5607 | return SerializedStructuredCloneFile{ipcBlob, file.Type()};{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5608 | }{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5609 | |||||
| 5610 | case StructuredCloneFileBase::eMutableFile:{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5611 | case StructuredCloneFileBase::eWasmBytecode:{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5612 | case StructuredCloneFileBase::eWasmCompiled: {{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5613 | // Set file() to null, support for storing WebAssembly.Modules has{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5614 | // been removed in bug 1469395. Support for de-serialization of{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5615 | // WebAssembly.Modules modules has been removed in bug 1561876.{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5616 | // Support for MutableFile has been removed in bug 1500343. Full{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5617 | // removal is tracked in bug 1487479.{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5618 | |||||
| 5619 | return SerializedStructuredCloneFile{null_t(), file.Type()};{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5620 | }{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5621 | |||||
| 5622 | default:{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5623 | MOZ_CRASH("Should never get here!");{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5624 | }{auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }} | ||||
| 5625 | })){auto tryResult876 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect( !!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone : if (!aForPreprocess) { return SerializedStructuredCloneFile { null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875 .isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5623); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult876)::ok_type> ); if ((__builtin_expect(!!(tryResult876.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5577); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5577); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult874 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect(!!(tryResult874.isErr()), 0))) { auto tryTempError = tryResult874.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5583, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult875 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult875)::ok_type>); if ((__builtin_expect(!!(tryResult875.isErr()), 0))) { auto tryTempError = tryResult875.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5603, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5623); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5623); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5625, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); }}; | ||||
| 5626 | |||||
| 5627 | return std::move(serializedStructuredCloneFiles); | ||||
| 5628 | } | ||||
| 5629 | |||||
| 5630 | bool IsFileNotFoundError(const nsresult aRv) { | ||||
| 5631 | return aRv == NS_ERROR_FILE_NOT_FOUND; | ||||
| 5632 | } | ||||
| 5633 | |||||
| 5634 | enum struct Idempotency { Yes, No }; | ||||
| 5635 | |||||
| 5636 | // Delete a file, decreasing the quota usage as appropriate. If the file no | ||||
| 5637 | // longer exists but aIdempotency is Idempotency::Yes, success is returned, | ||||
| 5638 | // although quota usage can't be decreased. (With the assumption being that the | ||||
| 5639 | // file was already deleted prior to this logic running, and the non-existent | ||||
| 5640 | // file was no longer tracked by quota because it didn't exist at | ||||
| 5641 | // initialization time or a previous deletion call updated the usage.) | ||||
| 5642 | nsresult DeleteFile(nsIFile& aFile, QuotaManager* const aQuotaManager, | ||||
| 5643 | const PersistenceType aPersistenceType, | ||||
| 5644 | const OriginMetadata& aOriginMetadata, | ||||
| 5645 | const Idempotency aIdempotency) { | ||||
| 5646 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5646) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 5646); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5647 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5647) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 5647); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5648 | |||||
| 5649 | // Callers which pass Idempotency::Yes call this function without checking if | ||||
| 5650 | // the file already exists (idempotent usage). QM_OR_ELSE_WARN_IF is not used | ||||
| 5651 | // here since we just want to log NS_ERROR_FILE_NOT_FOUND results and not spam | ||||
| 5652 | // the reports. | ||||
| 5653 | // Theoretically, there should be no QM_OR_ELSE_(WARN|LOG_VERBOSE)_IF when a | ||||
| 5654 | // caller passes Idempotency::No, but it's simpler when the predicate just | ||||
| 5655 | // always returns false in that case. | ||||
| 5656 | |||||
| 5657 | const auto isIgnorableError = [&aIdempotency]() -> bool (*)(nsresult) { | ||||
| 5658 | if (aIdempotency == Idempotency::Yes) { | ||||
| 5659 | return IsFileNotFoundError; | ||||
| 5660 | } | ||||
| 5661 | |||||
| 5662 | return [](const nsresult rv) { return false; }; | ||||
| 5663 | }(); | ||||
| 5664 | |||||
| 5665 | QM_TRY_INSPECT(auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5666 | const auto& fileSize,auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5667 | ([aQuotaManager, &aFile,auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5668 | isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> {auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5669 | if (aQuotaManager) {auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5670 | QM_TRY_INSPECT(auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5671 | const Maybe<int64_t>& fileSize,auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5672 | QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5673 | // Expression.auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5674 | MOZ_TO_RESULT_INVOKE_MEMBER(aFile, GetFileSize)auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5675 | .map([](const int64_t val) { return Some(val); }),auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5676 | // Predicate.auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5677 | isIgnorableError,auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5678 | // Fallback.auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5679 | ErrToDefaultOk<Maybe<int64_t>>));auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5680 | |||||
| 5681 | // XXX Can we really assert that the file size is not 0 ifauto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5682 | // it existed? This might be violated by externalauto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5683 | // influences.auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5684 | MOZ_ASSERT(!fileSize || fileSize.value() >= 0);auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5685 | |||||
| 5686 | return fileSize;auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5687 | }auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5688 | |||||
| 5689 | return Some(int64_t(0));auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect (); | ||||
| 5690 | }()))auto tryResult878 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5679, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult878.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult877 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult877.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5679, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult877.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5679, mozilla::dom::quota::Severity::Error); return tryResult877.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult877.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5684); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5684); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5690, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); } const auto& fileSize = tryResult878.inspect ();; | ||||
| 5691 | |||||
| 5692 | if (!fileSize) { | ||||
| 5693 | return NS_OK; | ||||
| 5694 | } | ||||
| 5695 | |||||
| 5696 | QM_TRY_INSPECT(const auto& didExist,auto tryResult879 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult879 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult879.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, mozilla::dom::quota::Severity::Error); return tryResult879 .propagateErr(); } const auto& didExist = tryResult879.inspect (); | ||||
| 5697 | QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult879 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult879 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult879.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, mozilla::dom::quota::Severity::Error); return tryResult879 .propagateErr(); } const auto& didExist = tryResult879.inspect (); | ||||
| 5698 | // Expression.auto tryResult879 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult879 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult879.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, mozilla::dom::quota::Severity::Error); return tryResult879 .propagateErr(); } const auto& didExist = tryResult879.inspect (); | ||||
| 5699 | MOZ_TO_RESULT(aFile.Remove(false)).map(Some<Ok>),auto tryResult879 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult879 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult879.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, mozilla::dom::quota::Severity::Error); return tryResult879 .propagateErr(); } const auto& didExist = tryResult879.inspect (); | ||||
| 5700 | // Predicate.auto tryResult879 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult879 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult879.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, mozilla::dom::quota::Severity::Error); return tryResult879 .propagateErr(); } const auto& didExist = tryResult879.inspect (); | ||||
| 5701 | isIgnorableError,auto tryResult879 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult879 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult879.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, mozilla::dom::quota::Severity::Error); return tryResult879 .propagateErr(); } const auto& didExist = tryResult879.inspect (); | ||||
| 5702 | // Fallback.auto tryResult879 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult879 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult879.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, mozilla::dom::quota::Severity::Error); return tryResult879 .propagateErr(); } const auto& didExist = tryResult879.inspect (); | ||||
| 5703 | ErrToDefaultOk<Maybe<Ok>>))auto tryResult879 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult879 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5703, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult879.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5703, mozilla::dom::quota::Severity::Error); return tryResult879 .propagateErr(); } const auto& didExist = tryResult879.inspect ();; | ||||
| 5704 | |||||
| 5705 | if (!didExist) { | ||||
| 5706 | // XXX If we get here, this means that the file still existed when we | ||||
| 5707 | // queried its size, but no longer when we tried to remove it. Not sure if | ||||
| 5708 | // this should really be silently accepted in idempotent mode. | ||||
| 5709 | return NS_OK; | ||||
| 5710 | } | ||||
| 5711 | |||||
| 5712 | if (fileSize.value() > 0) { | ||||
| 5713 | MOZ_ASSERT(aQuotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aQuotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aQuotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aQuotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaManager" ")") ; do { MOZ_CrashSequence(__null, 5713); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5714 | |||||
| 5715 | aQuotaManager->DecreaseUsageForClient( | ||||
| 5716 | ClientMetadata{aOriginMetadata, Client::IDB}, fileSize.value()); | ||||
| 5717 | } | ||||
| 5718 | |||||
| 5719 | return NS_OK; | ||||
| 5720 | } | ||||
| 5721 | |||||
| 5722 | nsresult DeleteFile(nsIFile& aDirectory, const nsAString& aFilename, | ||||
| 5723 | QuotaManager* const aQuotaManager, | ||||
| 5724 | const PersistenceType aPersistenceType, | ||||
| 5725 | const OriginMetadata& aOriginMetadata, | ||||
| 5726 | const Idempotency aIdempotent) { | ||||
| 5727 | AssertIsOnIOThread(); | ||||
| 5728 | MOZ_ASSERT(!aFilename.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aFilename.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aFilename.IsEmpty()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!aFilename.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5728) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5728); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5729 | |||||
| 5730 | QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(aDirectory, aFilename))auto tryResult880 = (CloneFileAndAppend(aDirectory, aFilename )); if ((__builtin_expect(!!(tryResult880.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(aDirectory, aFilename)" , tryResult880.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5730, mozilla::dom::quota::Severity::Error); return tryResult880 .propagateErr(); } const auto& file = tryResult880.inspect ();; | ||||
| 5731 | |||||
| 5732 | return DeleteFile(*file, aQuotaManager, aPersistenceType, aOriginMetadata, | ||||
| 5733 | aIdempotent); | ||||
| 5734 | } | ||||
| 5735 | |||||
| 5736 | // Delete files in a directory that you think exists. If the directory doesn't | ||||
| 5737 | // exist, an error will not be returned, but warning telemetry will be | ||||
| 5738 | // generated! So only call this on directories that you know exist (idempotent | ||||
| 5739 | // usage, but it's not recommended). | ||||
| 5740 | nsresult DeleteFilesNoQuota(nsIFile& aFile) { | ||||
| 5741 | AssertIsOnIOThread(); | ||||
| 5742 | |||||
| 5743 | QM_TRY_INSPECT(const auto& didExist,auto tryResult881 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult881 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, mozilla::dom::quota::Severity::Error); return tryResult881 .propagateErr(); } const auto& didExist = tryResult881.inspect (); | ||||
| 5744 | QM_OR_ELSE_WARN_IF(auto tryResult881 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult881 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, mozilla::dom::quota::Severity::Error); return tryResult881 .propagateErr(); } const auto& didExist = tryResult881.inspect (); | ||||
| 5745 | // Expression.auto tryResult881 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult881 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, mozilla::dom::quota::Severity::Error); return tryResult881 .propagateErr(); } const auto& didExist = tryResult881.inspect (); | ||||
| 5746 | MOZ_TO_RESULT(aFile.Remove(true)).map(Some<Ok>),auto tryResult881 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult881 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, mozilla::dom::quota::Severity::Error); return tryResult881 .propagateErr(); } const auto& didExist = tryResult881.inspect (); | ||||
| 5747 | // Predicate.auto tryResult881 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult881 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, mozilla::dom::quota::Severity::Error); return tryResult881 .propagateErr(); } const auto& didExist = tryResult881.inspect (); | ||||
| 5748 | IsFileNotFoundError,auto tryResult881 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult881 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, mozilla::dom::quota::Severity::Error); return tryResult881 .propagateErr(); } const auto& didExist = tryResult881.inspect (); | ||||
| 5749 | // Fallback.auto tryResult881 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult881 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, mozilla::dom::quota::Severity::Error); return tryResult881 .propagateErr(); } const auto& didExist = tryResult881.inspect (); | ||||
| 5750 | ErrToDefaultOk<Maybe<Ok>>))auto tryResult881 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult881 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5750, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5750, mozilla::dom::quota::Severity::Error); return tryResult881 .propagateErr(); } const auto& didExist = tryResult881.inspect ();; | ||||
| 5751 | |||||
| 5752 | (void)didExist; | ||||
| 5753 | |||||
| 5754 | return NS_OK; | ||||
| 5755 | } | ||||
| 5756 | |||||
| 5757 | nsresult DeleteFilesNoQuota(nsIFile* aDirectory, const nsAString& aFilename) { | ||||
| 5758 | AssertIsOnIOThread(); | ||||
| 5759 | MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5759); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { MOZ_CrashSequence(__null, 5759); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5760 | MOZ_ASSERT(!aFilename.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aFilename.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aFilename.IsEmpty()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!aFilename.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5760) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5760); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5761 | |||||
| 5762 | // The current using function hasn't initialized the origin, so in here we | ||||
| 5763 | // don't update the size of origin. Adding this assertion for preventing from | ||||
| 5764 | // misusing. | ||||
| 5765 | DebugOnly<QuotaManager*> quotaManager = QuotaManager::Get(); | ||||
| 5766 | MOZ_ASSERT(!quotaManager->IsTemporaryStorageInitializedInternal())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!quotaManager->IsTemporaryStorageInitializedInternal ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!quotaManager->IsTemporaryStorageInitializedInternal ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!quotaManager->IsTemporaryStorageInitializedInternal()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5766); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!quotaManager->IsTemporaryStorageInitializedInternal()" ")"); do { MOZ_CrashSequence(__null, 5766); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5767 | |||||
| 5768 | QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(*aDirectory, aFilename))auto tryResult882 = (CloneFileAndAppend(*aDirectory, aFilename )); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, aFilename)" , tryResult882.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5768, mozilla::dom::quota::Severity::Error); return tryResult882 .propagateErr(); } const auto& file = tryResult882.inspect ();; | ||||
| 5769 | |||||
| 5770 | QM_TRY(MOZ_TO_RESULT(DeleteFilesNoQuota(*file))){auto tryResult883 = (ToResult(DeleteFilesNoQuota(*file))); static_assert (std::is_empty_v<typename decltype(tryResult883)::ok_type> ); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(*file))" , tryResult883.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5770, mozilla::dom::quota::Severity::Error); return tryResult883 .propagateErr(); }}; | ||||
| 5771 | |||||
| 5772 | return NS_OK; | ||||
| 5773 | } | ||||
| 5774 | |||||
| 5775 | // CreateMarkerFile and RemoveMarkerFile are a pair of functions to indicate | ||||
| 5776 | // whether having removed all the files successfully. The marker file should | ||||
| 5777 | // be checked before executing the next operation or initialization. | ||||
| 5778 | Result<nsCOMPtr<nsIFile>, nsresult> CreateMarkerFile( | ||||
| 5779 | nsIFile& aBaseDirectory, const nsAString& aDatabaseNameBase) { | ||||
| 5780 | AssertIsOnIOThread(); | ||||
| 5781 | MOZ_ASSERT(!aDatabaseNameBase.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseNameBase.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseNameBase.IsEmpty() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!aDatabaseNameBase.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5781); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseNameBase.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5782 | |||||
| 5783 | QM_TRY_INSPECT(auto tryResult884 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult884 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5786, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); } const auto& markerFile = tryResult884. inspect(); | ||||
| 5784 | const auto& markerFile,auto tryResult884 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult884 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5786, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); } const auto& markerFile = tryResult884. inspect(); | ||||
| 5785 | CloneFileAndAppend(aBaseDirectory,auto tryResult884 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult884 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5786, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); } const auto& markerFile = tryResult884. inspect(); | ||||
| 5786 | kIdbDeletionMarkerFilePrefix + aDatabaseNameBase))auto tryResult884 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult884 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5786, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); } const auto& markerFile = tryResult884. inspect();; | ||||
| 5787 | |||||
| 5788 | // Callers call this function without checking if the file already exists | ||||
| 5789 | // (idempotent usage). QM_OR_ELSE_WARN_IF is not used here since we just want | ||||
| 5790 | // to log NS_ERROR_FILE_ALREADY_EXISTS result and not spam the reports. | ||||
| 5791 | // | ||||
| 5792 | // TODO: In theory if this file exists, then RemoveDatabaseFilesAndDirectory | ||||
| 5793 | // should have cleaned it up, but obviously we can crash and not clean it up, | ||||
| 5794 | // which is the whole point of the marker file. In that case, we'll realize | ||||
| 5795 | // the marker file exists in OpenDatabaseOp::DoDatabaseWork or | ||||
| 5796 | // GetUsageForOriginInternal and resume the removal by calling | ||||
| 5797 | // RemoveDatabaseFilesAndDirectory again, but we will also try to create the | ||||
| 5798 | // marker file again, so if we see this marker file, it is part | ||||
| 5799 | // of our standard operating procedure to redundantly try and create the | ||||
| 5800 | // marker here. We currently treat this as idempotent usage, but we could | ||||
| 5801 | // add an additional argument to RemoveDatabaseFilesAndDirectory which would | ||||
| 5802 | // indicate that we are resuming an unfinished removal, so the marker already | ||||
| 5803 | // exists and doesn't have to be created, and change | ||||
| 5804 | // QM_OR_ELSE_LOG_VERBOSE_IF to QM_OR_ELSE_WARN_IF in the end. | ||||
| 5805 | QM_TRY(QM_OR_ELSE_LOG_VERBOSE_IF({auto tryResult885 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult885)::ok_type>); if ((__builtin_expect(!!(tryResult885 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); }} | ||||
| 5806 | // Expression.{auto tryResult885 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult885)::ok_type>); if ((__builtin_expect(!!(tryResult885 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); }} | ||||
| 5807 | MOZ_TO_RESULT(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644)),{auto tryResult885 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult885)::ok_type>); if ((__builtin_expect(!!(tryResult885 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); }} | ||||
| 5808 | // Predicate.{auto tryResult885 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult885)::ok_type>); if ((__builtin_expect(!!(tryResult885 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); }} | ||||
| 5809 | IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>,{auto tryResult885 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult885)::ok_type>); if ((__builtin_expect(!!(tryResult885 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); }} | ||||
| 5810 | // Fallback.{auto tryResult885 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult885)::ok_type>); if ((__builtin_expect(!!(tryResult885 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); }} | ||||
| 5811 | ErrToDefaultOk<>)){auto tryResult885 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult885)::ok_type>); if ((__builtin_expect(!!(tryResult885 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5811, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5811, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); }}; | ||||
| 5812 | |||||
| 5813 | return markerFile; | ||||
| 5814 | } | ||||
| 5815 | |||||
| 5816 | nsresult RemoveMarkerFile(nsIFile* aMarkerFile) { | ||||
| 5817 | AssertIsOnIOThread(); | ||||
| 5818 | MOZ_ASSERT(aMarkerFile)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMarkerFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMarkerFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aMarkerFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5818); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMarkerFile" ")"); do { MOZ_CrashSequence(__null, 5818); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5819 | |||||
| 5820 | DebugOnly<bool> exists; | ||||
| 5821 | MOZ_ASSERT(NS_SUCCEEDED(aMarkerFile->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile ->Exists(&exists))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1))))) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5821) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1)))" ")"); do { MOZ_CrashSequence(__null, 5821); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5822 | MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType< decltype(exists)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("exists", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5822); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")" ); do { MOZ_CrashSequence(__null, 5822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5823 | |||||
| 5824 | QM_TRY(MOZ_TO_RESULT(aMarkerFile->Remove(false))){auto tryResult886 = (ToResult(aMarkerFile->Remove(false)) ); static_assert(std::is_empty_v<typename decltype(tryResult886 )::ok_type>); if ((__builtin_expect(!!(tryResult886.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(aMarkerFile->Remove(false))" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5824, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); }}; | ||||
| 5825 | |||||
| 5826 | return NS_OK; | ||||
| 5827 | } | ||||
| 5828 | |||||
| 5829 | Result<Ok, nsresult> DeleteFileManagerDirectory( | ||||
| 5830 | nsIFile& aFileManagerDirectory, QuotaManager* aQuotaManager, | ||||
| 5831 | const PersistenceType aPersistenceType, | ||||
| 5832 | const OriginMetadata& aOriginMetadata) { | ||||
| 5833 | GECKO_TRACE_SCOPE("dom::indexedDB", "DeleteFileManagerDirectory")auto GECKO_TRACE_SCOPE___COUNTER__ = mozilla::gecko_trace::TracerProvider ::GetTracer("dom::indexedDB") ->StartSpan("DeleteFileManagerDirectory" ) ->Enter();; | ||||
| 5834 | |||||
| 5835 | // XXX In theory, deleting can continue for other files in case of a failure, | ||||
| 5836 | // leaving only those files behind that cause the problem actually. However, | ||||
| 5837 | // the current architecture doesn't allow having more databases (for the same | ||||
| 5838 | // name) on disk, so trying to delete as much as possible won't help much | ||||
| 5839 | // because we need to delete entire .files directory in the end anyway. | ||||
| 5840 | QM_TRY(DatabaseFileManager::TraverseFiles({auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5841 | aFileManagerDirectory,{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5842 | // KnownDirEntryOp{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5843 | [&aQuotaManager, aPersistenceType, &aOriginMetadata]({auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5844 | nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5845 | if (isDirectory) {{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5846 | // The journal directory doesn't count towards quota.{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5847 | QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5848 | }{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5849 | |||||
| 5850 | // Stored files do count towards quota.{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5851 | QM_TRY_RETURN({auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5852 | MOZ_TO_RESULT(DeleteFile(file, aQuotaManager, aPersistenceType,{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5853 | aOriginMetadata, Idempotency::Yes)));{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5854 | },{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5855 | // UnknownDirEntryOp{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5856 | [aPersistenceType, &aOriginMetadata]({auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5857 | nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5858 | // Unknown files and directories don't count towards quota.{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5859 | |||||
| 5860 | if (isDirectory) {{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5861 | QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5862 | }{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5863 | |||||
| 5864 | QM_TRY_RETURN(MOZ_TO_RESULT({auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5865 | DeleteFile(file, /* doesn't count */ nullptr, aPersistenceType,{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5866 | aOriginMetadata, Idempotency::Yes)));{auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }} | ||||
| 5867 | })){auto tryResult891 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5847, mozilla::dom::quota::Severity::Error); } return tryResult887 ;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5853, mozilla::dom::quota::Severity::Error); } return tryResult888 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5861, mozilla::dom::quota::Severity::Error); } return tryResult889 ;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5866, mozilla::dom::quota::Severity::Error); } return tryResult890 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult891 )::ok_type>); if ((__builtin_expect(!!(tryResult891.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult887 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult887.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5847, mozilla::dom::quota::Severity::Error); } return tryResult887;}; } {auto tryResult888 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult888.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult888;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult889 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult889.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult889.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5861, mozilla::dom::quota::Severity::Error); } return tryResult889;}; } {auto tryResult890 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult890.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5866, mozilla::dom::quota::Severity::Error); } return tryResult890;}; })" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5867, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }}; | ||||
| 5868 | |||||
| 5869 | QM_TRY_RETURN(MOZ_TO_RESULT(aFileManagerDirectory.Remove(false))){auto tryResult892 = (ToResult(aFileManagerDirectory.Remove(false ))); if ((__builtin_expect(!!(tryResult892.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aFileManagerDirectory.Remove(false))" , tryResult892.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5869, mozilla::dom::quota::Severity::Error); } return tryResult892 ;}; | ||||
| 5870 | } | ||||
| 5871 | |||||
| 5872 | // Idempotently delete all the parts of an IndexedDB database including its | ||||
| 5873 | // SQLite database file, its WAL journal, it's shared-memory file, and its | ||||
| 5874 | // Blob/Files sub-directory. A marker file is created prior to performing the | ||||
| 5875 | // deletion so that in the event we crash or fail to successfully delete the | ||||
| 5876 | // database and its files, we will re-attempt the deletion the next time the | ||||
| 5877 | // origin is initialized using this method. Because this means the method may be | ||||
| 5878 | // called on a partially deleted database, this method uses DeleteFile which | ||||
| 5879 | // succeeds when the file we ask it to delete does not actually exist. The | ||||
| 5880 | // marker file is removed once deletion has successfully completed. | ||||
| 5881 | nsresult RemoveDatabaseFilesAndDirectory(nsIFile& aBaseDirectory, | ||||
| 5882 | const nsAString& aDatabaseFilenameBase, | ||||
| 5883 | QuotaManager* aQuotaManager, | ||||
| 5884 | const PersistenceType aPersistenceType, | ||||
| 5885 | const OriginMetadata& aOriginMetadata, | ||||
| 5886 | const nsAString& aDatabaseName) { | ||||
| 5887 | GECKO_TRACE_SCOPE("dom::indexedDB", "RemoveDatabaseFilesAndDirectory")auto GECKO_TRACE_SCOPE___COUNTER__ = mozilla::gecko_trace::TracerProvider ::GetTracer("dom::indexedDB") ->StartSpan("RemoveDatabaseFilesAndDirectory" ) ->Enter();; | ||||
| 5888 | |||||
| 5889 | AssertIsOnIOThread(); | ||||
| 5890 | MOZ_ASSERT(!aDatabaseFilenameBase.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseFilenameBase.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseFilenameBase.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!aDatabaseFilenameBase.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5890); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilenameBase.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5890); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5891 | |||||
| 5892 | AUTO_PROFILER_LABEL("RemoveDatabaseFilesAndDirectory", DOM)mozilla::AutoProfilerLabel raiiObject5892( "RemoveDatabaseFilesAndDirectory" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 5893 | |||||
| 5894 | QM_TRY_UNWRAP(auto markerFile,auto tryResult893 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase )); if ((__builtin_expect(!!(tryResult893.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)" , tryResult893.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5895, mozilla::dom::quota::Severity::Error); return tryResult893 .propagateErr(); } auto markerFile = tryResult893.unwrap(); | ||||
| 5895 | CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase))auto tryResult893 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase )); if ((__builtin_expect(!!(tryResult893.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)" , tryResult893.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5895, mozilla::dom::quota::Severity::Error); return tryResult893 .propagateErr(); } auto markerFile = tryResult893.unwrap();; | ||||
| 5896 | |||||
| 5897 | // The database file counts towards quota. | ||||
| 5898 | QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult894 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult894)::ok_type>); if ((__builtin_expect( !!(tryResult894.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult894.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5900, mozilla::dom::quota::Severity::Error); return tryResult894 .propagateErr(); }} | ||||
| 5899 | aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager,{auto tryResult894 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult894)::ok_type>); if ((__builtin_expect( !!(tryResult894.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult894.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5900, mozilla::dom::quota::Severity::Error); return tryResult894 .propagateErr(); }} | ||||
| 5900 | aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult894 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult894)::ok_type>); if ((__builtin_expect( !!(tryResult894.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult894.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5900, mozilla::dom::quota::Severity::Error); return tryResult894 .propagateErr(); }}; | ||||
| 5901 | |||||
| 5902 | // .sqlite-journal files don't count towards quota. | ||||
| 5903 | QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult895 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult895)::ok_type>); if ((__builtin_expect( !!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5906, mozilla::dom::quota::Severity::Error); return tryResult895 .propagateErr(); }} | ||||
| 5904 | aDatabaseFilenameBase + kSQLiteJournalSuffix,{auto tryResult895 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult895)::ok_type>); if ((__builtin_expect( !!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5906, mozilla::dom::quota::Severity::Error); return tryResult895 .propagateErr(); }} | ||||
| 5905 | /* doesn't count */ nullptr, aPersistenceType,{auto tryResult895 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult895)::ok_type>); if ((__builtin_expect( !!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5906, mozilla::dom::quota::Severity::Error); return tryResult895 .propagateErr(); }} | ||||
| 5906 | aOriginMetadata, Idempotency::Yes))){auto tryResult895 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult895)::ok_type>); if ((__builtin_expect( !!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5906, mozilla::dom::quota::Severity::Error); return tryResult895 .propagateErr(); }}; | ||||
| 5907 | |||||
| 5908 | // .sqlite-shm files don't count towards quota. | ||||
| 5909 | QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult896 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult896)::ok_type>); if ((__builtin_expect( !!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5912, mozilla::dom::quota::Severity::Error); return tryResult896 .propagateErr(); }} | ||||
| 5910 | aDatabaseFilenameBase + kSQLiteSHMSuffix,{auto tryResult896 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult896)::ok_type>); if ((__builtin_expect( !!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5912, mozilla::dom::quota::Severity::Error); return tryResult896 .propagateErr(); }} | ||||
| 5911 | /* doesn't count */ nullptr, aPersistenceType,{auto tryResult896 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult896)::ok_type>); if ((__builtin_expect( !!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5912, mozilla::dom::quota::Severity::Error); return tryResult896 .propagateErr(); }} | ||||
| 5912 | aOriginMetadata, Idempotency::Yes))){auto tryResult896 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult896)::ok_type>); if ((__builtin_expect( !!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5912, mozilla::dom::quota::Severity::Error); return tryResult896 .propagateErr(); }}; | ||||
| 5913 | |||||
| 5914 | // .sqlite-wal files do count towards quota. | ||||
| 5915 | QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult897 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult897)::ok_type>); if ((__builtin_expect( !!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5917, mozilla::dom::quota::Severity::Error); return tryResult897 .propagateErr(); }} | ||||
| 5916 | aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager,{auto tryResult897 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult897)::ok_type>); if ((__builtin_expect( !!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5917, mozilla::dom::quota::Severity::Error); return tryResult897 .propagateErr(); }} | ||||
| 5917 | aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult897 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult897)::ok_type>); if ((__builtin_expect( !!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5917, mozilla::dom::quota::Severity::Error); return tryResult897 .propagateErr(); }}; | ||||
| 5918 | |||||
| 5919 | // The files directory counts towards quota. | ||||
| 5920 | QM_TRY_INSPECT(auto tryResult898 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5923, mozilla::dom::quota::Severity::Error); return tryResult898 .propagateErr(); } const auto& fmDirectory = tryResult898 .inspect(); | ||||
| 5921 | const auto& fmDirectory,auto tryResult898 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5923, mozilla::dom::quota::Severity::Error); return tryResult898 .propagateErr(); } const auto& fmDirectory = tryResult898 .inspect(); | ||||
| 5922 | CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase +auto tryResult898 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5923, mozilla::dom::quota::Severity::Error); return tryResult898 .propagateErr(); } const auto& fmDirectory = tryResult898 .inspect(); | ||||
| 5923 | kFileManagerDirectoryNameSuffix))auto tryResult898 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5923, mozilla::dom::quota::Severity::Error); return tryResult898 .propagateErr(); } const auto& fmDirectory = tryResult898 .inspect();; | ||||
| 5924 | |||||
| 5925 | QM_TRY_INSPECT(const bool& exists,auto tryResult899 = (::mozilla::ToResultInvokeMember( (fmDirectory ), &::mozilla::detail::DerefedType<decltype(fmDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult899.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists )" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5926, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); } const bool& exists = tryResult899.inspect (); | ||||
| 5926 | MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, Exists))auto tryResult899 = (::mozilla::ToResultInvokeMember( (fmDirectory ), &::mozilla::detail::DerefedType<decltype(fmDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult899.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists )" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5926, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); } const bool& exists = tryResult899.inspect ();; | ||||
| 5927 | |||||
| 5928 | if (exists) { | ||||
| 5929 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult900 = (::mozilla::ToResultInvokeMember( (fmDirectory ), &::mozilla::detail::DerefedType<decltype(fmDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult900. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory )" , tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5930, mozilla::dom::quota::Severity::Error); return tryResult900 .propagateErr(); } const bool& isDirectory = tryResult900 .inspect(); | ||||
| 5930 | MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, IsDirectory))auto tryResult900 = (::mozilla::ToResultInvokeMember( (fmDirectory ), &::mozilla::detail::DerefedType<decltype(fmDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult900. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory )" , tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5930, mozilla::dom::quota::Severity::Error); return tryResult900 .propagateErr(); } const bool& isDirectory = tryResult900 .inspect();; | ||||
| 5931 | |||||
| 5932 | QM_TRY(OkIf(isDirectory), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR){auto tryResult901 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult901)::ok_type>); if ((__builtin_expect(!!(tryResult901.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult901.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError , NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | ||||
| 5933 | |||||
| 5934 | QM_TRY(DeleteFileManagerDirectory(*fmDirectory, aQuotaManager,{auto tryResult902 = (DeleteFileManagerDirectory(*fmDirectory , aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert (std::is_empty_v<typename decltype(tryResult902)::ok_type> ); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla ::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)" , tryResult902.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5935, mozilla::dom::quota::Severity::Error); return tryResult902 .propagateErr(); }} | ||||
| 5935 | aPersistenceType, aOriginMetadata)){auto tryResult902 = (DeleteFileManagerDirectory(*fmDirectory , aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert (std::is_empty_v<typename decltype(tryResult902)::ok_type> ); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla ::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)" , tryResult902.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5935, mozilla::dom::quota::Severity::Error); return tryResult902 .propagateErr(); }}; | ||||
| 5936 | } | ||||
| 5937 | |||||
| 5938 | IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get(); | ||||
| 5939 | MOZ_ASSERT_IF(aQuotaManager, mgr)do { if (aQuotaManager) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(mgr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mgr))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("mgr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do { MOZ_CrashSequence(__null, 5939); __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } } while (false ); | ||||
| 5940 | |||||
| 5941 | if (mgr) { | ||||
| 5942 | mgr->InvalidateFileManager(aPersistenceType, aOriginMetadata.mOrigin, | ||||
| 5943 | aDatabaseName); | ||||
| 5944 | } | ||||
| 5945 | |||||
| 5946 | QM_TRY(MOZ_TO_RESULT(RemoveMarkerFile(markerFile))){auto tryResult903 = (ToResult(RemoveMarkerFile(markerFile))) ; static_assert(std::is_empty_v<typename decltype(tryResult903 )::ok_type>); if ((__builtin_expect(!!(tryResult903.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveMarkerFile(markerFile))" , tryResult903.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5946, mozilla::dom::quota::Severity::Error); return tryResult903 .propagateErr(); }}; | ||||
| 5947 | |||||
| 5948 | return NS_OK; | ||||
| 5949 | } | ||||
| 5950 | |||||
| 5951 | /******************************************************************************* | ||||
| 5952 | * Globals | ||||
| 5953 | ******************************************************************************/ | ||||
| 5954 | |||||
| 5955 | // Counts the number of "live" Factory, FactoryOp and Database instances. | ||||
| 5956 | uint64_t gBusyCount = 0; | ||||
| 5957 | |||||
| 5958 | // We don't use LinkedList<CheckedUnsafePtr<FactoryOp>> because | ||||
| 5959 | // CheckedUnsafePtr is not suitable for use within LinkedList. While it's | ||||
| 5960 | // theoretically possible to adapt LinkedList to support it, doing so would | ||||
| 5961 | // introduce unnecessary overhead. Instead, we use a simpler and more | ||||
| 5962 | // efficient approach. Each FactoryOp instance asserts !isInList() in its | ||||
| 5963 | // destructor to catch dangling pointer issues. | ||||
| 5964 | using FactoryOpArray = LinkedList<FactoryOp>; | ||||
| 5965 | |||||
| 5966 | StaticAutoPtr<FactoryOpArray> gFactoryOps; | ||||
| 5967 | |||||
| 5968 | // Maps a database id to information about live database actors. | ||||
| 5969 | using DatabaseActorHashtable = | ||||
| 5970 | nsClassHashtable<nsCStringHashKey, DatabaseActorInfo>; | ||||
| 5971 | |||||
| 5972 | StaticAutoPtr<DatabaseActorHashtable> gLiveDatabaseHashtable; | ||||
| 5973 | |||||
| 5974 | StaticRefPtr<ConnectionPool> gConnectionPool; | ||||
| 5975 | |||||
| 5976 | using DatabaseLoggingInfoHashtable = | ||||
| 5977 | nsTHashMap<nsIDHashKey, DatabaseLoggingInfo*>; | ||||
| 5978 | |||||
| 5979 | StaticAutoPtr<DatabaseLoggingInfoHashtable> gLoggingInfoHashtable; | ||||
| 5980 | |||||
| 5981 | using TelemetryIdHashtable = nsTHashMap<nsUint32HashKey, uint32_t>; | ||||
| 5982 | |||||
| 5983 | StaticAutoPtr<TelemetryIdHashtable> gTelemetryIdHashtable; | ||||
| 5984 | |||||
| 5985 | // Protects all reads and writes to gTelemetryIdHashtable. | ||||
| 5986 | StaticAutoPtr<Mutex> gTelemetryIdMutex; | ||||
| 5987 | |||||
| 5988 | // For private browsing, maps the raw database names provided by content to a | ||||
| 5989 | // replacement UUID in order to avoid exposing the name of the database on | ||||
| 5990 | // disk or a directly derived value, such as the non-private-browsing | ||||
| 5991 | // representation. This mapping will be the same for all databases with the | ||||
| 5992 | // same name across all storage keys/origins for the lifetime of the IDB | ||||
| 5993 | // QuotaClient. In tests, the QuotaClient may be created and destroyed multiple | ||||
| 5994 | // times, but for normal browser use the QuotaClient will last until the | ||||
| 5995 | // browser shuts down. Bug 1831835 will improve this implementation to avoid | ||||
| 5996 | // using the same mapping across storage keys and to deal with the resulting | ||||
| 5997 | // lifecycle issues of the additional memory use. | ||||
| 5998 | using StorageDatabaseNameHashtable = nsTHashMap<nsString, nsString>; | ||||
| 5999 | |||||
| 6000 | StaticAutoPtr<StorageDatabaseNameHashtable> gStorageDatabaseNameHashtable; | ||||
| 6001 | |||||
| 6002 | // Protects all reads and writes to gStorageDatabaseNameHashtable. | ||||
| 6003 | StaticAutoPtr<Mutex> gStorageDatabaseNameMutex; | ||||
| 6004 | |||||
| 6005 | #ifdef DEBUG1 | ||||
| 6006 | |||||
| 6007 | StaticRefPtr<DEBUGThreadSlower> gDEBUGThreadSlower; | ||||
| 6008 | |||||
| 6009 | #endif // DEBUG | ||||
| 6010 | |||||
| 6011 | void IncreaseBusyCount() { | ||||
| 6012 | AssertIsOnBackgroundThread(); | ||||
| 6013 | |||||
| 6014 | // If this is the first instance then we need to do some initialization. | ||||
| 6015 | if (!gBusyCount) { | ||||
| 6016 | MOZ_ASSERT(!gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!gFactoryOps)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!gFactoryOps))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!gFactoryOps", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6016); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gFactoryOps" ")"); do { MOZ_CrashSequence(__null, 6016); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6017 | gFactoryOps = new FactoryOpArray(); | ||||
| 6018 | |||||
| 6019 | MOZ_ASSERT(!gLiveDatabaseHashtable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!gLiveDatabaseHashtable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!gLiveDatabaseHashtable))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!gLiveDatabaseHashtable" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6019) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable" ")"); do { MOZ_CrashSequence(__null, 6019); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6020 | gLiveDatabaseHashtable = new DatabaseActorHashtable(); | ||||
| 6021 | |||||
| 6022 | MOZ_ASSERT(!gLoggingInfoHashtable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!gLoggingInfoHashtable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!gLoggingInfoHashtable))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!gLoggingInfoHashtable" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6022) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLoggingInfoHashtable" ")"); do { MOZ_CrashSequence(__null, 6022); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6023 | gLoggingInfoHashtable = new DatabaseLoggingInfoHashtable(); | ||||
| 6024 | |||||
| 6025 | #ifdef DEBUG1 | ||||
| 6026 | if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) { | ||||
| 6027 | NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been " "modified!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6029) | ||||
| 6028 | "PBackground thread debugging enabled, priority has been "NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been " "modified!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6029) | ||||
| 6029 | "modified!")NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been " "modified!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6029); | ||||
| 6030 | nsCOMPtr<nsISupportsPriority> thread = | ||||
| 6031 | do_QueryInterface(NS_GetCurrentThread()); | ||||
| 6032 | MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thread)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thread", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6032); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")" ); do { MOZ_CrashSequence(__null, 6032); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6033 | |||||
| 6034 | MOZ_ALWAYS_SUCCEEDS(thread->SetPriority(kDEBUGThreadPriority))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (thread->SetPriority(kDEBUGThreadPriority))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(thread->SetPriority(kDEBUGThreadPriority))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6034) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(kDEBUGThreadPriority))" ")"); do { MOZ_CrashSequence(__null, 6034); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6035 | } | ||||
| 6036 | |||||
| 6037 | if (kDEBUGThreadSleepMS) { | ||||
| 6038 | NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every " "event!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6040) | ||||
| 6039 | "PBackground thread debugging enabled, sleeping after every "NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every " "event!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6040) | ||||
| 6040 | "event!")NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every " "event!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6040); | ||||
| 6041 | nsCOMPtr<nsIThreadInternal> thread = | ||||
| 6042 | do_QueryInterface(NS_GetCurrentThread()); | ||||
| 6043 | MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thread)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thread", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6043); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")" ); do { MOZ_CrashSequence(__null, 6043); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6044 | |||||
| 6045 | gDEBUGThreadSlower = new DEBUGThreadSlower(); | ||||
| 6046 | |||||
| 6047 | MOZ_ALWAYS_SUCCEEDS(thread->AddObserver(gDEBUGThreadSlower))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (thread->AddObserver(gDEBUGThreadSlower))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(thread->AddObserver(gDEBUGThreadSlower))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6047) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->AddObserver(gDEBUGThreadSlower))" ")"); do { MOZ_CrashSequence(__null, 6047); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6048 | } | ||||
| 6049 | #endif // DEBUG | ||||
| 6050 | } | ||||
| 6051 | |||||
| 6052 | gBusyCount++; | ||||
| 6053 | } | ||||
| 6054 | |||||
| 6055 | void DecreaseBusyCount() { | ||||
| 6056 | AssertIsOnBackgroundThread(); | ||||
| 6057 | MOZ_ASSERT(gBusyCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gBusyCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gBusyCount))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gBusyCount", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6057); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gBusyCount" ")"); do { MOZ_CrashSequence(__null, 6057); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6058 | |||||
| 6059 | // Clean up if there are no more instances. | ||||
| 6060 | if (--gBusyCount == 0) { | ||||
| 6061 | MOZ_ASSERT(gLoggingInfoHashtable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gLoggingInfoHashtable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gLoggingInfoHashtable))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("gLoggingInfoHashtable" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6061) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable" ")"); do { MOZ_CrashSequence(__null, 6061); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6062 | gLoggingInfoHashtable = nullptr; | ||||
| 6063 | |||||
| 6064 | MOZ_ASSERT(gLiveDatabaseHashtable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gLiveDatabaseHashtable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gLiveDatabaseHashtable))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("gLiveDatabaseHashtable" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6064) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLiveDatabaseHashtable" ")"); do { MOZ_CrashSequence(__null, 6064); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6065 | MOZ_ASSERT(!gLiveDatabaseHashtable->Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!gLiveDatabaseHashtable->Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!gLiveDatabaseHashtable-> Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!gLiveDatabaseHashtable->Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Count()" ")"); do { MOZ_CrashSequence(__null, 6065); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6066 | gLiveDatabaseHashtable = nullptr; | ||||
| 6067 | |||||
| 6068 | MOZ_ASSERT(gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gFactoryOps)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gFactoryOps))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gFactoryOps", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6068); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps" ")"); do { MOZ_CrashSequence(__null, 6068); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6069 | MOZ_ASSERT(gFactoryOps->isEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(gFactoryOps->isEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gFactoryOps->isEmpty()))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("gFactoryOps->isEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6069) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps->isEmpty()" ")"); do { MOZ_CrashSequence(__null, 6069); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6070 | gFactoryOps = nullptr; | ||||
| 6071 | |||||
| 6072 | #ifdef DEBUG1 | ||||
| 6073 | if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) { | ||||
| 6074 | nsCOMPtr<nsISupportsPriority> thread = | ||||
| 6075 | do_QueryInterface(NS_GetCurrentThread()); | ||||
| 6076 | MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thread)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thread", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6076); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")" ); do { MOZ_CrashSequence(__null, 6076); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6077 | |||||
| 6078 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL) )), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6079) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 6079); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 6079 | thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL) )), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6079) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 6079); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6080 | } | ||||
| 6081 | |||||
| 6082 | if (kDEBUGThreadSleepMS) { | ||||
| 6083 | MOZ_ASSERT(gDEBUGThreadSlower)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gDEBUGThreadSlower)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gDEBUGThreadSlower))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gDEBUGThreadSlower" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6083) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gDEBUGThreadSlower" ")"); do { MOZ_CrashSequence(__null, 6083); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6084 | |||||
| 6085 | nsCOMPtr<nsIThreadInternal> thread = | ||||
| 6086 | do_QueryInterface(NS_GetCurrentThread()); | ||||
| 6087 | MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thread)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thread", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6087); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")" ); do { MOZ_CrashSequence(__null, 6087); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6088 | |||||
| 6089 | MOZ_ALWAYS_SUCCEEDS(thread->RemoveObserver(gDEBUGThreadSlower))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (thread->RemoveObserver(gDEBUGThreadSlower))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(thread->RemoveObserver(gDEBUGThreadSlower))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6089) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->RemoveObserver(gDEBUGThreadSlower))" ")"); do { MOZ_CrashSequence(__null, 6089); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6090 | |||||
| 6091 | gDEBUGThreadSlower = nullptr; | ||||
| 6092 | } | ||||
| 6093 | #endif // DEBUG | ||||
| 6094 | } | ||||
| 6095 | } | ||||
| 6096 | |||||
| 6097 | template <typename Condition> | ||||
| 6098 | void InvalidateLiveDatabasesMatching(const Condition& aCondition) { | ||||
| 6099 | AssertIsOnBackgroundThread(); | ||||
| 6100 | |||||
| 6101 | if (!gLiveDatabaseHashtable) { | ||||
| 6102 | return; | ||||
| 6103 | } | ||||
| 6104 | |||||
| 6105 | // Invalidating a Database will cause it to be removed from the | ||||
| 6106 | // gLiveDatabaseHashtable entries' mLiveDatabases, and, if it was the last | ||||
| 6107 | // element in mLiveDatabases, to remove the whole hashtable entry. Therefore, | ||||
| 6108 | // we need to make a temporary list of the databases to invalidate to avoid | ||||
| 6109 | // iterator invalidation. | ||||
| 6110 | |||||
| 6111 | nsTArray<SafeRefPtr<Database>> databases; | ||||
| 6112 | |||||
| 6113 | for (const auto& liveDatabasesEntry : gLiveDatabaseHashtable->Values()) { | ||||
| 6114 | for (Database* const database : liveDatabasesEntry->mLiveDatabases) { | ||||
| 6115 | if (aCondition(*database)) { | ||||
| 6116 | databases.AppendElement( | ||||
| 6117 | SafeRefPtr{database, AcquireStrongRefFromRawPtr{}}); | ||||
| 6118 | } | ||||
| 6119 | } | ||||
| 6120 | } | ||||
| 6121 | |||||
| 6122 | for (const auto& database : databases) { | ||||
| 6123 | database->Invalidate(); | ||||
| 6124 | } | ||||
| 6125 | } | ||||
| 6126 | |||||
| 6127 | uint32_t TelemetryIdForFile(nsIFile* aFile) { | ||||
| 6128 | // May be called on any thread! | ||||
| 6129 | |||||
| 6130 | MOZ_ASSERT(aFile)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aFile)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aFile))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("aFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6130); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFile" ")") ; do { MOZ_CrashSequence(__null, 6130); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6131 | MOZ_ASSERT(gTelemetryIdMutex)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gTelemetryIdMutex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gTelemetryIdMutex))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gTelemetryIdMutex" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6131) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex" ")"); do { MOZ_CrashSequence(__null, 6131); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6132 | |||||
| 6133 | // The storage directory is structured like this: | ||||
| 6134 | // | ||||
| 6135 | // <profile>/storage/<persistence>/<origin>/idb/<filename>.sqlite | ||||
| 6136 | // | ||||
| 6137 | // For the purposes of this function we're only concerned with the | ||||
| 6138 | // <persistence>, <origin>, and <filename> pieces. | ||||
| 6139 | |||||
| 6140 | nsString filename; | ||||
| 6141 | MOZ_ALWAYS_SUCCEEDS(aFile->GetLeafName(filename))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aFile->GetLeafName(filename))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aFile->GetLeafName(filename))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6141) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFile->GetLeafName(filename))" ")"); do { MOZ_CrashSequence(__null, 6141); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6142 | |||||
| 6143 | // Make sure we were given a database file. | ||||
| 6144 | MOZ_ASSERT(StringEndsWith(filename, kSQLiteSuffix))do { static_assert( mozilla::detail::AssertionConditionType< decltype(StringEndsWith(filename, kSQLiteSuffix))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(StringEndsWith(filename, kSQLiteSuffix)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("StringEndsWith(filename, kSQLiteSuffix)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6144) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(filename, kSQLiteSuffix)" ")"); do { MOZ_CrashSequence(__null, 6144); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6145 | |||||
| 6146 | filename.Truncate(filename.Length() - kSQLiteSuffix.Length()); | ||||
| 6147 | |||||
| 6148 | // Get the "idb" directory. | ||||
| 6149 | nsCOMPtr<nsIFile> idbDirectory; | ||||
| 6150 | MOZ_ALWAYS_SUCCEEDS(aFile->GetParent(getter_AddRefs(idbDirectory)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aFile->GetParent(getter_AddRefs(idbDirectory)))), 1)))), 1 ))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aFile->GetParent(getter_AddRefs(idbDirectory)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6150) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFile->GetParent(getter_AddRefs(idbDirectory)))" ")"); do { MOZ_CrashSequence(__null, 6150); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6151 | |||||
| 6152 | DebugOnly<nsString> idbLeafName; | ||||
| 6153 | MOZ_ASSERT(NS_SUCCEEDED(idbDirectory->GetLeafName(idbLeafName)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory ->GetLeafName(idbLeafName))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1 )))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6153) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1)))" ")"); do { MOZ_CrashSequence(__null, 6153); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6154 | MOZ_ASSERT(static_cast<nsString&>(idbLeafName).EqualsLiteral("idb"))do { static_assert( mozilla::detail::AssertionConditionType< decltype(static_cast<nsString&>(idbLeafName).EqualsLiteral ("idb"))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(static_cast<nsString&>(idbLeafName).EqualsLiteral ("idb")))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("static_cast<nsString&>(idbLeafName).EqualsLiteral(\"idb\")" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6154) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<nsString&>(idbLeafName).EqualsLiteral(\"idb\")" ")"); do { MOZ_CrashSequence(__null, 6154); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6155 | |||||
| 6156 | // Get the <origin> directory. | ||||
| 6157 | nsCOMPtr<nsIFile> originDirectory; | ||||
| 6158 | MOZ_ALWAYS_SUCCEEDS(idbDirectory->GetParent(getter_AddRefs(originDirectory)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (idbDirectory->GetParent(getter_AddRefs(originDirectory))) ), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(idbDirectory->GetParent(getter_AddRefs(originDirectory)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6158) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(idbDirectory->GetParent(getter_AddRefs(originDirectory)))" ")"); do { MOZ_CrashSequence(__null, 6158); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6159 | |||||
| 6160 | nsString origin; | ||||
| 6161 | MOZ_ALWAYS_SUCCEEDS(originDirectory->GetLeafName(origin))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (originDirectory->GetLeafName(origin))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(originDirectory->GetLeafName(origin))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6161) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetLeafName(origin))" ")"); do { MOZ_CrashSequence(__null, 6161); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6162 | |||||
| 6163 | // Any databases in these directories are owned by the application and should | ||||
| 6164 | // not have their filenames masked. Hopefully they also appear in the | ||||
| 6165 | // Telemetry.cpp whitelist. | ||||
| 6166 | if (origin.EqualsLiteral("chrome")) { | ||||
| 6167 | return 0; | ||||
| 6168 | } | ||||
| 6169 | |||||
| 6170 | // Get the <persistence> directory. | ||||
| 6171 | nsCOMPtr<nsIFile> persistenceDirectory; | ||||
| 6172 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (originDirectory->GetParent(getter_AddRefs(persistenceDirectory )))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6173) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))" ")"); do { MOZ_CrashSequence(__null, 6173); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 6173 | originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (originDirectory->GetParent(getter_AddRefs(persistenceDirectory )))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6173) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))" ")"); do { MOZ_CrashSequence(__null, 6173); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6174 | |||||
| 6175 | nsString persistence; | ||||
| 6176 | MOZ_ALWAYS_SUCCEEDS(persistenceDirectory->GetLeafName(persistence))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (persistenceDirectory->GetLeafName(persistence))), 1)))), 1 ))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(persistenceDirectory->GetLeafName(persistence))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6176) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(persistenceDirectory->GetLeafName(persistence))" ")"); do { MOZ_CrashSequence(__null, 6176); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6177 | |||||
| 6178 | constexpr auto separator = u"*"_ns; | ||||
| 6179 | |||||
| 6180 | uint32_t hashValue = | ||||
| 6181 | HashString(persistence + separator + origin + separator + filename); | ||||
| 6182 | |||||
| 6183 | MutexAutoLock lock(*gTelemetryIdMutex); | ||||
| 6184 | |||||
| 6185 | if (!gTelemetryIdHashtable) { | ||||
| 6186 | gTelemetryIdHashtable = new TelemetryIdHashtable(); | ||||
| 6187 | } | ||||
| 6188 | |||||
| 6189 | return gTelemetryIdHashtable->LookupOrInsertWith(hashValue, [] { | ||||
| 6190 | static uint32_t sNextId = 1; | ||||
| 6191 | |||||
| 6192 | // We're locked, no need for atomics. | ||||
| 6193 | return sNextId++; | ||||
| 6194 | }); | ||||
| 6195 | } | ||||
| 6196 | |||||
| 6197 | nsAutoString GetDatabaseFilenameBase(const nsAString& aDatabaseName, | ||||
| 6198 | bool aIsPrivate) { | ||||
| 6199 | nsAutoString databaseFilenameBase; | ||||
| 6200 | |||||
| 6201 | if (aIsPrivate) { | ||||
| 6202 | MOZ_DIAGNOSTIC_ASSERT(gStorageDatabaseNameMutex)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gStorageDatabaseNameMutex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gStorageDatabaseNameMutex))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("gStorageDatabaseNameMutex" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6202) ; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "gStorageDatabaseNameMutex" ")"); do { MOZ_CrashSequence(__null, 6202); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6203 | |||||
| 6204 | MutexAutoLock lock(*gStorageDatabaseNameMutex); | ||||
| 6205 | |||||
| 6206 | if (!gStorageDatabaseNameHashtable) { | ||||
| 6207 | gStorageDatabaseNameHashtable = new StorageDatabaseNameHashtable(); | ||||
| 6208 | } | ||||
| 6209 | |||||
| 6210 | databaseFilenameBase.Append( | ||||
| 6211 | gStorageDatabaseNameHashtable->LookupOrInsertWith(aDatabaseName, []() { | ||||
| 6212 | return NSID_TrimBracketsUTF16(nsID::GenerateUUID()); | ||||
| 6213 | })); | ||||
| 6214 | |||||
| 6215 | return databaseFilenameBase; | ||||
| 6216 | } | ||||
| 6217 | |||||
| 6218 | // WARNING: do not change this hash function. See the comment in HashName() | ||||
| 6219 | // for details. | ||||
| 6220 | databaseFilenameBase.AppendInt(HashName(aDatabaseName)); | ||||
| 6221 | |||||
| 6222 | nsAutoCString escapedName; | ||||
| 6223 | if (!NS_Escape(NS_ConvertUTF16toUTF8(aDatabaseName), escapedName, | ||||
| 6224 | url_XPAlphas)) { | ||||
| 6225 | MOZ_CRASH("Can't escape database name!")do { do { } while (false); MOZ_ReportCrash("" "Can't escape database name!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6225) ; AnnotateMozCrashReason("MOZ_CRASH(" "Can't escape database name!" ")"); do { MOZ_CrashSequence(__null, 6225); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 6226 | } | ||||
| 6227 | |||||
| 6228 | const char* forwardIter = escapedName.BeginReading(); | ||||
| 6229 | const char* backwardIter = escapedName.EndReading() - 1; | ||||
| 6230 | |||||
| 6231 | nsAutoCString substring; | ||||
| 6232 | while (forwardIter <= backwardIter && substring.Length() < 21) { | ||||
| 6233 | if (substring.Length() % 2) { | ||||
| 6234 | substring.Append(*backwardIter--); | ||||
| 6235 | } else { | ||||
| 6236 | substring.Append(*forwardIter++); | ||||
| 6237 | } | ||||
| 6238 | } | ||||
| 6239 | |||||
| 6240 | databaseFilenameBase.AppendASCII(substring.get(), substring.Length()); | ||||
| 6241 | |||||
| 6242 | return databaseFilenameBase; | ||||
| 6243 | } | ||||
| 6244 | |||||
| 6245 | const CommonIndexOpenCursorParams& GetCommonIndexOpenCursorParams( | ||||
| 6246 | const OpenCursorParams& aParams) { | ||||
| 6247 | switch (aParams.type()) { | ||||
| 6248 | case OpenCursorParams::TIndexOpenCursorParams: | ||||
| 6249 | return aParams.get_IndexOpenCursorParams().commonIndexParams(); | ||||
| 6250 | case OpenCursorParams::TIndexOpenKeyCursorParams: | ||||
| 6251 | return aParams.get_IndexOpenKeyCursorParams().commonIndexParams(); | ||||
| 6252 | default: | ||||
| 6253 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6253) ; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 6253); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 6254 | } | ||||
| 6255 | } | ||||
| 6256 | |||||
| 6257 | const CommonOpenCursorParams& GetCommonOpenCursorParams( | ||||
| 6258 | const OpenCursorParams& aParams) { | ||||
| 6259 | switch (aParams.type()) { | ||||
| 6260 | case OpenCursorParams::TObjectStoreOpenCursorParams: | ||||
| 6261 | return aParams.get_ObjectStoreOpenCursorParams().commonParams(); | ||||
| 6262 | case OpenCursorParams::TObjectStoreOpenKeyCursorParams: | ||||
| 6263 | return aParams.get_ObjectStoreOpenKeyCursorParams().commonParams(); | ||||
| 6264 | case OpenCursorParams::TIndexOpenCursorParams: | ||||
| 6265 | case OpenCursorParams::TIndexOpenKeyCursorParams: | ||||
| 6266 | return GetCommonIndexOpenCursorParams(aParams).commonParams(); | ||||
| 6267 | default: | ||||
| 6268 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6268) ; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 6268); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 6269 | } | ||||
| 6270 | } | ||||
| 6271 | |||||
| 6272 | // TODO: Using nsCString as a return type here seems to lead to a dependency on | ||||
| 6273 | // some temporaries, which I did not expect. Is it a good idea that the default | ||||
| 6274 | // operator+ behaviour constructs such strings? It is certainly useful as an | ||||
| 6275 | // optimization, but this should be better done via an appropriately named | ||||
| 6276 | // function rather than an operator. | ||||
| 6277 | nsAutoCString MakeColumnPairSelectionList( | ||||
| 6278 | const nsLiteralCString& aPlainColumnName, | ||||
| 6279 | const nsLiteralCString& aLocaleAwareColumnName, | ||||
| 6280 | const nsLiteralCString& aSortColumnAlias, const bool aIsLocaleAware) { | ||||
| 6281 | return aPlainColumnName + | ||||
| 6282 | (aIsLocaleAware ? EmptyCString() : " as "_ns + aSortColumnAlias) + | ||||
| 6283 | ", "_ns + aLocaleAwareColumnName + | ||||
| 6284 | (aIsLocaleAware ? " as "_ns + aSortColumnAlias : EmptyCString()); | ||||
| 6285 | } | ||||
| 6286 | |||||
| 6287 | constexpr bool IsIncreasingOrder(const IDBCursorDirection aDirection) { | ||||
| 6288 | MOZ_ASSERT(aDirection == IDBCursorDirection::Next ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6291) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6291); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 6289 | aDirection == IDBCursorDirection::Nextunique ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6291) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6291); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 6290 | aDirection == IDBCursorDirection::Prev ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6291) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6291); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 6291 | aDirection == IDBCursorDirection::Prevunique)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6291) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6291); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6292 | |||||
| 6293 | return aDirection == IDBCursorDirection::Next || | ||||
| 6294 | aDirection == IDBCursorDirection::Nextunique; | ||||
| 6295 | } | ||||
| 6296 | |||||
| 6297 | constexpr bool IsUnique(const IDBCursorDirection aDirection) { | ||||
| 6298 | MOZ_ASSERT(aDirection == IDBCursorDirection::Next ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6301) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6301); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 6299 | aDirection == IDBCursorDirection::Nextunique ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6301) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6301); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 6300 | aDirection == IDBCursorDirection::Prev ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6301) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6301); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 6301 | aDirection == IDBCursorDirection::Prevunique)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6301) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6301); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6302 | |||||
| 6303 | return aDirection == IDBCursorDirection::Nextunique || | ||||
| 6304 | aDirection == IDBCursorDirection::Prevunique; | ||||
| 6305 | } | ||||
| 6306 | |||||
| 6307 | // TODO: In principle, this could be constexpr, if operator+(nsLiteralCString, | ||||
| 6308 | // nsLiteralCString) were constexpr and returned a literal type. | ||||
| 6309 | nsAutoCString MakeDirectionClause( | ||||
| 6310 | const IDBCursorDirection aDirection, | ||||
| 6311 | const nsLiteralCString& column = kColumnNameKey) { | ||||
| 6312 | return " ORDER BY "_ns + column + | ||||
| 6313 | (IsIncreasingOrder(aDirection) ? " ASC"_ns : " DESC"_ns); | ||||
| 6314 | } | ||||
| 6315 | |||||
| 6316 | enum struct ComparisonOperator { | ||||
| 6317 | LessThan, | ||||
| 6318 | LessOrEquals, | ||||
| 6319 | Equals, | ||||
| 6320 | GreaterThan, | ||||
| 6321 | GreaterOrEquals, | ||||
| 6322 | }; | ||||
| 6323 | |||||
| 6324 | constexpr nsLiteralCString GetComparisonOperatorString( | ||||
| 6325 | const ComparisonOperator aComparisonOperator) { | ||||
| 6326 | switch (aComparisonOperator) { | ||||
| 6327 | case ComparisonOperator::LessThan: | ||||
| 6328 | return "<"_ns; | ||||
| 6329 | case ComparisonOperator::LessOrEquals: | ||||
| 6330 | return "<="_ns; | ||||
| 6331 | case ComparisonOperator::Equals: | ||||
| 6332 | return "=="_ns; | ||||
| 6333 | case ComparisonOperator::GreaterThan: | ||||
| 6334 | return ">"_ns; | ||||
| 6335 | case ComparisonOperator::GreaterOrEquals: | ||||
| 6336 | return ">="_ns; | ||||
| 6337 | } | ||||
| 6338 | |||||
| 6339 | // TODO: This is just to silence the "control reaches end of non-void | ||||
| 6340 | // function" warning. Cannot use MOZ_CRASH in a constexpr function, | ||||
| 6341 | // unfortunately. | ||||
| 6342 | return ""_ns; | ||||
| 6343 | } | ||||
| 6344 | |||||
| 6345 | nsAutoCString GetKeyClause(const nsACString& aColumnName, | ||||
| 6346 | const ComparisonOperator aComparisonOperator, | ||||
| 6347 | const nsLiteralCString& aStmtParamName) { | ||||
| 6348 | return aColumnName + " "_ns + | ||||
| 6349 | GetComparisonOperatorString(aComparisonOperator) + " :"_ns + | ||||
| 6350 | aStmtParamName; | ||||
| 6351 | } | ||||
| 6352 | |||||
| 6353 | nsAutoCString GetSortKeyClause(const ComparisonOperator aComparisonOperator, | ||||
| 6354 | const nsLiteralCString& aStmtParamName) { | ||||
| 6355 | return GetKeyClause(kColumnNameAliasSortKey, aComparisonOperator, | ||||
| 6356 | aStmtParamName); | ||||
| 6357 | } | ||||
| 6358 | |||||
| 6359 | nsAutoCString GetRowValueClause(const nsACString& aColumn1, | ||||
| 6360 | const nsACString& aColumn2, | ||||
| 6361 | const ComparisonOperator aComparisonOperator, | ||||
| 6362 | const nsLiteralCString& aStmtParamName1, | ||||
| 6363 | const nsLiteralCString& aStmtParamName2) { | ||||
| 6364 | return "("_ns + aColumn1 + ", "_ns + aColumn2 + ") "_ns + | ||||
| 6365 | GetComparisonOperatorString(aComparisonOperator) + " (:"_ns + | ||||
| 6366 | aStmtParamName1 + ", :"_ns + aStmtParamName2 + ")"_ns; | ||||
| 6367 | } | ||||
| 6368 | |||||
| 6369 | template <IDBCursorType CursorType> | ||||
| 6370 | struct PopulateResponseHelper; | ||||
| 6371 | |||||
| 6372 | struct CommonPopulateResponseHelper { | ||||
| 6373 | explicit CommonPopulateResponseHelper( | ||||
| 6374 | const TransactionDatabaseOperationBase& aOp) | ||||
| 6375 | : mOp{aOp} {} | ||||
| 6376 | |||||
| 6377 | nsresult GetKeys(mozIStorageStatement* const aStmt, | ||||
| 6378 | Key* const aOptOutSortKey) { | ||||
| 6379 | QM_TRY(MOZ_TO_RESULT(GetCommonKeys(aStmt))){auto tryResult904 = (ToResult(GetCommonKeys(aStmt))); static_assert (std::is_empty_v<typename decltype(tryResult904)::ok_type> ); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(GetCommonKeys(aStmt))", tryResult904 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6379, mozilla::dom::quota::Severity::Error); return tryResult904 .propagateErr(); }}; | ||||
| 6380 | |||||
| 6381 | if (aOptOutSortKey) { | ||||
| 6382 | *aOptOutSortKey = mPosition; | ||||
| 6383 | } | ||||
| 6384 | |||||
| 6385 | return NS_OK; | ||||
| 6386 | } | ||||
| 6387 | |||||
| 6388 | nsresult GetCommonKeys(mozIStorageStatement* const aStmt) { | ||||
| 6389 | MOZ_ASSERT(mPosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mPosition.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mPosition.IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mPosition.IsUnset()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6389) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPosition.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 6389); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6390 | |||||
| 6391 | QM_TRY(MOZ_TO_RESULT(mPosition.SetFromStatement(aStmt, 0))){auto tryResult905 = (ToResult(mPosition.SetFromStatement(aStmt , 0))); static_assert(std::is_empty_v<typename decltype(tryResult905 )::ok_type>); if ((__builtin_expect(!!(tryResult905.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(mPosition.SetFromStatement(aStmt, 0))" , tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6391, mozilla::dom::quota::Severity::Error); return tryResult905 .propagateErr(); }}; | ||||
| 6392 | |||||
| 6393 | 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()) | ||||
| 6394 | "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()) | ||||
| 6395 | 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()) | ||||
| 6396 | 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()) | ||||
| 6397 | 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()); | ||||
| 6398 | |||||
| 6399 | return NS_OK; | ||||
| 6400 | } | ||||
| 6401 | |||||
| 6402 | template <typename Response> | ||||
| 6403 | void FillKeys(Response& aResponse) { | ||||
| 6404 | MOZ_ASSERT(!mPosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mPosition.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mPosition.IsUnset()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mPosition.IsUnset()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6404) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPosition.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 6404); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6405 | aResponse.key() = std::move(mPosition); | ||||
| 6406 | } | ||||
| 6407 | |||||
| 6408 | template <typename Response> | ||||
| 6409 | static size_t GetKeySize(const Response& aResponse) { | ||||
| 6410 | return aResponse.key().GetBuffer().Length(); | ||||
| 6411 | } | ||||
| 6412 | |||||
| 6413 | protected: | ||||
| 6414 | const Key& GetPosition() const { return mPosition; } | ||||
| 6415 | |||||
| 6416 | private: | ||||
| 6417 | const TransactionDatabaseOperationBase& mOp; | ||||
| 6418 | Key mPosition; | ||||
| 6419 | }; | ||||
| 6420 | |||||
| 6421 | struct IndexPopulateResponseHelper : CommonPopulateResponseHelper { | ||||
| 6422 | using CommonPopulateResponseHelper::CommonPopulateResponseHelper; | ||||
| 6423 | |||||
| 6424 | nsresult GetKeys(mozIStorageStatement* const aStmt, | ||||
| 6425 | Key* const aOptOutSortKey) { | ||||
| 6426 | MOZ_ASSERT(mLocaleAwarePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLocaleAwarePosition.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLocaleAwarePosition.IsUnset ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mLocaleAwarePosition.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6426); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLocaleAwarePosition.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 6426); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6427 | MOZ_ASSERT(mObjectStorePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mObjectStorePosition.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mObjectStorePosition.IsUnset ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mObjectStorePosition.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6427); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStorePosition.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 6427); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6428 | |||||
| 6429 | QM_TRY(MOZ_TO_RESULT(CommonPopulateResponseHelper::GetCommonKeys(aStmt))){auto tryResult906 = (ToResult(CommonPopulateResponseHelper:: GetCommonKeys(aStmt))); static_assert(std::is_empty_v<typename decltype(tryResult906)::ok_type>); if ((__builtin_expect( !!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(CommonPopulateResponseHelper::GetCommonKeys(aStmt))" , tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6429, mozilla::dom::quota::Severity::Error); return tryResult906 .propagateErr(); }}; | ||||
| 6430 | |||||
| 6431 | QM_TRY(MOZ_TO_RESULT(mLocaleAwarePosition.SetFromStatement(aStmt, 1))){auto tryResult907 = (ToResult(mLocaleAwarePosition.SetFromStatement (aStmt, 1))); static_assert(std::is_empty_v<typename decltype (tryResult907)::ok_type>); if ((__builtin_expect(!!(tryResult907 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mLocaleAwarePosition.SetFromStatement(aStmt, 1))" , tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6431, mozilla::dom::quota::Severity::Error); return tryResult907 .propagateErr(); }}; | ||||
| 6432 | |||||
| 6433 | QM_TRY(MOZ_TO_RESULT(mObjectStorePosition.SetFromStatement(aStmt, 2))){auto tryResult908 = (ToResult(mObjectStorePosition.SetFromStatement (aStmt, 2))); static_assert(std::is_empty_v<typename decltype (tryResult908)::ok_type>); if ((__builtin_expect(!!(tryResult908 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mObjectStorePosition.SetFromStatement(aStmt, 2))" , tryResult908.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6433, mozilla::dom::quota::Severity::Error); return tryResult908 .propagateErr(); }}; | ||||
| 6434 | |||||
| 6435 | if (aOptOutSortKey) { | ||||
| 6436 | *aOptOutSortKey = | ||||
| 6437 | mLocaleAwarePosition.IsUnset() ? GetPosition() : mLocaleAwarePosition; | ||||
| 6438 | } | ||||
| 6439 | |||||
| 6440 | return NS_OK; | ||||
| 6441 | } | ||||
| 6442 | |||||
| 6443 | template <typename Response> | ||||
| 6444 | void FillKeys(Response& aResponse) { | ||||
| 6445 | MOZ_ASSERT(!mLocaleAwarePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mLocaleAwarePosition.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mLocaleAwarePosition.IsUnset ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mLocaleAwarePosition.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6445); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mLocaleAwarePosition.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 6445); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6446 | MOZ_ASSERT(!mObjectStorePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mObjectStorePosition.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mObjectStorePosition.IsUnset ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mObjectStorePosition.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6446); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStorePosition.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 6446); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6447 | |||||
| 6448 | CommonPopulateResponseHelper::FillKeys(aResponse); | ||||
| 6449 | aResponse.sortKey() = std::move(mLocaleAwarePosition); | ||||
| 6450 | aResponse.objectKey() = std::move(mObjectStorePosition); | ||||
| 6451 | } | ||||
| 6452 | |||||
| 6453 | template <typename Response> | ||||
| 6454 | static size_t GetKeySize(Response& aResponse) { | ||||
| 6455 | return CommonPopulateResponseHelper::GetKeySize(aResponse) + | ||||
| 6456 | aResponse.sortKey().GetBuffer().Length() + | ||||
| 6457 | aResponse.objectKey().GetBuffer().Length(); | ||||
| 6458 | } | ||||
| 6459 | |||||
| 6460 | private: | ||||
| 6461 | Key mLocaleAwarePosition, mObjectStorePosition; | ||||
| 6462 | }; | ||||
| 6463 | |||||
| 6464 | struct KeyPopulateResponseHelper { | ||||
| 6465 | static constexpr nsresult MaybeGetCloneInfo( | ||||
| 6466 | mozIStorageStatement* const /*aStmt*/, const CursorBase& /*aCursor*/) { | ||||
| 6467 | return NS_OK; | ||||
| 6468 | } | ||||
| 6469 | |||||
| 6470 | template <typename Response> | ||||
| 6471 | static constexpr size_t MaybeGetCloneInfoSize(const Response& /*aResponse*/) { | ||||
| 6472 | return 0; | ||||
| 6473 | } | ||||
| 6474 | }; | ||||
| 6475 | |||||
| 6476 | template <bool StatementHasIndexKeyBindings> | ||||
| 6477 | struct ValuePopulateResponseHelper { | ||||
| 6478 | nsresult MaybeGetCloneInfo(mozIStorageStatement* const aStmt, | ||||
| 6479 | const ValueCursorBase& aCursor) { | ||||
| 6480 | constexpr auto offset = StatementHasIndexKeyBindings ? 2 : 0; | ||||
| 6481 | |||||
| 6482 | QM_TRY_UNWRAP(auto cloneInfo,auto tryResult909 = (GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if ( (__builtin_expect(!!(tryResult909.isErr()), 0))) { mozilla::dom ::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)" , tryResult909.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6484, mozilla::dom::quota::Severity::Error); return tryResult909 .propagateErr(); } auto cloneInfo = tryResult909.unwrap(); | ||||
| 6483 | GetStructuredCloneReadInfoFromStatement(auto tryResult909 = (GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if ( (__builtin_expect(!!(tryResult909.isErr()), 0))) { mozilla::dom ::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)" , tryResult909.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6484, mozilla::dom::quota::Severity::Error); return tryResult909 .propagateErr(); } auto cloneInfo = tryResult909.unwrap(); | ||||
| 6484 | aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager))auto tryResult909 = (GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if ( (__builtin_expect(!!(tryResult909.isErr()), 0))) { mozilla::dom ::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)" , tryResult909.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6484, mozilla::dom::quota::Severity::Error); return tryResult909 .propagateErr(); } auto cloneInfo = tryResult909.unwrap();; | ||||
| 6485 | |||||
| 6486 | mCloneInfo.init(std::move(cloneInfo)); | ||||
| 6487 | |||||
| 6488 | if (mCloneInfo->HasPreprocessInfo()) { | ||||
| 6489 | IDB_WARNING("Preprocessing for cursors not yet implemented!")do { nsPrintfCString s("Preprocessing for cursors not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6489) ; } while (0); | ||||
| 6490 | return NS_ERROR_NOT_IMPLEMENTED; | ||||
| 6491 | } | ||||
| 6492 | |||||
| 6493 | return NS_OK; | ||||
| 6494 | } | ||||
| 6495 | |||||
| 6496 | template <typename Response> | ||||
| 6497 | void MaybeFillCloneInfo(Response& aResponse, FilesArray* const aFiles) { | ||||
| 6498 | auto cloneInfo = mCloneInfo.release(); | ||||
| 6499 | aResponse.cloneInfo().data().data = cloneInfo.ReleaseData(); | ||||
| 6500 | aFiles->AppendElement(cloneInfo.ReleaseFiles()); | ||||
| 6501 | } | ||||
| 6502 | |||||
| 6503 | template <typename Response> | ||||
| 6504 | static size_t MaybeGetCloneInfoSize(const Response& aResponse) { | ||||
| 6505 | return aResponse.cloneInfo().data().data.Size(); | ||||
| 6506 | } | ||||
| 6507 | |||||
| 6508 | private: | ||||
| 6509 | LazyInitializedOnceEarlyDestructible<const StructuredCloneReadInfoParent> | ||||
| 6510 | mCloneInfo; | ||||
| 6511 | }; | ||||
| 6512 | |||||
| 6513 | template <> | ||||
| 6514 | struct PopulateResponseHelper<IDBCursorType::ObjectStore> | ||||
| 6515 | : ValuePopulateResponseHelper<false>, CommonPopulateResponseHelper { | ||||
| 6516 | using CommonPopulateResponseHelper::CommonPopulateResponseHelper; | ||||
| 6517 | |||||
| 6518 | static auto& GetTypedResponse(CursorResponse* const aResponse) { | ||||
| 6519 | return aResponse->get_ArrayOfObjectStoreCursorResponse(); | ||||
| 6520 | } | ||||
| 6521 | }; | ||||
| 6522 | |||||
| 6523 | template <> | ||||
| 6524 | struct PopulateResponseHelper<IDBCursorType::ObjectStoreKey> | ||||
| 6525 | : KeyPopulateResponseHelper, CommonPopulateResponseHelper { | ||||
| 6526 | using CommonPopulateResponseHelper::CommonPopulateResponseHelper; | ||||
| 6527 | |||||
| 6528 | static auto& GetTypedResponse(CursorResponse* const aResponse) { | ||||
| 6529 | return aResponse->get_ArrayOfObjectStoreKeyCursorResponse(); | ||||
| 6530 | } | ||||
| 6531 | }; | ||||
| 6532 | |||||
| 6533 | template <> | ||||
| 6534 | struct PopulateResponseHelper<IDBCursorType::Index> | ||||
| 6535 | : ValuePopulateResponseHelper<true>, IndexPopulateResponseHelper { | ||||
| 6536 | using IndexPopulateResponseHelper::IndexPopulateResponseHelper; | ||||
| 6537 | |||||
| 6538 | static auto& GetTypedResponse(CursorResponse* const aResponse) { | ||||
| 6539 | return aResponse->get_ArrayOfIndexCursorResponse(); | ||||
| 6540 | } | ||||
| 6541 | }; | ||||
| 6542 | |||||
| 6543 | template <> | ||||
| 6544 | struct PopulateResponseHelper<IDBCursorType::IndexKey> | ||||
| 6545 | : KeyPopulateResponseHelper, IndexPopulateResponseHelper { | ||||
| 6546 | using IndexPopulateResponseHelper::IndexPopulateResponseHelper; | ||||
| 6547 | |||||
| 6548 | static auto& GetTypedResponse(CursorResponse* const aResponse) { | ||||
| 6549 | return aResponse->get_ArrayOfIndexKeyCursorResponse(); | ||||
| 6550 | } | ||||
| 6551 | }; | ||||
| 6552 | |||||
| 6553 | nsresult DispatchAndReturnFileReferences( | ||||
| 6554 | PersistenceType aPersistenceType, const nsACString& aOrigin, | ||||
| 6555 | const nsAString& aDatabaseName, const int64_t aFileId, | ||||
| 6556 | int32_t* const aMemRefCnt, int32_t* const aDBRefCnt, bool* const aResult) { | ||||
| 6557 | AssertIsOnBackgroundThread(); | ||||
| 6558 | MOZ_ASSERT(aMemRefCnt)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMemRefCnt)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMemRefCnt))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aMemRefCnt", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6558); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMemRefCnt" ")"); do { MOZ_CrashSequence(__null, 6558); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6559 | MOZ_ASSERT(aDBRefCnt)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDBRefCnt)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDBRefCnt))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDBRefCnt", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6559); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt" ")" ); do { MOZ_CrashSequence(__null, 6559); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6560 | MOZ_ASSERT(aResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6560); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")" ); do { MOZ_CrashSequence(__null, 6560); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6561 | |||||
| 6562 | *aResult = false; | ||||
| 6563 | *aMemRefCnt = -1; | ||||
| 6564 | *aDBRefCnt = -1; | ||||
| 6565 | |||||
| 6566 | mozilla::Monitor monitor MOZ_ANNOTATED(__func__); | ||||
| 6567 | bool waiting = true; | ||||
| 6568 | |||||
| 6569 | auto lambda = [&] { | ||||
| 6570 | AssertIsOnIOThread(); | ||||
| 6571 | |||||
| 6572 | { | ||||
| 6573 | IndexedDatabaseManager* const mgr = IndexedDatabaseManager::Get(); | ||||
| 6574 | MOZ_ASSERT(mgr)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mgr)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(mgr))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mgr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do { MOZ_CrashSequence(__null, 6574); __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | ||||
| 6575 | |||||
| 6576 | const SafeRefPtr<DatabaseFileManager> fileManager = | ||||
| 6577 | mgr->GetFileManager(aPersistenceType, aOrigin, aDatabaseName); | ||||
| 6578 | |||||
| 6579 | if (fileManager) { | ||||
| 6580 | const SafeRefPtr<DatabaseFileInfo> fileInfo = | ||||
| 6581 | fileManager->GetFileInfo(aFileId); | ||||
| 6582 | |||||
| 6583 | if (fileInfo) { | ||||
| 6584 | fileInfo->GetReferences(aMemRefCnt, aDBRefCnt); | ||||
| 6585 | |||||
| 6586 | if (*aMemRefCnt != -1) { | ||||
| 6587 | // We added an extra temp ref, so account for that accordingly. | ||||
| 6588 | (*aMemRefCnt)--; | ||||
| 6589 | } | ||||
| 6590 | |||||
| 6591 | *aResult = true; | ||||
| 6592 | } | ||||
| 6593 | } | ||||
| 6594 | } | ||||
| 6595 | |||||
| 6596 | mozilla::MonitorAutoLock lock(monitor); | ||||
| 6597 | MOZ_ASSERT(waiting)do { static_assert( mozilla::detail::AssertionConditionType< decltype(waiting)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(waiting))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("waiting", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6597); AnnotateMozCrashReason("MOZ_ASSERT" "(" "waiting" ")" ); do { MOZ_CrashSequence(__null, 6597); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6598 | |||||
| 6599 | waiting = false; | ||||
| 6600 | lock.Notify(); | ||||
| 6601 | }; | ||||
| 6602 | |||||
| 6603 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 6604 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 6604); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6605 | |||||
| 6606 | // XXX can't we simply use NS_DispatchAndSpinEventLoopUntilComplete instead of | ||||
| 6607 | // using a monitor? | ||||
| 6608 | QM_TRY(MOZ_TO_RESULT(quotaManager->IOThread()->Dispatch({auto tryResult910 = (ToResult(quotaManager->IOThread()-> Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move (lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert( std::is_empty_v<typename decltype(tryResult910)::ok_type> ); if ((__builtin_expect(!!(tryResult910.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))" , tryResult910.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6610, mozilla::dom::quota::Severity::Error); return tryResult910 .propagateErr(); }} | ||||
| 6609 | NS_NewRunnableFunction("GetFileReferences", std::move(lambda)),{auto tryResult910 = (ToResult(quotaManager->IOThread()-> Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move (lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert( std::is_empty_v<typename decltype(tryResult910)::ok_type> ); if ((__builtin_expect(!!(tryResult910.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))" , tryResult910.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6610, mozilla::dom::quota::Severity::Error); return tryResult910 .propagateErr(); }} | ||||
| 6610 | NS_DISPATCH_NORMAL))){auto tryResult910 = (ToResult(quotaManager->IOThread()-> Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move (lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert( std::is_empty_v<typename decltype(tryResult910)::ok_type> ); if ((__builtin_expect(!!(tryResult910.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))" , tryResult910.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6610, mozilla::dom::quota::Severity::Error); return tryResult910 .propagateErr(); }}; | ||||
| 6611 | |||||
| 6612 | mozilla::MonitorAutoLock autolock(monitor); | ||||
| 6613 | while (waiting) { | ||||
| 6614 | autolock.Wait(); | ||||
| 6615 | } | ||||
| 6616 | |||||
| 6617 | return NS_OK; | ||||
| 6618 | } | ||||
| 6619 | |||||
| 6620 | class DeserializeIndexValueHelper final : public Runnable { | ||||
| 6621 | public: | ||||
| 6622 | DeserializeIndexValueHelper(int64_t aIndexID, const KeyPath& aKeyPath, | ||||
| 6623 | bool aMultiEntry, const nsACString& aLocale, | ||||
| 6624 | StructuredCloneReadInfoParent& aCloneReadInfo, | ||||
| 6625 | nsTArray<IndexUpdateInfo>& aUpdateInfoArray) | ||||
| 6626 | : Runnable("DeserializeIndexValueHelper"), | ||||
| 6627 | mMonitor("DeserializeIndexValueHelper::mMonitor"), | ||||
| 6628 | mIndexID(aIndexID), | ||||
| 6629 | mKeyPath(aKeyPath), | ||||
| 6630 | mMultiEntry(aMultiEntry), | ||||
| 6631 | mLocale(aLocale), | ||||
| 6632 | mCloneReadInfo(aCloneReadInfo), | ||||
| 6633 | mUpdateInfoArray(aUpdateInfoArray), | ||||
| 6634 | mStatus(NS_ERROR_FAILURE), | ||||
| 6635 | mDone{false} {} | ||||
| 6636 | |||||
| 6637 | nsresult DispatchAndWait() { | ||||
| 6638 | // FIXME(Bug 1637530) Re-enable optimization using a non-system-principaled | ||||
| 6639 | // JS context | ||||
| 6640 | #if 0 | ||||
| 6641 | // We don't need to go to the main-thread and use the sandbox. Let's create | ||||
| 6642 | // the updateInfo data here. | ||||
| 6643 | if (!mCloneReadInfo.Data().Size()) { | ||||
| 6644 | AutoJSAPI jsapi; | ||||
| 6645 | jsapi.Init(); | ||||
| 6646 | |||||
| 6647 | JS::Rooted<JS::Value> value(jsapi.cx()); | ||||
| 6648 | value.setUndefined(); | ||||
| 6649 | |||||
| 6650 | ErrorResult rv; | ||||
| 6651 | IDBObjectStore::AppendIndexUpdateInfo( | ||||
| 6652 | mIndexID, mKeyPath, mMultiEntry, &mUpdateInfoArray, | ||||
| 6653 | /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &rv); | ||||
| 6654 | return rv.Failed() ? rv.StealNSResult() : NS_OK; | ||||
| 6655 | } | ||||
| 6656 | #endif | ||||
| 6657 | |||||
| 6658 | // The operation will continue on the main-thread. | ||||
| 6659 | |||||
| 6660 | MOZ_ASSERT(!(mCloneReadInfo.Data().Size() % sizeof(uint64_t)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!(mCloneReadInfo.Data().Size() % sizeof(uint64_t)))> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!(mCloneReadInfo.Data().Size() % sizeof(uint64_t)))) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!(mCloneReadInfo.Data().Size() % sizeof(uint64_t))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6660) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(mCloneReadInfo.Data().Size() % sizeof(uint64_t))" ")"); do { MOZ_CrashSequence(__null, 6660); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6661 | |||||
| 6662 | MonitorAutoLock lock(mMonitor); | ||||
| 6663 | |||||
| 6664 | RefPtr<Runnable> self = this; | ||||
| 6665 | QM_TRY(MOZ_TO_RESULT(SchedulerGroup::Dispatch(self.forget()))){auto tryResult911 = (ToResult(SchedulerGroup::Dispatch(self. forget()))); static_assert(std::is_empty_v<typename decltype (tryResult911)::ok_type>); if ((__builtin_expect(!!(tryResult911 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SchedulerGroup::Dispatch(self.forget()))" , tryResult911.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6665, mozilla::dom::quota::Severity::Error); return tryResult911 .propagateErr(); }}; | ||||
| 6666 | |||||
| 6667 | while (!mDone) { | ||||
| 6668 | lock.Wait(); | ||||
| 6669 | } | ||||
| 6670 | |||||
| 6671 | return mStatus; | ||||
| 6672 | } | ||||
| 6673 | |||||
| 6674 | NS_IMETHODvirtual nsresult | ||||
| 6675 | Run() override { | ||||
| 6676 | MOZ_ASSERT(NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6676) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 6676); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6677 | |||||
| 6678 | AutoJSAPI jsapi; | ||||
| 6679 | jsapi.Init(); | ||||
| 6680 | JSContext* const cx = jsapi.cx(); | ||||
| 6681 | |||||
| 6682 | JS::Rooted<JSObject*> global(cx, GetSandbox(cx)); | ||||
| 6683 | |||||
| 6684 | QM_TRY(OkIf(global), NS_OK,{auto tryResult912 = (OkIf(global)); static_assert(std::is_empty_v <typename decltype(tryResult912)::ok_type>); if ((__builtin_expect (!!(tryResult912.isErr()), 0))) { auto tryTempError = tryResult912 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(global)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6685, mozilla::dom::quota::Severity::Error); [this](const NotOk ) { OperationCompleted(NS_ERROR_FAILURE); }(tryTempError); [[ maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(global)" , tryTempError, NS_OK); }} | ||||
| 6685 | [this](const NotOk) { OperationCompleted(NS_ERROR_FAILURE); }){auto tryResult912 = (OkIf(global)); static_assert(std::is_empty_v <typename decltype(tryResult912)::ok_type>); if ((__builtin_expect (!!(tryResult912.isErr()), 0))) { auto tryTempError = tryResult912 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(global)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6685, mozilla::dom::quota::Severity::Error); [this](const NotOk ) { OperationCompleted(NS_ERROR_FAILURE); }(tryTempError); [[ maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(global)" , tryTempError, NS_OK); }}; | ||||
| 6686 | |||||
| 6687 | const JSAutoRealm ar(cx, global); | ||||
| 6688 | |||||
| 6689 | JS::Rooted<JS::Value> value(cx); | ||||
| 6690 | QM_TRY(MOZ_TO_RESULT(DeserializeIndexValue(cx, &value)), NS_OK,{auto tryResult913 = (ToResult(DeserializeIndexValue(cx, & value))); static_assert(std::is_empty_v<typename decltype( tryResult913)::ok_type>); if ((__builtin_expect(!!(tryResult913 .isErr()), 0))) { auto tryTempError = tryResult913.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(DeserializeIndexValue(cx, &value))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6691, mozilla::dom::quota::Severity::Error); [this](const nsresult rv) { OperationCompleted(rv); }(tryTempError); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeserializeIndexValue(cx, &value))" , tryTempError, NS_OK); }} | ||||
| 6691 | [this](const nsresult rv) { OperationCompleted(rv); }){auto tryResult913 = (ToResult(DeserializeIndexValue(cx, & value))); static_assert(std::is_empty_v<typename decltype( tryResult913)::ok_type>); if ((__builtin_expect(!!(tryResult913 .isErr()), 0))) { auto tryTempError = tryResult913.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(DeserializeIndexValue(cx, &value))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6691, mozilla::dom::quota::Severity::Error); [this](const nsresult rv) { OperationCompleted(rv); }(tryTempError); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeserializeIndexValue(cx, &value))" , tryTempError, NS_OK); }}; | ||||
| 6692 | |||||
| 6693 | ErrorResult errorResult; | ||||
| 6694 | IDBObjectStore::AppendIndexUpdateInfo( | ||||
| 6695 | mIndexID, mKeyPath, mMultiEntry, mLocale, cx, value, &mUpdateInfoArray, | ||||
| 6696 | /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &errorResult); | ||||
| 6697 | QM_TRY(OkIf(!errorResult.Failed()), NS_OK,{auto tryResult914 = (OkIf(!errorResult.Failed())); static_assert (std::is_empty_v<typename decltype(tryResult914)::ok_type> ); if ((__builtin_expect(!!(tryResult914.isErr()), 0))) { auto tryTempError = tryResult914.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6700, mozilla::dom::quota::Severity::Error); ([this, &errorResult ](const NotOk) { OperationCompleted(errorResult.StealNSResult ()); })(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); } } | ||||
| 6698 | ([this, &errorResult](const NotOk) {{auto tryResult914 = (OkIf(!errorResult.Failed())); static_assert (std::is_empty_v<typename decltype(tryResult914)::ok_type> ); if ((__builtin_expect(!!(tryResult914.isErr()), 0))) { auto tryTempError = tryResult914.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6700, mozilla::dom::quota::Severity::Error); ([this, &errorResult ](const NotOk) { OperationCompleted(errorResult.StealNSResult ()); })(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); } } | ||||
| 6699 | OperationCompleted(errorResult.StealNSResult());{auto tryResult914 = (OkIf(!errorResult.Failed())); static_assert (std::is_empty_v<typename decltype(tryResult914)::ok_type> ); if ((__builtin_expect(!!(tryResult914.isErr()), 0))) { auto tryTempError = tryResult914.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6700, mozilla::dom::quota::Severity::Error); ([this, &errorResult ](const NotOk) { OperationCompleted(errorResult.StealNSResult ()); })(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); } } | ||||
| 6700 | })){auto tryResult914 = (OkIf(!errorResult.Failed())); static_assert (std::is_empty_v<typename decltype(tryResult914)::ok_type> ); if ((__builtin_expect(!!(tryResult914.isErr()), 0))) { auto tryTempError = tryResult914.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6700, mozilla::dom::quota::Severity::Error); ([this, &errorResult ](const NotOk) { OperationCompleted(errorResult.StealNSResult ()); })(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); } }; | ||||
| 6701 | |||||
| 6702 | OperationCompleted(NS_OK); | ||||
| 6703 | return NS_OK; | ||||
| 6704 | } | ||||
| 6705 | |||||
| 6706 | private: | ||||
| 6707 | nsresult DeserializeIndexValue(JSContext* aCx, | ||||
| 6708 | JS::MutableHandle<JS::Value> aValue) { | ||||
| 6709 | static const JSStructuredCloneCallbacks callbacks = { | ||||
| 6710 | StructuredCloneReadCallback<StructuredCloneReadInfoParent>, | ||||
| 6711 | nullptr, | ||||
| 6712 | nullptr, | ||||
| 6713 | nullptr, | ||||
| 6714 | nullptr, | ||||
| 6715 | nullptr, | ||||
| 6716 | nullptr, | ||||
| 6717 | nullptr}; | ||||
| 6718 | |||||
| 6719 | if (!JS_ReadStructuredClone( | ||||
| 6720 | aCx, mCloneReadInfo.Data(), JS_STRUCTURED_CLONE_VERSION8, | ||||
| 6721 | JS::StructuredCloneScope::DifferentProcessForIndexedDB, aValue, | ||||
| 6722 | JS::CloneDataPolicy(), &callbacks, &mCloneReadInfo)) { | ||||
| 6723 | return NS_ERROR_DOM_DATA_CLONE_ERR; | ||||
| 6724 | } | ||||
| 6725 | |||||
| 6726 | return NS_OK; | ||||
| 6727 | } | ||||
| 6728 | |||||
| 6729 | void OperationCompleted(nsresult aStatus) { | ||||
| 6730 | mStatus = aStatus; | ||||
| 6731 | |||||
| 6732 | MonitorAutoLock lock(mMonitor); | ||||
| 6733 | mDone = true; | ||||
| 6734 | lock.Notify(); | ||||
| 6735 | } | ||||
| 6736 | |||||
| 6737 | Monitor mMonitor; | ||||
| 6738 | |||||
| 6739 | const int64_t mIndexID; | ||||
| 6740 | const KeyPath& mKeyPath; | ||||
| 6741 | const bool mMultiEntry; | ||||
| 6742 | const nsCString mLocale; | ||||
| 6743 | StructuredCloneReadInfoParent& mCloneReadInfo; | ||||
| 6744 | nsTArray<IndexUpdateInfo>& mUpdateInfoArray; | ||||
| 6745 | nsresult mStatus; | ||||
| 6746 | bool mDone MOZ_GUARDED_BY(mMonitor)__attribute__((guarded_by(mMonitor))); | ||||
| 6747 | }; | ||||
| 6748 | |||||
| 6749 | auto DeserializeIndexValueToUpdateInfos( | ||||
| 6750 | int64_t aIndexID, const KeyPath& aKeyPath, bool aMultiEntry, | ||||
| 6751 | const nsACString& aLocale, StructuredCloneReadInfoParent& aCloneReadInfo) { | ||||
| 6752 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6752) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 6752); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6753 | |||||
| 6754 | using ArrayType = AutoTArray<IndexUpdateInfo, 32>; | ||||
| 6755 | using ResultType = Result<ArrayType, nsresult>; | ||||
| 6756 | |||||
| 6757 | ArrayType updateInfoArray; | ||||
| 6758 | const auto helper = MakeRefPtr<DeserializeIndexValueHelper>( | ||||
| 6759 | aIndexID, aKeyPath, aMultiEntry, aLocale, aCloneReadInfo, | ||||
| 6760 | updateInfoArray); | ||||
| 6761 | const nsresult rv = helper->DispatchAndWait(); | ||||
| 6762 | return NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0))) ? Err(rv) : ResultType{std::move(updateInfoArray)}; | ||||
| 6763 | } | ||||
| 6764 | |||||
| 6765 | bool IsSome( | ||||
| 6766 | const Maybe<CachingDatabaseConnection::BorrowedStatement>& aMaybeStmt) { | ||||
| 6767 | return aMaybeStmt.isSome(); | ||||
| 6768 | } | ||||
| 6769 | |||||
| 6770 | already_AddRefed<nsIThreadPool> MakeConnectionIOTarget() { | ||||
| 6771 | nsCOMPtr<nsIThreadPool> threadPool = new nsThreadPool(); | ||||
| 6772 | |||||
| 6773 | MOZ_ALWAYS_SUCCEEDS(threadPool->SetThreadLimit(kMaxConnectionThreadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetThreadLimit(kMaxConnectionThreadCount))), 1 )))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(threadPool->SetThreadLimit(kMaxConnectionThreadCount))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6773) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetThreadLimit(kMaxConnectionThreadCount))" ")"); do { MOZ_CrashSequence(__null, 6773); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6774 | |||||
| 6775 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6776) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))" ")"); do { MOZ_CrashSequence(__null, 6776); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 6776 | threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6776) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))" ")"); do { MOZ_CrashSequence(__null, 6776); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6777 | |||||
| 6778 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6779) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))" ")"); do { MOZ_CrashSequence(__null, 6779); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 6779 | threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6779) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))" ")"); do { MOZ_CrashSequence(__null, 6779); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6780 | |||||
| 6781 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6782) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))" ")"); do { MOZ_CrashSequence(__null, 6782); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 6782 | threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6782) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))" ")"); do { MOZ_CrashSequence(__null, 6782); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6783 | |||||
| 6784 | MOZ_ALWAYS_SUCCEEDS(threadPool->SetName("IndexedDB IO"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetName("IndexedDB IO"_ns))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB IO\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6784) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB IO\"_ns))" ")"); do { MOZ_CrashSequence(__null, 6784); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6785 | |||||
| 6786 | return threadPool.forget(); | ||||
| 6787 | } | ||||
| 6788 | |||||
| 6789 | } // namespace | ||||
| 6790 | |||||
| 6791 | /******************************************************************************* | ||||
| 6792 | * Exported functions | ||||
| 6793 | ******************************************************************************/ | ||||
| 6794 | |||||
| 6795 | already_AddRefed<PBackgroundIDBFactoryParent> AllocPBackgroundIDBFactoryParent( | ||||
| 6796 | const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale) { | ||||
| 6797 | AssertIsOnBackgroundThread(); | ||||
| 6798 | |||||
| 6799 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6799)) { | ||||
| 6800 | return nullptr; | ||||
| 6801 | } | ||||
| 6802 | |||||
| 6803 | // Requests and normal transaction serial numbers must stay positive. | ||||
| 6804 | // VersionChange transaction serial numbers must stay negative. | ||||
| 6805 | // https://searchfox.org/firefox-main/rev/8332a06d47ce7d66623d807068b3410061cd29d3/dom/indexedDB/ActorsChild.cpp#82 | ||||
| 6806 | if (NS_AUUF_OR_WARN_IF(aLoggingInfo.nextTransactionSerialNumber() <= 0)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aLoggingInfo.nextTransactionSerialNumber() <= 0" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6806 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aLoggingInfo.nextTransactionSerialNumber() <= 0" ")"); do { MOZ_CrashSequence(__null, 6806); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aLoggingInfo.nextTransactionSerialNumber() <= 0)) || | ||||
| 6807 | NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6808 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0" ")"); do { MOZ_CrashSequence(__null, 6808); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0)) | ||||
| 6808 | aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6808 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0" ")"); do { MOZ_CrashSequence(__null, 6808); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0)) || | ||||
| 6809 | NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber()) <= 0" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6810 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber()) <= 0" ")"); do { MOZ_CrashSequence(__null, 6810); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber ()) <= 0)) | ||||
| 6810 | static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber()) <= 0)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber()) <= 0" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6810 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber()) <= 0" ")"); do { MOZ_CrashSequence(__null, 6810); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber ()) <= 0))) { | ||||
| 6811 | return nullptr; | ||||
| 6812 | } | ||||
| 6813 | |||||
| 6814 | SafeRefPtr<Factory> actor = Factory::Create(aLoggingInfo, aSystemLocale); | ||||
| 6815 | MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(actor)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6815); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")") ; do { MOZ_CrashSequence(__null, 6815); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6816 | |||||
| 6817 | return actor.forget(); | ||||
| 6818 | } | ||||
| 6819 | |||||
| 6820 | bool RecvPBackgroundIDBFactoryConstructor( | ||||
| 6821 | PBackgroundIDBFactoryParent* aActor, const LoggingInfo& /* aLoggingInfo */, | ||||
| 6822 | const nsACString& /* aSystemLocale */) { | ||||
| 6823 | AssertIsOnBackgroundThread(); | ||||
| 6824 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6824); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 6824); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6825 | MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6825) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 6825); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6826 | |||||
| 6827 | return true; | ||||
| 6828 | } | ||||
| 6829 | |||||
| 6830 | PBackgroundIndexedDBUtilsParent* AllocPBackgroundIndexedDBUtilsParent() { | ||||
| 6831 | AssertIsOnBackgroundThread(); | ||||
| 6832 | |||||
| 6833 | RefPtr<Utils> actor = new Utils(); | ||||
| 6834 | |||||
| 6835 | return actor.forget().take(); | ||||
| 6836 | } | ||||
| 6837 | |||||
| 6838 | bool DeallocPBackgroundIndexedDBUtilsParent( | ||||
| 6839 | PBackgroundIndexedDBUtilsParent* aActor) { | ||||
| 6840 | AssertIsOnBackgroundThread(); | ||||
| 6841 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6841); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 6841); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6842 | |||||
| 6843 | RefPtr<Utils> actor = dont_AddRef(static_cast<Utils*>(aActor)); | ||||
| 6844 | return true; | ||||
| 6845 | } | ||||
| 6846 | |||||
| 6847 | bool RecvFlushPendingFileDeletions() { | ||||
| 6848 | AssertIsOnBackgroundThread(); | ||||
| 6849 | |||||
| 6850 | if (QuotaClient* quotaClient = QuotaClient::GetInstance()) { | ||||
| 6851 | QM_WARNONLY_TRY(QM_TO_RESULT(quotaClient->FlushPendingFileDeletions())){auto tryResult915 = (ToResult<QMResult>(quotaClient-> FlushPendingFileDeletions())); static_assert(std::is_empty_v< typename decltype(tryResult915)::ok_type>); if ((__builtin_expect (!!(tryResult915.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(quotaClient->FlushPendingFileDeletions())" , tryResult915.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6851, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 6852 | } | ||||
| 6853 | |||||
| 6854 | return true; | ||||
| 6855 | } | ||||
| 6856 | |||||
| 6857 | RefPtr<mozilla::dom::quota::Client> CreateQuotaClient() { | ||||
| 6858 | AssertIsOnBackgroundThread(); | ||||
| 6859 | |||||
| 6860 | return MakeRefPtr<QuotaClient>(); | ||||
| 6861 | } | ||||
| 6862 | |||||
| 6863 | nsresult DatabaseFileManager::AsyncDeleteFile(int64_t aFileId) { | ||||
| 6864 | AssertIsOnBackgroundThread(); | ||||
| 6865 | MOZ_ASSERT(!ContainsFileInfo(aFileId))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!ContainsFileInfo(aFileId))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!ContainsFileInfo(aFileId))) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!ContainsFileInfo(aFileId)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6865) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!ContainsFileInfo(aFileId)" ")"); do { MOZ_CrashSequence(__null, 6865); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6866 | |||||
| 6867 | QuotaClient* quotaClient = QuotaClient::GetInstance(); | ||||
| 6868 | if (quotaClient) { | ||||
| 6869 | QM_TRY(MOZ_TO_RESULT(quotaClient->AsyncDeleteFile(this, aFileId))){auto tryResult916 = (ToResult(quotaClient->AsyncDeleteFile (this, aFileId))); static_assert(std::is_empty_v<typename decltype (tryResult916)::ok_type>); if ((__builtin_expect(!!(tryResult916 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaClient->AsyncDeleteFile(this, aFileId))" , tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6869, mozilla::dom::quota::Severity::Error); return tryResult916 .propagateErr(); }}; | ||||
| 6870 | } | ||||
| 6871 | |||||
| 6872 | return NS_OK; | ||||
| 6873 | } | ||||
| 6874 | |||||
| 6875 | /******************************************************************************* | ||||
| 6876 | * DatabaseConnection implementation | ||||
| 6877 | ******************************************************************************/ | ||||
| 6878 | |||||
| 6879 | DatabaseConnection::DatabaseConnection( | ||||
| 6880 | MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection, | ||||
| 6881 | MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager) | ||||
| 6882 | : CachingDatabaseConnection(std::move(aStorageConnection)), | ||||
| 6883 | mFileManager(std::move(aFileManager)), | ||||
| 6884 | mLastDurability(IDBTransaction::Durability::Default), | ||||
| 6885 | mInReadTransaction(false), | ||||
| 6886 | mInWriteTransaction(false) | ||||
| 6887 | #ifdef DEBUG1 | ||||
| 6888 | , | ||||
| 6889 | mDEBUGSavepointCount(0) | ||||
| 6890 | #endif | ||||
| 6891 | { | ||||
| 6892 | AssertIsOnConnectionThread(); | ||||
| 6893 | MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { MOZ_CrashSequence(__null, 6893); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6894 | } | ||||
| 6895 | |||||
| 6896 | DatabaseConnection::~DatabaseConnection() { | ||||
| 6897 | MOZ_ASSERT(!mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mFileManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6897); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileManager" ")") ; do { MOZ_CrashSequence(__null, 6897); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6898 | MOZ_ASSERT(!mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mUpdateRefcountFunction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mUpdateRefcountFunction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mUpdateRefcountFunction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6898) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUpdateRefcountFunction" ")"); do { MOZ_CrashSequence(__null, 6898); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6899 | MOZ_DIAGNOSTIC_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6899) ; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 6899); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6900 | MOZ_ASSERT(!mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDEBUGSavepointCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDEBUGSavepointCount))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGSavepointCount" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6900) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount" ")"); do { MOZ_CrashSequence(__null, 6900); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6901 | } | ||||
| 6902 | |||||
| 6903 | nsresult DatabaseConnection::Init() { | ||||
| 6904 | AssertIsOnConnectionThread(); | ||||
| 6905 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6905) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 6905); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6906 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6906) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 6906); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6907 | |||||
| 6908 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns))){auto tryResult917 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult917 )::ok_type>); if ((__builtin_expect(!!(tryResult917.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns))" , tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6908, mozilla::dom::quota::Severity::Error); return tryResult917 .propagateErr(); }}; | ||||
| 6909 | |||||
| 6910 | mInReadTransaction = true; | ||||
| 6911 | |||||
| 6912 | return NS_OK; | ||||
| 6913 | } | ||||
| 6914 | |||||
| 6915 | nsresult DatabaseConnection::BeginWriteTransaction( | ||||
| 6916 | const IDBTransaction::Durability aDurability) { | ||||
| 6917 | AssertIsOnConnectionThread(); | ||||
| 6918 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6918) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 6918); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6919 | MOZ_ASSERT(mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInReadTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6919) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 6919); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6920 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6920) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 6920); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6921 | |||||
| 6922 | AUTO_PROFILER_LABEL("DatabaseConnection::BeginWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6922( "DatabaseConnection::BeginWriteTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 6923 | |||||
| 6924 | // Release our read locks. | ||||
| 6925 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("ROLLBACK;"_ns))){auto tryResult918 = (ToResult(ExecuteCachedStatement("ROLLBACK;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult918 )::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"ROLLBACK;\"_ns))" , tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6925, mozilla::dom::quota::Severity::Error); return tryResult918 .propagateErr(); }}; | ||||
| 6926 | |||||
| 6927 | mInReadTransaction = false; | ||||
| 6928 | |||||
| 6929 | if (mLastDurability != aDurability) { | ||||
| 6930 | auto synchronousMode = [aDurability]() -> nsLiteralCString { | ||||
| 6931 | switch (aDurability) { | ||||
| 6932 | case IDBTransaction::Durability::Default: | ||||
| 6933 | return GetDefaultSynchronousMode(); | ||||
| 6934 | |||||
| 6935 | case IDBTransaction::Durability::Strict: | ||||
| 6936 | return "EXTRA"_ns; | ||||
| 6937 | |||||
| 6938 | case IDBTransaction::Durability::Relaxed: | ||||
| 6939 | return "OFF"_ns; | ||||
| 6940 | |||||
| 6941 | default: | ||||
| 6942 | MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6942) ; AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!" ")"); do { MOZ_CrashSequence(__null, 6942); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 6943 | } | ||||
| 6944 | }(); | ||||
| 6945 | |||||
| 6946 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("PRAGMA synchronous = "_ns +{auto tryResult919 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns + synchronousMode + ";"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult919)::ok_type>); if ((__builtin_expect (!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))" , tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6947, mozilla::dom::quota::Severity::Error); return tryResult919 .propagateErr(); }} | ||||
| 6947 | synchronousMode + ";"_ns))){auto tryResult919 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns + synchronousMode + ";"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult919)::ok_type>); if ((__builtin_expect (!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))" , tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6947, mozilla::dom::quota::Severity::Error); return tryResult919 .propagateErr(); }}; | ||||
| 6948 | |||||
| 6949 | mLastDurability = aDurability; | ||||
| 6950 | } | ||||
| 6951 | |||||
| 6952 | if (!mUpdateRefcountFunction) { | ||||
| 6953 | MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6953); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { MOZ_CrashSequence(__null, 6953); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6954 | |||||
| 6955 | RefPtr<UpdateRefcountFunction> function = | ||||
| 6956 | new UpdateRefcountFunction(this, **mFileManager); | ||||
| 6957 | |||||
| 6958 | QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().CreateFunction({auto tryResult920 = (ToResult(MutableStorageConnection().CreateFunction ( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v <typename decltype(tryResult920)::ok_type>); if ((__builtin_expect (!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))" , tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6960, mozilla::dom::quota::Severity::Error); return tryResult920 .propagateErr(); }} | ||||
| 6959 | "update_refcount"_ns,{auto tryResult920 = (ToResult(MutableStorageConnection().CreateFunction ( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v <typename decltype(tryResult920)::ok_type>); if ((__builtin_expect (!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))" , tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6960, mozilla::dom::quota::Severity::Error); return tryResult920 .propagateErr(); }} | ||||
| 6960 | /* aNumArguments */ 2, function))){auto tryResult920 = (ToResult(MutableStorageConnection().CreateFunction ( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v <typename decltype(tryResult920)::ok_type>); if ((__builtin_expect (!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))" , tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6960, mozilla::dom::quota::Severity::Error); return tryResult920 .propagateErr(); }}; | ||||
| 6961 | |||||
| 6962 | mUpdateRefcountFunction = std::move(function); | ||||
| 6963 | } | ||||
| 6964 | |||||
| 6965 | // This one cannot obviously use ExecuteCachedStatement because of the custom | ||||
| 6966 | // error handling for Execute only. If only Execute can produce | ||||
| 6967 | // NS_ERROR_STORAGE_BUSY, we could actually use ExecuteCachedStatement and | ||||
| 6968 | // simplify this. | ||||
| 6969 | QM_TRY_INSPECT(const auto& beginStmt,auto tryResult921 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns )); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla ::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)" , tryResult921.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6970, mozilla::dom::quota::Severity::Error); return tryResult921 .propagateErr(); } const auto& beginStmt = tryResult921.inspect (); | ||||
| 6970 | BorrowCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult921 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns )); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla ::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)" , tryResult921.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6970, mozilla::dom::quota::Severity::Error); return tryResult921 .propagateErr(); } const auto& beginStmt = tryResult921.inspect ();; | ||||
| 6971 | |||||
| 6972 | QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6973 | // Expression.{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6974 | MOZ_TO_RESULT(beginStmt->Execute()),{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6975 | // Predicate.{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6976 | IsSpecificError<NS_ERROR_STORAGE_BUSY>,{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6977 | // Fallback.{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6978 | ([&beginStmt](nsresult rv) {{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6979 | NS_WARNING({auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6980 | "Received NS_ERROR_STORAGE_BUSY when attempting to start write "{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6981 | "transaction, retrying for up to 10 seconds");{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6982 | |||||
| 6983 | // Another thread must be using the database. Wait up to 10 seconds{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6984 | // for that to complete.{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6985 | const TimeStamp start = TimeStamp::NowLoRes();{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6986 | |||||
| 6987 | while (true) {{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6988 | PR_Sleep(PR_MillisecondsToInterval(100));{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6989 | |||||
| 6990 | rv = beginStmt->Execute();{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6991 | if (rv != NS_ERROR_STORAGE_BUSY ||{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6992 | TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) {{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6993 | break;{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6994 | }{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6995 | }{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6996 | |||||
| 6997 | return MOZ_TO_RESULT(rv);{auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }} | ||||
| 6998 | }))){auto tryResult922 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6981); 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(tryResult922)::ok_type>); if ((__builtin_expect (!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6998, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6981); 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); }))" , tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6998, mozilla::dom::quota::Severity::Error); return tryResult922 .propagateErr(); }}; | ||||
| 6999 | |||||
| 7000 | mInWriteTransaction = true; | ||||
| 7001 | |||||
| 7002 | return NS_OK; | ||||
| 7003 | } | ||||
| 7004 | |||||
| 7005 | nsresult DatabaseConnection::CommitWriteTransaction() { | ||||
| 7006 | AssertIsOnConnectionThread(); | ||||
| 7007 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7007) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7007); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7008 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7008) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 7008); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7009 | MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7009) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7009); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7010 | |||||
| 7011 | AUTO_PROFILER_LABEL("DatabaseConnection::CommitWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject7011( "DatabaseConnection::CommitWriteTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7012 | |||||
| 7013 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("COMMIT;"_ns))){auto tryResult923 = (ToResult(ExecuteCachedStatement("COMMIT;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult923 )::ok_type>); if ((__builtin_expect(!!(tryResult923.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"COMMIT;\"_ns))" , tryResult923.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7013, mozilla::dom::quota::Severity::Error); return tryResult923 .propagateErr(); }}; | ||||
| 7014 | |||||
| 7015 | mInWriteTransaction = false; | ||||
| 7016 | return NS_OK; | ||||
| 7017 | } | ||||
| 7018 | |||||
| 7019 | void DatabaseConnection::RollbackWriteTransaction() { | ||||
| 7020 | AssertIsOnConnectionThread(); | ||||
| 7021 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7021) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 7021); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7022 | MOZ_DIAGNOSTIC_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7022) ; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7022); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7023 | |||||
| 7024 | AUTO_PROFILER_LABEL("DatabaseConnection::RollbackWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject7024( "DatabaseConnection::RollbackWriteTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7025 | |||||
| 7026 | if (!mInWriteTransaction) { | ||||
| 7027 | return; | ||||
| 7028 | } | ||||
| 7029 | |||||
| 7030 | QM_WARNONLY_TRY({auto tryResult924 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7044, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7031 | BorrowCachedStatement("ROLLBACK;"_ns){auto tryResult924 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7044, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7032 | .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> {{auto tryResult924 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7044, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7033 | // This may fail if SQLite already rolled back the transaction{auto tryResult924 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7044, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7034 | // so ignore any errors.{auto tryResult924 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7044, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7035 | |||||
| 7036 | // XXX ROLLBACK can fail quite normmally if a previous statement{auto tryResult924 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7044, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7037 | // failed to execute successfully so SQLite rolled back the{auto tryResult924 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7044, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7038 | // transaction already. However, if it failed because of some other{auto tryResult924 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7044, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7039 | // reason, we could try to close the connection.{auto tryResult924 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7044, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7040 | (void)stmt->Execute();{auto tryResult924 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7044, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7041 | |||||
| 7042 | self.mInWriteTransaction = false;{auto tryResult924 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7044, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7043 | return Ok{};{auto tryResult924 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7044, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7044 | })){auto tryResult924 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7044, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7045 | } | ||||
| 7046 | |||||
| 7047 | void DatabaseConnection::FinishWriteTransaction() { | ||||
| 7048 | AssertIsOnConnectionThread(); | ||||
| 7049 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7049) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7049); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7050 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7050) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 7050); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7051 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7051) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7051); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7052 | |||||
| 7053 | AUTO_PROFILER_LABEL("DatabaseConnection::FinishWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject7053( "DatabaseConnection::FinishWriteTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7054 | |||||
| 7055 | if (mUpdateRefcountFunction) { | ||||
| 7056 | mUpdateRefcountFunction->Reset(); | ||||
| 7057 | } | ||||
| 7058 | |||||
| 7059 | QM_WARNONLY_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns)){auto tryResult925 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult925)::ok_type> ); if ((__builtin_expect(!!(tryResult925.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult925.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7063, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7060 | .andThen([&](const auto) -> Result<Ok, nsresult> {{auto tryResult925 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult925)::ok_type> ); if ((__builtin_expect(!!(tryResult925.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult925.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7063, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7061 | mInReadTransaction = true;{auto tryResult925 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult925)::ok_type> ); if ((__builtin_expect(!!(tryResult925.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult925.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7063, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7062 | return Ok{};{auto tryResult925 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult925)::ok_type> ); if ((__builtin_expect(!!(tryResult925.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult925.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7063, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7063 | })){auto tryResult925 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult925)::ok_type> ); if ((__builtin_expect(!!(tryResult925.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult925.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7063, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7064 | } | ||||
| 7065 | |||||
| 7066 | nsresult DatabaseConnection::StartSavepoint() { | ||||
| 7067 | AssertIsOnConnectionThread(); | ||||
| 7068 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7068) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7068); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7069 | MOZ_ASSERT(mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mUpdateRefcountFunction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mUpdateRefcountFunction))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mUpdateRefcountFunction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7069) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction" ")"); do { MOZ_CrashSequence(__null, 7069); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7070 | MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7070) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7070); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7071 | |||||
| 7072 | AUTO_PROFILER_LABEL("DatabaseConnection::StartSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject7072( "DatabaseConnection::StartSavepoint" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7073 | |||||
| 7074 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(SAVEPOINT_CLAUSE))){auto tryResult926 = (ToResult(ExecuteCachedStatement("SAVEPOINT sp;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult926 )::ok_type>); if ((__builtin_expect(!!(tryResult926.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"SAVEPOINT sp;\"_ns))" , tryResult926.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7074, mozilla::dom::quota::Severity::Error); return tryResult926 .propagateErr(); }}; | ||||
| 7075 | |||||
| 7076 | mUpdateRefcountFunction->StartSavepoint(); | ||||
| 7077 | |||||
| 7078 | #ifdef DEBUG1 | ||||
| 7079 | MOZ_ASSERT(mDEBUGSavepointCount < UINT32_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGSavepointCount < (4294967295U))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mDEBUGSavepointCount < (4294967295U)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGSavepointCount < (4294967295U)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7079) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount < (4294967295U)" ")"); do { MOZ_CrashSequence(__null, 7079); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7080 | mDEBUGSavepointCount++; | ||||
| 7081 | #endif | ||||
| 7082 | |||||
| 7083 | return NS_OK; | ||||
| 7084 | } | ||||
| 7085 | |||||
| 7086 | nsresult DatabaseConnection::ReleaseSavepoint() { | ||||
| 7087 | AssertIsOnConnectionThread(); | ||||
| 7088 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7088) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7088); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7089 | MOZ_ASSERT(mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mUpdateRefcountFunction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mUpdateRefcountFunction))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mUpdateRefcountFunction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7089) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction" ")"); do { MOZ_CrashSequence(__null, 7089); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7090 | MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7090) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7090); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7091 | |||||
| 7092 | AUTO_PROFILER_LABEL("DatabaseConnection::ReleaseSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject7092( "DatabaseConnection::ReleaseSavepoint" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7093 | |||||
| 7094 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("RELEASE "_ns SAVEPOINT_CLAUSE))){auto tryResult927 = (ToResult(ExecuteCachedStatement("RELEASE "_ns "SAVEPOINT sp;"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult927)::ok_type>); if ((__builtin_expect( !!(tryResult927.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ExecuteCachedStatement(\"RELEASE \"_ns \"SAVEPOINT sp;\"_ns))" , tryResult927.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7094, mozilla::dom::quota::Severity::Error); return tryResult927 .propagateErr(); }}; | ||||
| 7095 | |||||
| 7096 | mUpdateRefcountFunction->ReleaseSavepoint(); | ||||
| 7097 | |||||
| 7098 | #ifdef DEBUG1 | ||||
| 7099 | MOZ_ASSERT(mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGSavepointCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGSavepointCount))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGSavepointCount" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7099) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount" ")"); do { MOZ_CrashSequence(__null, 7099); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7100 | mDEBUGSavepointCount--; | ||||
| 7101 | #endif | ||||
| 7102 | |||||
| 7103 | return NS_OK; | ||||
| 7104 | } | ||||
| 7105 | |||||
| 7106 | nsresult DatabaseConnection::RollbackSavepoint() { | ||||
| 7107 | AssertIsOnConnectionThread(); | ||||
| 7108 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7108) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7108); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7109 | MOZ_ASSERT(mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mUpdateRefcountFunction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mUpdateRefcountFunction))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mUpdateRefcountFunction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7109) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction" ")"); do { MOZ_CrashSequence(__null, 7109); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7110 | MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7110) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7110); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7111 | |||||
| 7112 | AUTO_PROFILER_LABEL("DatabaseConnection::RollbackSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject7112( "DatabaseConnection::RollbackSavepoint" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7113 | |||||
| 7114 | #ifdef DEBUG1 | ||||
| 7115 | MOZ_ASSERT(mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGSavepointCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGSavepointCount))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGSavepointCount" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7115) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount" ")"); do { MOZ_CrashSequence(__null, 7115); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7116 | mDEBUGSavepointCount--; | ||||
| 7117 | #endif | ||||
| 7118 | |||||
| 7119 | mUpdateRefcountFunction->RollbackSavepoint(); | ||||
| 7120 | |||||
| 7121 | QM_TRY_INSPECT(const auto& stmt,auto tryResult928 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns )); if ((__builtin_expect(!!(tryResult928.isErr()), 0))) { mozilla ::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)" , tryResult928.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7122, mozilla::dom::quota::Severity::Error); return tryResult928 .propagateErr(); } const auto& stmt = tryResult928.inspect (); | ||||
| 7122 | BorrowCachedStatement("ROLLBACK TO "_ns SAVEPOINT_CLAUSE))auto tryResult928 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns )); if ((__builtin_expect(!!(tryResult928.isErr()), 0))) { mozilla ::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)" , tryResult928.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7122, mozilla::dom::quota::Severity::Error); return tryResult928 .propagateErr(); } const auto& stmt = tryResult928.inspect ();; | ||||
| 7123 | |||||
| 7124 | // This may fail if SQLite already rolled back the savepoint so ignore any | ||||
| 7125 | // errors. | ||||
| 7126 | (void)stmt->Execute(); | ||||
| 7127 | |||||
| 7128 | return NS_OK; | ||||
| 7129 | } | ||||
| 7130 | |||||
| 7131 | nsresult DatabaseConnection::CheckpointInternal(CheckpointMode aMode) { | ||||
| 7132 | AssertIsOnConnectionThread(); | ||||
| 7133 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7133) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 7133); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7134 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7134) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7134); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7135 | |||||
| 7136 | AUTO_PROFILER_LABEL("DatabaseConnection::CheckpointInternal", DOM)mozilla::AutoProfilerLabel raiiObject7136( "DatabaseConnection::CheckpointInternal" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7137 | |||||
| 7138 | nsAutoCString stmtString; | ||||
| 7139 | stmtString.AssignLiteral("PRAGMA wal_checkpoint("); | ||||
| 7140 | |||||
| 7141 | switch (aMode) { | ||||
| 7142 | case CheckpointMode::Full: | ||||
| 7143 | // Ensures that the database is completely checkpointed and flushed to | ||||
| 7144 | // disk. | ||||
| 7145 | stmtString.AppendLiteral("FULL"); | ||||
| 7146 | break; | ||||
| 7147 | |||||
| 7148 | case CheckpointMode::Restart: | ||||
| 7149 | // Like Full, but also ensures that the next write will start overwriting | ||||
| 7150 | // the existing WAL file rather than letting the WAL file grow. | ||||
| 7151 | stmtString.AppendLiteral("RESTART"); | ||||
| 7152 | break; | ||||
| 7153 | |||||
| 7154 | case CheckpointMode::Truncate: | ||||
| 7155 | // Like Restart but also truncates the existing WAL file. | ||||
| 7156 | stmtString.AppendLiteral("TRUNCATE"); | ||||
| 7157 | break; | ||||
| 7158 | |||||
| 7159 | default: | ||||
| 7160 | MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7160) ; AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!" ")"); do { MOZ_CrashSequence(__null, 7160); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 7161 | } | ||||
| 7162 | |||||
| 7163 | stmtString.AppendLiteral(");"); | ||||
| 7164 | |||||
| 7165 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(stmtString))){auto tryResult929 = (ToResult(ExecuteCachedStatement(stmtString ))); static_assert(std::is_empty_v<typename decltype(tryResult929 )::ok_type>); if ((__builtin_expect(!!(tryResult929.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(stmtString))" , tryResult929.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7165, mozilla::dom::quota::Severity::Error); return tryResult929 .propagateErr(); }}; | ||||
| 7166 | |||||
| 7167 | return NS_OK; | ||||
| 7168 | } | ||||
| 7169 | |||||
| 7170 | void DatabaseConnection::DoIdleProcessing(bool aNeedsCheckpoint, | ||||
| 7171 | const Atomic<bool>& aInterrupted) { | ||||
| 7172 | AssertIsOnConnectionThread(); | ||||
| 7173 | MOZ_ASSERT(mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInReadTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7173) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 7173); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7174 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7174) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7174); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7175 | |||||
| 7176 | AUTO_PROFILER_LABEL("DatabaseConnection::DoIdleProcessing", DOM)mozilla::AutoProfilerLabel raiiObject7176( "DatabaseConnection::DoIdleProcessing" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7177 | |||||
| 7178 | CachingDatabaseConnection::CachedStatement freelistStmt; | ||||
| 7179 | const uint32_t freelistCount = [this, &freelistStmt] { | ||||
| 7180 | QM_TRY_RETURN(GetFreelistCount(freelistStmt), 0u){auto tryResult930 = (GetFreelistCount(freelistStmt)); if ((__builtin_expect (!!(tryResult930.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult930.unwrapErr(); mozilla::dom::quota::HandleError ("GetFreelistCount(freelistStmt)", tryResult930.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7180, mozilla ::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "GetFreelistCount(freelistStmt)", tryTempError, 0u); } return tryResult930.unwrap();}; | ||||
| 7181 | }(); | ||||
| 7182 | |||||
| 7183 | CachedStatement rollbackStmt; | ||||
| 7184 | CachedStatement beginStmt; | ||||
| 7185 | if (aNeedsCheckpoint || freelistCount) { | ||||
| 7186 | QM_TRY_UNWRAP(rollbackStmt, GetCachedStatement("ROLLBACK;"_ns), QM_VOID)auto tryResult931 = (GetCachedStatement("ROLLBACK;"_ns)); if ( (__builtin_expect(!!(tryResult931.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult931.unwrapErr(); mozilla::dom ::quota::HandleError("GetCachedStatement(\"ROLLBACK;\"_ns)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7186, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; } rollbackStmt = tryResult931 .unwrap();; | ||||
| 7187 | QM_TRY_UNWRAP(beginStmt, GetCachedStatement("BEGIN;"_ns), QM_VOID)auto tryResult932 = (GetCachedStatement("BEGIN;"_ns)); if ((__builtin_expect (!!(tryResult932.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult932.unwrapErr(); mozilla::dom::quota::HandleError ("GetCachedStatement(\"BEGIN;\"_ns)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7187, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } beginStmt = tryResult932.unwrap();; | ||||
| 7188 | |||||
| 7189 | // Release the connection's normal transaction. It's possible that it could | ||||
| 7190 | // fail, but that isn't a problem here. | ||||
| 7191 | (void)rollbackStmt.Borrow()->Execute(); | ||||
| 7192 | |||||
| 7193 | mInReadTransaction = false; | ||||
| 7194 | } | ||||
| 7195 | |||||
| 7196 | const bool freedSomePages = | ||||
| 7197 | freelistCount && [this, &freelistStmt, &rollbackStmt, freelistCount, | ||||
| 7198 | aNeedsCheckpoint, &aInterrupted] { | ||||
| 7199 | // Warn in case of an error, but do not propagate it. Just indicate we | ||||
| 7200 | // didn't free any pages. | ||||
| 7201 | QM_TRY_INSPECT(auto tryResult933 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt , freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect (!!(tryResult933.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult933.unwrapErr(); mozilla::dom::quota::HandleError ("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7205, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, false); } const bool& res = tryResult933. inspect(); | ||||
| 7202 | const bool& res,auto tryResult933 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt , freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect (!!(tryResult933.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult933.unwrapErr(); mozilla::dom::quota::HandleError ("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7205, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, false); } const bool& res = tryResult933. inspect(); | ||||
| 7203 | ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount,auto tryResult933 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt , freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect (!!(tryResult933.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult933.unwrapErr(); mozilla::dom::quota::HandleError ("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7205, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, false); } const bool& res = tryResult933. inspect(); | ||||
| 7204 | aNeedsCheckpoint, aInterrupted),auto tryResult933 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt , freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect (!!(tryResult933.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult933.unwrapErr(); mozilla::dom::quota::HandleError ("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7205, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, false); } const bool& res = tryResult933. inspect(); | ||||
| 7205 | false)auto tryResult933 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt , freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect (!!(tryResult933.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult933.unwrapErr(); mozilla::dom::quota::HandleError ("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7205, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, false); } const bool& res = tryResult933. inspect();; | ||||
| 7206 | |||||
| 7207 | // Make sure we didn't leave a transaction running. | ||||
| 7208 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7208) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 7208); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7209 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7209) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7209); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7210 | |||||
| 7211 | return res; | ||||
| 7212 | }(); | ||||
| 7213 | |||||
| 7214 | // Truncate the WAL if we were asked to or if we managed to free some space. | ||||
| 7215 | if (aNeedsCheckpoint || freedSomePages) { | ||||
| 7216 | QM_WARNONLY_TRY(QM_TO_RESULT(CheckpointInternal(CheckpointMode::Truncate))){auto tryResult934 = (ToResult<QMResult>(CheckpointInternal (CheckpointMode::Truncate))); static_assert(std::is_empty_v< typename decltype(tryResult934)::ok_type>); if ((__builtin_expect (!!(tryResult934.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(CheckpointInternal(CheckpointMode::Truncate))" , tryResult934.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7216, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7217 | } | ||||
| 7218 | |||||
| 7219 | // Finally try to restart the read transaction if we rolled it back earlier. | ||||
| 7220 | if (beginStmt) { | ||||
| 7221 | QM_WARNONLY_TRY({auto tryResult935 = (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(tryResult935 )::ok_type>); if ((__builtin_expect(!!(tryResult935.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult935.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7226, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7222 | MOZ_TO_RESULT(beginStmt.Borrow()->Execute()){auto tryResult935 = (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(tryResult935 )::ok_type>); if ((__builtin_expect(!!(tryResult935.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult935.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7226, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7223 | .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> {{auto tryResult935 = (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(tryResult935 )::ok_type>); if ((__builtin_expect(!!(tryResult935.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult935.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7226, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7224 | self.mInReadTransaction = true;{auto tryResult935 = (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(tryResult935 )::ok_type>); if ((__builtin_expect(!!(tryResult935.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult935.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7226, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7225 | return Ok{};{auto tryResult935 = (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(tryResult935 )::ok_type>); if ((__builtin_expect(!!(tryResult935.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult935.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7226, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7226 | })){auto tryResult935 = (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(tryResult935 )::ok_type>); if ((__builtin_expect(!!(tryResult935.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult935.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7226, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7227 | } | ||||
| 7228 | } | ||||
| 7229 | |||||
| 7230 | Result<bool, nsresult> DatabaseConnection::ReclaimFreePagesWhileIdle( | ||||
| 7231 | CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement, | ||||
| 7232 | uint32_t aFreelistCount, bool aNeedsCheckpoint, | ||||
| 7233 | const Atomic<bool>& aInterrupted) { | ||||
| 7234 | AssertIsOnConnectionThread(); | ||||
| 7235 | MOZ_ASSERT(aFreelistStatement)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aFreelistStatement)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aFreelistStatement))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFreelistStatement" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7235) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistStatement" ")"); do { MOZ_CrashSequence(__null, 7235); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7236 | MOZ_ASSERT(aRollbackStatement)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aRollbackStatement)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aRollbackStatement))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aRollbackStatement" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7236) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRollbackStatement" ")"); do { MOZ_CrashSequence(__null, 7236); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7237 | MOZ_ASSERT(aFreelistCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aFreelistCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aFreelistCount))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFreelistCount" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7237) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistCount" ")" ); do { MOZ_CrashSequence(__null, 7237); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7238 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7238) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 7238); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7239 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7239) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7239); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7240 | |||||
| 7241 | AUTO_PROFILER_LABEL("DatabaseConnection::ReclaimFreePagesWhileIdle", DOM)mozilla::AutoProfilerLabel raiiObject7241( "DatabaseConnection::ReclaimFreePagesWhileIdle" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7242 | |||||
| 7243 | uint32_t pauseOnConnectionThreadMs = StaticPrefs:: | ||||
| 7244 | dom_indexedDB_connectionIdleMaintenance_pauseOnConnectionThreadMs(); | ||||
| 7245 | if (pauseOnConnectionThreadMs > 0) { | ||||
| 7246 | PR_Sleep(PR_MillisecondsToInterval(pauseOnConnectionThreadMs)); | ||||
| 7247 | } | ||||
| 7248 | |||||
| 7249 | // Make sure we don't keep working if anything else needs this thread. | ||||
| 7250 | if (aInterrupted) { | ||||
| 7251 | return false; | ||||
| 7252 | } | ||||
| 7253 | |||||
| 7254 | // Make all the statements we'll need up front. | ||||
| 7255 | |||||
| 7256 | // Only try to free 10% at a time so that we can bail out if this connection | ||||
| 7257 | // suddenly becomes active or if the thread is needed otherwise. | ||||
| 7258 | QM_TRY_INSPECT(auto tryResult936 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult936.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult936.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7263, mozilla::dom::quota::Severity::Error); return tryResult936 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult936 .inspect(); | ||||
| 7259 | const auto& incrementalVacuumStmt,auto tryResult936 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult936.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult936.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7263, mozilla::dom::quota::Severity::Error); return tryResult936 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult936 .inspect(); | ||||
| 7260 | GetCachedStatement(auto tryResult936 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult936.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult936.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7263, mozilla::dom::quota::Severity::Error); return tryResult936 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult936 .inspect(); | ||||
| 7261 | "PRAGMA incremental_vacuum("_ns +auto tryResult936 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult936.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult936.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7263, mozilla::dom::quota::Severity::Error); return tryResult936 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult936 .inspect(); | ||||
| 7262 | IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) +auto tryResult936 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult936.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult936.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7263, mozilla::dom::quota::Severity::Error); return tryResult936 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult936 .inspect(); | ||||
| 7263 | ");"_ns))auto tryResult936 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult936.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult936.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7263, mozilla::dom::quota::Severity::Error); return tryResult936 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult936 .inspect();; | ||||
| 7264 | |||||
| 7265 | QM_TRY_INSPECT(const auto& beginImmediateStmt,auto tryResult937 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns )); if ((__builtin_expect(!!(tryResult937.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)" , tryResult937.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7266, mozilla::dom::quota::Severity::Error); return tryResult937 .propagateErr(); } const auto& beginImmediateStmt = tryResult937 .inspect(); | ||||
| 7266 | GetCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult937 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns )); if ((__builtin_expect(!!(tryResult937.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)" , tryResult937.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7266, mozilla::dom::quota::Severity::Error); return tryResult937 .propagateErr(); } const auto& beginImmediateStmt = tryResult937 .inspect();; | ||||
| 7267 | |||||
| 7268 | QM_TRY_INSPECT(const auto& commitStmt, GetCachedStatement("COMMIT;"_ns))auto tryResult938 = (GetCachedStatement("COMMIT;"_ns)); if (( __builtin_expect(!!(tryResult938.isErr()), 0))) { mozilla::dom ::quota::HandleError("GetCachedStatement(\"COMMIT;\"_ns)", tryResult938 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7268, mozilla::dom::quota::Severity::Error); return tryResult938 .propagateErr(); } const auto& commitStmt = tryResult938. inspect();; | ||||
| 7269 | |||||
| 7270 | if (aNeedsCheckpoint) { | ||||
| 7271 | // Freeing pages is a journaled operation, so it will require additional WAL | ||||
| 7272 | // space. However, we're idle and are about to checkpoint anyway, so doing a | ||||
| 7273 | // RESTART checkpoint here should allow us to reuse any existing space. | ||||
| 7274 | QM_TRY(MOZ_TO_RESULT(CheckpointInternal(CheckpointMode::Restart))){auto tryResult939 = (ToResult(CheckpointInternal(CheckpointMode ::Restart))); static_assert(std::is_empty_v<typename decltype (tryResult939)::ok_type>); if ((__builtin_expect(!!(tryResult939 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(CheckpointInternal(CheckpointMode::Restart))" , tryResult939.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7274, mozilla::dom::quota::Severity::Error); return tryResult939 .propagateErr(); }}; | ||||
| 7275 | } | ||||
| 7276 | |||||
| 7277 | // Start the write transaction. | ||||
| 7278 | QM_TRY(MOZ_TO_RESULT(beginImmediateStmt.Borrow()->Execute())){auto tryResult940 = (ToResult(beginImmediateStmt.Borrow()-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult940)::ok_type>); if ((__builtin_expect(!!(tryResult940 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(beginImmediateStmt.Borrow()->Execute())" , tryResult940.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7278, mozilla::dom::quota::Severity::Error); return tryResult940 .propagateErr(); }}; | ||||
| 7279 | |||||
| 7280 | mInWriteTransaction = true; | ||||
| 7281 | |||||
| 7282 | bool freedSomePages = false; | ||||
| 7283 | |||||
| 7284 | const auto rollback = [&aRollbackStatement, this](const auto&) { | ||||
| 7285 | MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7285) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7285); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7286 | |||||
| 7287 | // Something failed, make sure we roll everything back. | ||||
| 7288 | (void)aRollbackStatement.Borrow()->Execute(); | ||||
| 7289 | |||||
| 7290 | // XXX Is rollback infallible? Shouldn't we check the result? | ||||
| 7291 | |||||
| 7292 | mInWriteTransaction = false; | ||||
| 7293 | }; | ||||
| 7294 | |||||
| 7295 | uint64_t previousFreelistCount = (uint64_t)aFreelistCount + 1; | ||||
| 7296 | |||||
| 7297 | QM_TRY(CollectWhile({auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7298 | [&aFreelistCount, &previousFreelistCount,{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7299 | &aInterrupted]() -> Result<bool, nsresult> {{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7300 | if (aInterrupted) {{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7301 | // On interrupt, abort and roll back this transaction. It's ok{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7302 | // if we never make progress here because the idle service{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7303 | // should eventually reclaim this space.{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7304 | return false;{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7305 | }{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7306 | // If we were not able to free anything, we might either see{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7307 | // a DB that has no auto-vacuum support at all or some other{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7308 | // (hopefully temporary) condition that prevents vacuum from{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7309 | // working. Just carry on in non-DEBUG.{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7310 | bool madeProgress = previousFreelistCount != aFreelistCount;{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7311 | previousFreelistCount = aFreelistCount;{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7312 | MOZ_ASSERT(madeProgress);{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7313 | QM_WARNONLY_TRY(MOZ_TO_RESULT(madeProgress));{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7314 | return madeProgress && (aFreelistCount != 0);{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7315 | },{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7316 | [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt,{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7317 | &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> {{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7318 | QM_TRY(MOZ_TO_RESULT(incrementalVacuumStmt.Borrow()->Execute()));{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7319 | |||||
| 7320 | freedSomePages = true;{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7321 | |||||
| 7322 | QM_TRY_UNWRAP(aFreelistCount,{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7323 | GetFreelistCount(aFreelistStatement));{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7324 | |||||
| 7325 | return Ok{};{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7326 | }){auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7327 | .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback,{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7328 | this](Ok) -> Result<Ok, nsresult> {{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7329 | if (aInterrupted) {{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7330 | rollback(Ok{});{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7331 | freedSomePages = false;{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7332 | }{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7333 | |||||
| 7334 | if (freedSomePages) {{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7335 | // Commit the write transaction.{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7336 | QM_TRY(MOZ_TO_RESULT(commitStmt.Borrow()->Execute()),{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7337 | QM_PROPAGATE,{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7338 | [](const auto&) { NS_WARNING("Failed to commit!"); });{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7339 | |||||
| 7340 | mInWriteTransaction = false;{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7341 | }{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7342 | |||||
| 7343 | return Ok{};{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7344 | }),{auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7345 | QM_PROPAGATE, rollback){auto tryResult945 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult941)::ok_type>); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult941.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult942)::ok_type> ); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7318, mozilla::dom::quota::Severity::Error); return tryResult942 .propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult943.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7323 , mozilla::dom::quota::Severity::Error); return tryResult943. propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect( !!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7338, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7338) ; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945 .isErr()), 0))) { auto tryTempError = tryResult945.unwrapErr( ); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7345, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7312); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7312); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult941 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult941.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7313, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult942 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult942.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7318, mozilla::dom::quota::Severity::Error); return tryResult942.propagateErr(); }}; freedSomePages = true; auto tryResult943 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult943.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7323, mozilla::dom::quota::Severity::Error); return tryResult943.propagateErr(); } aFreelistCount = tryResult943.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult944 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7338); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }}; | ||||
| 7346 | |||||
| 7347 | return freedSomePages; | ||||
| 7348 | } | ||||
| 7349 | |||||
| 7350 | Result<uint32_t, nsresult> DatabaseConnection::GetFreelistCount( | ||||
| 7351 | CachedStatement& aCachedStatement) { | ||||
| 7352 | AssertIsOnConnectionThread(); | ||||
| 7353 | |||||
| 7354 | AUTO_PROFILER_LABEL("DatabaseConnection::GetFreelistCount", DOM)mozilla::AutoProfilerLabel raiiObject7354( "DatabaseConnection::GetFreelistCount" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7355 | |||||
| 7356 | if (!aCachedStatement) { | ||||
| 7357 | QM_TRY_UNWRAP(aCachedStatement,auto tryResult946 = (GetCachedStatement("PRAGMA freelist_count;"_ns )); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)" , tryResult946.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7358, mozilla::dom::quota::Severity::Error); return tryResult946 .propagateErr(); } aCachedStatement = tryResult946.unwrap(); | ||||
| 7358 | GetCachedStatement("PRAGMA freelist_count;"_ns))auto tryResult946 = (GetCachedStatement("PRAGMA freelist_count;"_ns )); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)" , tryResult946.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7358, mozilla::dom::quota::Severity::Error); return tryResult946 .propagateErr(); } aCachedStatement = tryResult946.unwrap();; | ||||
| 7359 | } | ||||
| 7360 | |||||
| 7361 | const auto borrowedStatement = aCachedStatement.Borrow(); | ||||
| 7362 | |||||
| 7363 | QM_TRY_UNWRAP(const DebugOnly<bool> hasResult,auto tryResult947 = (::mozilla::ToResultInvokeMember( (&* borrowedStatement), &::mozilla::detail::DerefedType<decltype (&*borrowedStatement)>::ExecuteStep )); if ((__builtin_expect (!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep )" , tryResult947.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7364, mozilla::dom::quota::Severity::Error); return tryResult947 .propagateErr(); } const DebugOnly<bool> hasResult = tryResult947 .unwrap(); | ||||
| 7364 | MOZ_TO_RESULT_INVOKE_MEMBER(&*borrowedStatement, ExecuteStep))auto tryResult947 = (::mozilla::ToResultInvokeMember( (&* borrowedStatement), &::mozilla::detail::DerefedType<decltype (&*borrowedStatement)>::ExecuteStep )); if ((__builtin_expect (!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep )" , tryResult947.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7364, mozilla::dom::quota::Severity::Error); return tryResult947 .propagateErr(); } const DebugOnly<bool> hasResult = tryResult947 .unwrap();; | ||||
| 7365 | |||||
| 7366 | MOZ_ASSERT(hasResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(hasResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(hasResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7366); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasResult" ")" ); do { MOZ_CrashSequence(__null, 7366); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7367 | |||||
| 7368 | QM_TRY_INSPECT(const int32_t& freelistCount,auto tryResult948 = (::mozilla::ToResultInvokeMember( (*borrowedStatement ), &::mozilla::detail::DerefedType<decltype(*borrowedStatement )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult948. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32 , 0)" , tryResult948.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7369, mozilla::dom::quota::Severity::Error); return tryResult948 .propagateErr(); } const int32_t& freelistCount = tryResult948 .inspect(); | ||||
| 7369 | MOZ_TO_RESULT_INVOKE_MEMBER(*borrowedStatement, GetInt32, 0))auto tryResult948 = (::mozilla::ToResultInvokeMember( (*borrowedStatement ), &::mozilla::detail::DerefedType<decltype(*borrowedStatement )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult948. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32 , 0)" , tryResult948.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7369, mozilla::dom::quota::Severity::Error); return tryResult948 .propagateErr(); } const int32_t& freelistCount = tryResult948 .inspect();; | ||||
| 7370 | |||||
| 7371 | MOZ_ASSERT(freelistCount >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(freelistCount >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(freelistCount >= 0))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("freelistCount >= 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7371) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "freelistCount >= 0" ")"); do { MOZ_CrashSequence(__null, 7371); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7372 | |||||
| 7373 | return uint32_t(freelistCount); | ||||
| 7374 | } | ||||
| 7375 | |||||
| 7376 | void DatabaseConnection::Close() { | ||||
| 7377 | AssertIsOnConnectionThread(); | ||||
| 7378 | MOZ_ASSERT(!mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDEBUGSavepointCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDEBUGSavepointCount))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGSavepointCount" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7378) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount" ")"); do { MOZ_CrashSequence(__null, 7378); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7379 | MOZ_DIAGNOSTIC_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7379) ; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7379); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7380 | |||||
| 7381 | AUTO_PROFILER_LABEL("DatabaseConnection::Close", DOM)mozilla::AutoProfilerLabel raiiObject7381( "DatabaseConnection::Close" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7382 | |||||
| 7383 | if (mUpdateRefcountFunction) { | ||||
| 7384 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (MutableStorageConnection().RemoveFunction("update_refcount"_ns ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7385) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))" ")"); do { MOZ_CrashSequence(__null, 7385); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 7385 | MutableStorageConnection().RemoveFunction("update_refcount"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (MutableStorageConnection().RemoveFunction("update_refcount"_ns ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7385) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))" ")"); do { MOZ_CrashSequence(__null, 7385); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 7386 | mUpdateRefcountFunction = nullptr; | ||||
| 7387 | } | ||||
| 7388 | |||||
| 7389 | CachingDatabaseConnection::Close(); | ||||
| 7390 | |||||
| 7391 | mFileManager.destroy(); | ||||
| 7392 | } | ||||
| 7393 | |||||
| 7394 | nsresult DatabaseConnection::DisableQuotaChecks() { | ||||
| 7395 | AssertIsOnConnectionThread(); | ||||
| 7396 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7396) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7396); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7397 | |||||
| 7398 | if (!mQuotaObject) { | ||||
| 7399 | MOZ_ASSERT(!mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mJournalQuotaObject)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mJournalQuotaObject))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mJournalQuotaObject" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7399) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject" ")"); do { MOZ_CrashSequence(__null, 7399); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7400 | |||||
| 7401 | QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().GetQuotaObjects({auto tryResult949 = (ToResult(MutableStorageConnection().GetQuotaObjects ( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject )))); static_assert(std::is_empty_v<typename decltype(tryResult949 )::ok_type>); if ((__builtin_expect(!!(tryResult949.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))" , tryResult949.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7402, mozilla::dom::quota::Severity::Error); return tryResult949 .propagateErr(); }} | ||||
| 7402 | getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))){auto tryResult949 = (ToResult(MutableStorageConnection().GetQuotaObjects ( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject )))); static_assert(std::is_empty_v<typename decltype(tryResult949 )::ok_type>); if ((__builtin_expect(!!(tryResult949.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))" , tryResult949.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7402, mozilla::dom::quota::Severity::Error); return tryResult949 .propagateErr(); }}; | ||||
| 7403 | |||||
| 7404 | MOZ_ASSERT(mQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mQuotaObject)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mQuotaObject))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mQuotaObject", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7404); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaObject" ")"); do { MOZ_CrashSequence(__null, 7404); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7405 | MOZ_ASSERT(mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mJournalQuotaObject)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mJournalQuotaObject))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mJournalQuotaObject" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7405) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject" ")"); do { MOZ_CrashSequence(__null, 7405); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7406 | } | ||||
| 7407 | |||||
| 7408 | mQuotaObject->DisableQuotaCheck(); | ||||
| 7409 | mJournalQuotaObject->DisableQuotaCheck(); | ||||
| 7410 | |||||
| 7411 | return NS_OK; | ||||
| 7412 | } | ||||
| 7413 | |||||
| 7414 | void DatabaseConnection::EnableQuotaChecks() { | ||||
| 7415 | AssertIsOnConnectionThread(); | ||||
| 7416 | if (!mQuotaObject) { | ||||
| 7417 | MOZ_ASSERT(!mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mJournalQuotaObject)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mJournalQuotaObject))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mJournalQuotaObject" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7417) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject" ")"); do { MOZ_CrashSequence(__null, 7417); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7418 | |||||
| 7419 | // DisableQuotaChecks failed earlier, so we don't need to enable quota | ||||
| 7420 | // checks again. | ||||
| 7421 | return; | ||||
| 7422 | } | ||||
| 7423 | |||||
| 7424 | MOZ_ASSERT(mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mJournalQuotaObject)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mJournalQuotaObject))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mJournalQuotaObject" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7424) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject" ")"); do { MOZ_CrashSequence(__null, 7424); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7425 | |||||
| 7426 | const RefPtr<QuotaObject> quotaObject = std::move(mQuotaObject); | ||||
| 7427 | const RefPtr<QuotaObject> journalQuotaObject = std::move(mJournalQuotaObject); | ||||
| 7428 | |||||
| 7429 | quotaObject->EnableQuotaCheck(); | ||||
| 7430 | journalQuotaObject->EnableQuotaCheck(); | ||||
| 7431 | |||||
| 7432 | QM_TRY_INSPECT(const int64_t& fileSize, GetFileSize(quotaObject->Path()),auto tryResult950 = (GetFileSize(quotaObject->Path())); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult950.unwrapErr(); mozilla::dom ::quota::HandleError("GetFileSize(quotaObject->Path())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7433, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; } const int64_t& fileSize = tryResult950.inspect(); | ||||
| 7433 | QM_VOID)auto tryResult950 = (GetFileSize(quotaObject->Path())); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult950.unwrapErr(); mozilla::dom ::quota::HandleError("GetFileSize(quotaObject->Path())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7433, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; } const int64_t& fileSize = tryResult950.inspect();; | ||||
| 7434 | QM_TRY_INSPECT(const int64_t& journalFileSize,auto tryResult951 = (GetFileSize(journalQuotaObject->Path( ))); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult951.unwrapErr(); mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7435, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const int64_t& journalFileSize = tryResult951.inspect(); | ||||
| 7435 | GetFileSize(journalQuotaObject->Path()), QM_VOID)auto tryResult951 = (GetFileSize(journalQuotaObject->Path( ))); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult951.unwrapErr(); mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7435, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const int64_t& journalFileSize = tryResult951.inspect();; | ||||
| 7436 | |||||
| 7437 | DebugOnly<bool> result = journalQuotaObject->MaybeUpdateSize( | ||||
| 7438 | journalFileSize, /* aTruncate */ true); | ||||
| 7439 | MOZ_ASSERT(result)do { static_assert( mozilla::detail::AssertionConditionType< decltype(result)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(result))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("result", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7439); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")" ); do { MOZ_CrashSequence(__null, 7439); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7440 | |||||
| 7441 | result = quotaObject->MaybeUpdateSize(fileSize, /* aTruncate */ true); | ||||
| 7442 | MOZ_ASSERT(result)do { static_assert( mozilla::detail::AssertionConditionType< decltype(result)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(result))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("result", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7442); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")" ); do { MOZ_CrashSequence(__null, 7442); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7443 | } | ||||
| 7444 | |||||
| 7445 | Result<int64_t, nsresult> DatabaseConnection::GetFileSize( | ||||
| 7446 | const nsAString& aPath) { | ||||
| 7447 | MOZ_ASSERT(!aPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aPath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aPath.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aPath.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7447) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()" ")" ); do { MOZ_CrashSequence(__null, 7447); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7448 | |||||
| 7449 | QM_TRY_INSPECT(const auto& file, QM_NewLocalFile(aPath))auto tryResult952 = (QM_NewLocalFile(aPath)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("QM_NewLocalFile(aPath)", tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7449, mozilla::dom::quota::Severity::Error); return tryResult952 .propagateErr(); } const auto& file = tryResult952.inspect ();; | ||||
| 7450 | QM_TRY_INSPECT(const bool& exists, MOZ_TO_RESULT_INVOKE_MEMBER(file, Exists))auto tryResult953 = (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::Exists )); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::Exists )" , tryResult953.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7450, mozilla::dom::quota::Severity::Error); return tryResult953 .propagateErr(); } const bool& exists = tryResult953.inspect ();; | ||||
| 7451 | |||||
| 7452 | if (exists) { | ||||
| 7453 | QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize)){auto tryResult954 = (::mozilla::ToResultInvokeMember( (file) , &::mozilla::detail::DerefedType<decltype(file)>:: GetFileSize )); if ((__builtin_expect(!!(tryResult954.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )" , tryResult954.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7453, mozilla::dom::quota::Severity::Error); } return tryResult954 ;}; | ||||
| 7454 | } | ||||
| 7455 | |||||
| 7456 | return 0; | ||||
| 7457 | } | ||||
| 7458 | |||||
| 7459 | DatabaseConnection::AutoSavepoint::AutoSavepoint() | ||||
| 7460 | : mConnection(nullptr) | ||||
| 7461 | #ifdef DEBUG1 | ||||
| 7462 | , | ||||
| 7463 | mDEBUGTransaction(nullptr) | ||||
| 7464 | #endif | ||||
| 7465 | { | ||||
| 7466 | MOZ_COUNT_CTOR(DatabaseConnection::AutoSavepoint)do { static_assert(std::is_class_v<DatabaseConnection::AutoSavepoint >, "Token '" "DatabaseConnection::AutoSavepoint" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, DatabaseConnection ::AutoSavepoint>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseConnection::AutoSavepoint" , sizeof(*this)); } while (0); | ||||
| 7467 | } | ||||
| 7468 | |||||
| 7469 | DatabaseConnection::AutoSavepoint::~AutoSavepoint() { | ||||
| 7470 | MOZ_COUNT_DTOR(DatabaseConnection::AutoSavepoint)do { static_assert(std::is_class_v<DatabaseConnection::AutoSavepoint >, "Token '" "DatabaseConnection::AutoSavepoint" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, DatabaseConnection ::AutoSavepoint>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseConnection::AutoSavepoint" , sizeof(*this)); } while (0); | ||||
| 7471 | |||||
| 7472 | if (mConnection) { | ||||
| 7473 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7474 | MOZ_ASSERT(mDEBUGTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7474) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction" ")"); do { MOZ_CrashSequence(__null, 7474); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7475 | MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode ::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode () == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction-> GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::VersionChange))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7479) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 7479); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7476 | mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode ::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode () == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction-> GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::VersionChange))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7479) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 7479); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7477 | mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode ::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode () == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction-> GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::VersionChange))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7479) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 7479); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7478 | mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode ::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode () == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction-> GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::VersionChange))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7479) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 7479); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7479 | mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode ::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode () == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction-> GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::VersionChange))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7479) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 7479); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7480 | |||||
| 7481 | QM_WARNONLY_TRY(QM_TO_RESULT(mConnection->RollbackSavepoint())){auto tryResult955 = (ToResult<QMResult>(mConnection-> RollbackSavepoint())); static_assert(std::is_empty_v<typename decltype(tryResult955)::ok_type>); if ((__builtin_expect( !!(tryResult955.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(mConnection->RollbackSavepoint())" , tryResult955.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7481, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7482 | } | ||||
| 7483 | } | ||||
| 7484 | |||||
| 7485 | nsresult DatabaseConnection::AutoSavepoint::Start( | ||||
| 7486 | const TransactionBase& aTransaction) { | ||||
| 7487 | MOZ_ASSERT(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7490) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 7490); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7488 | aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7490) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 7490); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7489 | aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7490) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 7490); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7490 | aTransaction.GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7490) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 7490); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7491 | |||||
| 7492 | DatabaseConnection* connection = aTransaction.GetDatabase().GetConnection(); | ||||
| 7493 | MOZ_ASSERT(connection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(connection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(connection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("connection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7493); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection" ")"); do { MOZ_CrashSequence(__null, 7493); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7494 | connection->AssertIsOnConnectionThread(); | ||||
| 7495 | |||||
| 7496 | // The previous operation failed to begin a write transaction and the | ||||
| 7497 | // following opertion jumped to the connection thread before the previous | ||||
| 7498 | // operation has updated its failure to the transaction. | ||||
| 7499 | if (!connection->GetUpdateRefcountFunction()) { | ||||
| 7500 | NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation " "failed!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7502) | ||||
| 7501 | "The connection was closed because the previous operation "NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation " "failed!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7502) | ||||
| 7502 | "failed!")NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation " "failed!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7502); | ||||
| 7503 | return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR; | ||||
| 7504 | } | ||||
| 7505 | |||||
| 7506 | MOZ_ASSERT(!mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7506); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection" ")"); do { MOZ_CrashSequence(__null, 7506); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7507 | MOZ_ASSERT(!mDEBUGTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDEBUGTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDEBUGTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7507) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGTransaction" ")"); do { MOZ_CrashSequence(__null, 7507); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7508 | |||||
| 7509 | QM_TRY(MOZ_TO_RESULT(connection->StartSavepoint())){auto tryResult956 = (ToResult(connection->StartSavepoint( ))); static_assert(std::is_empty_v<typename decltype(tryResult956 )::ok_type>); if ((__builtin_expect(!!(tryResult956.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->StartSavepoint())" , tryResult956.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7509, mozilla::dom::quota::Severity::Error); return tryResult956 .propagateErr(); }}; | ||||
| 7510 | |||||
| 7511 | mConnection = connection; | ||||
| 7512 | #ifdef DEBUG1 | ||||
| 7513 | mDEBUGTransaction = &aTransaction; | ||||
| 7514 | #endif | ||||
| 7515 | |||||
| 7516 | return NS_OK; | ||||
| 7517 | } | ||||
| 7518 | |||||
| 7519 | nsresult DatabaseConnection::AutoSavepoint::Commit() { | ||||
| 7520 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7520); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7521 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7522 | MOZ_ASSERT(mDEBUGTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7522) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction" ")"); do { MOZ_CrashSequence(__null, 7522); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7523 | |||||
| 7524 | QM_TRY(MOZ_TO_RESULT(mConnection->ReleaseSavepoint())){auto tryResult957 = (ToResult(mConnection->ReleaseSavepoint ())); static_assert(std::is_empty_v<typename decltype(tryResult957 )::ok_type>); if ((__builtin_expect(!!(tryResult957.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(mConnection->ReleaseSavepoint())" , tryResult957.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7524, mozilla::dom::quota::Severity::Error); return tryResult957 .propagateErr(); }}; | ||||
| 7525 | |||||
| 7526 | mConnection = nullptr; | ||||
| 7527 | #ifdef DEBUG1 | ||||
| 7528 | mDEBUGTransaction = nullptr; | ||||
| 7529 | #endif | ||||
| 7530 | |||||
| 7531 | return NS_OK; | ||||
| 7532 | } | ||||
| 7533 | |||||
| 7534 | DatabaseConnection::UpdateRefcountFunction::UpdateRefcountFunction( | ||||
| 7535 | DatabaseConnection* const aConnection, DatabaseFileManager& aFileManager) | ||||
| 7536 | : mConnection(aConnection), | ||||
| 7537 | mFileManager(aFileManager), | ||||
| 7538 | mInSavepoint(false) { | ||||
| 7539 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7539); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 7539); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7540 | aConnection->AssertIsOnConnectionThread(); | ||||
| 7541 | } | ||||
| 7542 | |||||
| 7543 | nsresult DatabaseConnection::UpdateRefcountFunction::WillCommit() { | ||||
| 7544 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7544); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7544); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7545 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7546 | MOZ_ASSERT(mConnection->HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection->HasStorageConnection())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mConnection->HasStorageConnection()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection->HasStorageConnection()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7546) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection->HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7546); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7547 | |||||
| 7548 | AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::WillCommit",mozilla::AutoProfilerLabel raiiObject7549( "DatabaseConnection::UpdateRefcountFunction::WillCommit" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7549 | DOM)mozilla::AutoProfilerLabel raiiObject7549( "DatabaseConnection::UpdateRefcountFunction::WillCommit" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7550 | |||||
| 7551 | // The parameter names are not used, parameters are bound by index | ||||
| 7552 | // only locally in the same function. | ||||
| 7553 | auto update = | ||||
| 7554 | [updateStatement = LazyStatement{*mConnection, | ||||
| 7555 | "UPDATE file " | ||||
| 7556 | "SET refcount = refcount + :delta " | ||||
| 7557 | "WHERE id = :id"_ns}, | ||||
| 7558 | selectStatement = LazyStatement{*mConnection, | ||||
| 7559 | "SELECT id " | ||||
| 7560 | "FROM file " | ||||
| 7561 | "WHERE id = :id"_ns}, | ||||
| 7562 | insertStatement = | ||||
| 7563 | LazyStatement{ | ||||
| 7564 | *mConnection, | ||||
| 7565 | "INSERT INTO file (id, refcount) VALUES(:id, :delta)"_ns}, | ||||
| 7566 | this](int64_t aId, int32_t aDelta) mutable -> Result<Ok, nsresult> { | ||||
| 7567 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7568( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7568 | "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update", DOM)mozilla::AutoProfilerLabel raiiObject7568( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7569 | { | ||||
| 7570 | QM_TRY_INSPECT(const auto& borrowedUpdateStatement,auto tryResult958 = (updateStatement.Borrow()); if ((__builtin_expect (!!(tryResult958.isErr()), 0))) { mozilla::dom::quota::HandleError ("updateStatement.Borrow()", tryResult958.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7571, mozilla::dom::quota::Severity::Error); return tryResult958 .propagateErr(); } const auto& borrowedUpdateStatement = tryResult958 .inspect(); | ||||
| 7571 | updateStatement.Borrow())auto tryResult958 = (updateStatement.Borrow()); if ((__builtin_expect (!!(tryResult958.isErr()), 0))) { mozilla::dom::quota::HandleError ("updateStatement.Borrow()", tryResult958.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7571, mozilla::dom::quota::Severity::Error); return tryResult958 .propagateErr(); } const auto& borrowedUpdateStatement = tryResult958 .inspect();; | ||||
| 7572 | |||||
| 7573 | QM_TRY({auto tryResult959 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex (0, aDelta))); static_assert(std::is_empty_v<typename decltype (tryResult959)::ok_type>); if ((__builtin_expect(!!(tryResult959 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))" , tryResult959.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7574, mozilla::dom::quota::Severity::Error); return tryResult959 .propagateErr(); }} | ||||
| 7574 | MOZ_TO_RESULT(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))){auto tryResult959 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex (0, aDelta))); static_assert(std::is_empty_v<typename decltype (tryResult959)::ok_type>); if ((__builtin_expect(!!(tryResult959 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))" , tryResult959.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7574, mozilla::dom::quota::Severity::Error); return tryResult959 .propagateErr(); }}; | ||||
| 7575 | QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->BindInt64ByIndex(1, aId))){auto tryResult960 = (ToResult(borrowedUpdateStatement->BindInt64ByIndex (1, aId))); static_assert(std::is_empty_v<typename decltype (tryResult960)::ok_type>); if ((__builtin_expect(!!(tryResult960 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt64ByIndex(1, aId))" , tryResult960.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7575, mozilla::dom::quota::Severity::Error); return tryResult960 .propagateErr(); }}; | ||||
| 7576 | QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->Execute())){auto tryResult961 = (ToResult(borrowedUpdateStatement->Execute ())); static_assert(std::is_empty_v<typename decltype(tryResult961 )::ok_type>); if ((__builtin_expect(!!(tryResult961.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->Execute())" , tryResult961.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7576, mozilla::dom::quota::Severity::Error); return tryResult961 .propagateErr(); }}; | ||||
| 7577 | } | ||||
| 7578 | |||||
| 7579 | QM_TRY_INSPECT(auto tryResult962 = (::mozilla::ToResultInvokeMember( (mConnection ->MutableStorageConnection()), &::mozilla::detail::DerefedType <decltype(mConnection->MutableStorageConnection())>:: GetAffectedRows )); if ((__builtin_expect(!!(tryResult962.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows )" , tryResult962.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7582, mozilla::dom::quota::Severity::Error); return tryResult962 .propagateErr(); } const int32_t& rows = tryResult962.inspect (); | ||||
| 7580 | const int32_t& rows,auto tryResult962 = (::mozilla::ToResultInvokeMember( (mConnection ->MutableStorageConnection()), &::mozilla::detail::DerefedType <decltype(mConnection->MutableStorageConnection())>:: GetAffectedRows )); if ((__builtin_expect(!!(tryResult962.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows )" , tryResult962.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7582, mozilla::dom::quota::Severity::Error); return tryResult962 .propagateErr(); } const int32_t& rows = tryResult962.inspect (); | ||||
| 7581 | MOZ_TO_RESULT_INVOKE_MEMBER(mConnection->MutableStorageConnection(),auto tryResult962 = (::mozilla::ToResultInvokeMember( (mConnection ->MutableStorageConnection()), &::mozilla::detail::DerefedType <decltype(mConnection->MutableStorageConnection())>:: GetAffectedRows )); if ((__builtin_expect(!!(tryResult962.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows )" , tryResult962.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7582, mozilla::dom::quota::Severity::Error); return tryResult962 .propagateErr(); } const int32_t& rows = tryResult962.inspect (); | ||||
| 7582 | GetAffectedRows))auto tryResult962 = (::mozilla::ToResultInvokeMember( (mConnection ->MutableStorageConnection()), &::mozilla::detail::DerefedType <decltype(mConnection->MutableStorageConnection())>:: GetAffectedRows )); if ((__builtin_expect(!!(tryResult962.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows )" , tryResult962.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7582, mozilla::dom::quota::Severity::Error); return tryResult962 .propagateErr(); } const int32_t& rows = tryResult962.inspect ();; | ||||
| 7583 | |||||
| 7584 | if (rows > 0) { | ||||
| 7585 | QM_TRY_INSPECT(auto tryResult964 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult963)::ok_type> ); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult963.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7590, mozilla::dom::quota::Severity::Error); return tryResult963 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult964.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult963)::ok_type>); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult963.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7590, mozilla::dom::quota::Severity::Error); return tryResult963.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult964.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7593, mozilla::dom::quota::Severity::Error); return tryResult964 .propagateErr(); } const bool& hasResult = tryResult964.inspect (); | ||||
| 7586 | const bool& hasResult,auto tryResult964 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult963)::ok_type> ); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult963.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7590, mozilla::dom::quota::Severity::Error); return tryResult963 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult964.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult963)::ok_type>); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult963.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7590, mozilla::dom::quota::Severity::Error); return tryResult963.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult964.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7593, mozilla::dom::quota::Severity::Error); return tryResult964 .propagateErr(); } const bool& hasResult = tryResult964.inspect (); | ||||
| 7587 | selectStatementauto tryResult964 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult963)::ok_type> ); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult963.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7590, mozilla::dom::quota::Severity::Error); return tryResult963 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult964.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult963)::ok_type>); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult963.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7590, mozilla::dom::quota::Severity::Error); return tryResult963.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult964.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7593, mozilla::dom::quota::Severity::Error); return tryResult964 .propagateErr(); } const bool& hasResult = tryResult964.inspect (); | ||||
| 7588 | .BorrowAndExecuteSingleStep(auto tryResult964 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult963)::ok_type> ); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult963.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7590, mozilla::dom::quota::Severity::Error); return tryResult963 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult964.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult963)::ok_type>); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult963.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7590, mozilla::dom::quota::Severity::Error); return tryResult963.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult964.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7593, mozilla::dom::quota::Severity::Error); return tryResult964 .propagateErr(); } const bool& hasResult = tryResult964.inspect (); | ||||
| 7589 | [aId](auto& stmt) -> Result<Ok, nsresult> {auto tryResult964 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult963)::ok_type> ); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult963.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7590, mozilla::dom::quota::Severity::Error); return tryResult963 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult964.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult963)::ok_type>); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult963.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7590, mozilla::dom::quota::Severity::Error); return tryResult963.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult964.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7593, mozilla::dom::quota::Severity::Error); return tryResult964 .propagateErr(); } const bool& hasResult = tryResult964.inspect (); | ||||
| 7590 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, aId)));auto tryResult964 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult963)::ok_type> ); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult963.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7590, mozilla::dom::quota::Severity::Error); return tryResult963 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult964.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult963)::ok_type>); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult963.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7590, mozilla::dom::quota::Severity::Error); return tryResult963.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult964.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7593, mozilla::dom::quota::Severity::Error); return tryResult964 .propagateErr(); } const bool& hasResult = tryResult964.inspect (); | ||||
| 7591 | return Ok{};auto tryResult964 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult963)::ok_type> ); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult963.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7590, mozilla::dom::quota::Severity::Error); return tryResult963 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult964.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult963)::ok_type>); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult963.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7590, mozilla::dom::quota::Severity::Error); return tryResult963.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult964.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7593, mozilla::dom::quota::Severity::Error); return tryResult964 .propagateErr(); } const bool& hasResult = tryResult964.inspect (); | ||||
| 7592 | })auto tryResult964 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult963)::ok_type> ); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult963.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7590, mozilla::dom::quota::Severity::Error); return tryResult963 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult964.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult963)::ok_type>); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult963.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7590, mozilla::dom::quota::Severity::Error); return tryResult963.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult964.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7593, mozilla::dom::quota::Severity::Error); return tryResult964 .propagateErr(); } const bool& hasResult = tryResult964.inspect (); | ||||
| 7593 | .map(IsSome))auto tryResult964 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult963)::ok_type> ); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult963.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7590, mozilla::dom::quota::Severity::Error); return tryResult963 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult964.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult963 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult963)::ok_type>); if ((__builtin_expect(!!(tryResult963.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult963.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7590, mozilla::dom::quota::Severity::Error); return tryResult963.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult964.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7593, mozilla::dom::quota::Severity::Error); return tryResult964 .propagateErr(); } const bool& hasResult = tryResult964.inspect ();; | ||||
| 7594 | |||||
| 7595 | if (!hasResult) { | ||||
| 7596 | // Don't have to create the journal here, we can create all at once, | ||||
| 7597 | // just before commit | ||||
| 7598 | mJournalsToCreateBeforeCommit.AppendElement(aId); | ||||
| 7599 | } | ||||
| 7600 | |||||
| 7601 | return Ok{}; | ||||
| 7602 | } | ||||
| 7603 | |||||
| 7604 | QM_TRY_INSPECT(const auto& borrowedInsertStatement,auto tryResult965 = (insertStatement.Borrow()); if ((__builtin_expect (!!(tryResult965.isErr()), 0))) { mozilla::dom::quota::HandleError ("insertStatement.Borrow()", tryResult965.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7605, mozilla::dom::quota::Severity::Error); return tryResult965 .propagateErr(); } const auto& borrowedInsertStatement = tryResult965 .inspect(); | ||||
| 7605 | insertStatement.Borrow())auto tryResult965 = (insertStatement.Borrow()); if ((__builtin_expect (!!(tryResult965.isErr()), 0))) { mozilla::dom::quota::HandleError ("insertStatement.Borrow()", tryResult965.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7605, mozilla::dom::quota::Severity::Error); return tryResult965 .propagateErr(); } const auto& borrowedInsertStatement = tryResult965 .inspect();; | ||||
| 7606 | |||||
| 7607 | QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt64ByIndex(0, aId))){auto tryResult966 = (ToResult(borrowedInsertStatement->BindInt64ByIndex (0, aId))); static_assert(std::is_empty_v<typename decltype (tryResult966)::ok_type>); if ((__builtin_expect(!!(tryResult966 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt64ByIndex(0, aId))" , tryResult966.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7607, mozilla::dom::quota::Severity::Error); return tryResult966 .propagateErr(); }}; | ||||
| 7608 | QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))){auto tryResult967 = (ToResult(borrowedInsertStatement->BindInt32ByIndex (1, aDelta))); static_assert(std::is_empty_v<typename decltype (tryResult967)::ok_type>); if ((__builtin_expect(!!(tryResult967 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))" , tryResult967.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7608, mozilla::dom::quota::Severity::Error); return tryResult967 .propagateErr(); }}; | ||||
| 7609 | QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->Execute())){auto tryResult968 = (ToResult(borrowedInsertStatement->Execute ())); static_assert(std::is_empty_v<typename decltype(tryResult968 )::ok_type>); if ((__builtin_expect(!!(tryResult968.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->Execute())" , tryResult968.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7609, mozilla::dom::quota::Severity::Error); return tryResult968 .propagateErr(); }}; | ||||
| 7610 | |||||
| 7611 | mJournalsToRemoveAfterCommit.AppendElement(aId); | ||||
| 7612 | |||||
| 7613 | return Ok{}; | ||||
| 7614 | }; | ||||
| 7615 | |||||
| 7616 | QM_TRY(CollectEachInRange({auto tryResult970 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult969)::ok_type> ); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult969 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7620, mozilla::dom::quota::Severity::Error); return tryResult969 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult970)::ok_type>); if ((__builtin_expect (!!(tryResult970.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult969)::ok_type>); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult969.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7620, mozilla::dom::quota::Severity::Error); return tryResult969.propagateErr(); }}; } return Ok{}; })" , tryResult970.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7624, mozilla::dom::quota::Severity::Error); return tryResult970 .propagateErr(); }} | ||||
| 7617 | mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> {{auto tryResult970 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult969)::ok_type> ); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult969 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7620, mozilla::dom::quota::Severity::Error); return tryResult969 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult970)::ok_type>); if ((__builtin_expect (!!(tryResult970.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult969)::ok_type>); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult969.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7620, mozilla::dom::quota::Severity::Error); return tryResult969.propagateErr(); }}; } return Ok{}; })" , tryResult970.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7624, mozilla::dom::quota::Severity::Error); return tryResult970 .propagateErr(); }} | ||||
| 7618 | const auto delta = entry.GetData()->Delta();{auto tryResult970 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult969)::ok_type> ); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult969 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7620, mozilla::dom::quota::Severity::Error); return tryResult969 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult970)::ok_type>); if ((__builtin_expect (!!(tryResult970.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult969)::ok_type>); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult969.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7620, mozilla::dom::quota::Severity::Error); return tryResult969.propagateErr(); }}; } return Ok{}; })" , tryResult970.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7624, mozilla::dom::quota::Severity::Error); return tryResult970 .propagateErr(); }} | ||||
| 7619 | if (delta) {{auto tryResult970 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult969)::ok_type> ); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult969 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7620, mozilla::dom::quota::Severity::Error); return tryResult969 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult970)::ok_type>); if ((__builtin_expect (!!(tryResult970.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult969)::ok_type>); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult969.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7620, mozilla::dom::quota::Severity::Error); return tryResult969.propagateErr(); }}; } return Ok{}; })" , tryResult970.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7624, mozilla::dom::quota::Severity::Error); return tryResult970 .propagateErr(); }} | ||||
| 7620 | QM_TRY(update(entry.GetKey(), delta));{auto tryResult970 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult969)::ok_type> ); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult969 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7620, mozilla::dom::quota::Severity::Error); return tryResult969 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult970)::ok_type>); if ((__builtin_expect (!!(tryResult970.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult969)::ok_type>); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult969.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7620, mozilla::dom::quota::Severity::Error); return tryResult969.propagateErr(); }}; } return Ok{}; })" , tryResult970.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7624, mozilla::dom::quota::Severity::Error); return tryResult970 .propagateErr(); }} | ||||
| 7621 | }{auto tryResult970 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult969)::ok_type> ); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult969 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7620, mozilla::dom::quota::Severity::Error); return tryResult969 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult970)::ok_type>); if ((__builtin_expect (!!(tryResult970.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult969)::ok_type>); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult969.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7620, mozilla::dom::quota::Severity::Error); return tryResult969.propagateErr(); }}; } return Ok{}; })" , tryResult970.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7624, mozilla::dom::quota::Severity::Error); return tryResult970 .propagateErr(); }} | ||||
| 7622 | |||||
| 7623 | return Ok{};{auto tryResult970 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult969)::ok_type> ); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult969 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7620, mozilla::dom::quota::Severity::Error); return tryResult969 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult970)::ok_type>); if ((__builtin_expect (!!(tryResult970.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult969)::ok_type>); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult969.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7620, mozilla::dom::quota::Severity::Error); return tryResult969.propagateErr(); }}; } return Ok{}; })" , tryResult970.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7624, mozilla::dom::quota::Severity::Error); return tryResult970 .propagateErr(); }} | ||||
| 7624 | })){auto tryResult970 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult969)::ok_type> ); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult969 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7620, mozilla::dom::quota::Severity::Error); return tryResult969 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult970)::ok_type>); if ((__builtin_expect (!!(tryResult970.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult969 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult969)::ok_type>); if ((__builtin_expect(!!(tryResult969.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult969.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7620, mozilla::dom::quota::Severity::Error); return tryResult969.propagateErr(); }}; } return Ok{}; })" , tryResult970.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7624, mozilla::dom::quota::Severity::Error); return tryResult970 .propagateErr(); }}; | ||||
| 7625 | |||||
| 7626 | QM_TRY(MOZ_TO_RESULT(CreateJournals())){auto tryResult971 = (ToResult(CreateJournals())); static_assert (std::is_empty_v<typename decltype(tryResult971)::ok_type> ); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(CreateJournals())", tryResult971 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7626, mozilla::dom::quota::Severity::Error); return tryResult971 .propagateErr(); }}; | ||||
| 7627 | |||||
| 7628 | return NS_OK; | ||||
| 7629 | } | ||||
| 7630 | |||||
| 7631 | void DatabaseConnection::UpdateRefcountFunction::DidCommit() { | ||||
| 7632 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7632); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7632); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7633 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7634 | |||||
| 7635 | AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidCommit",mozilla::AutoProfilerLabel raiiObject7636( "DatabaseConnection::UpdateRefcountFunction::DidCommit" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7636 | DOM)mozilla::AutoProfilerLabel raiiObject7636( "DatabaseConnection::UpdateRefcountFunction::DidCommit" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7637 | |||||
| 7638 | for (const auto& entry : mFileInfoEntries.Values()) { | ||||
| 7639 | entry->MaybeUpdateDBRefs(); | ||||
| 7640 | } | ||||
| 7641 | |||||
| 7642 | QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterCommit))){auto tryResult972 = (ToResult<QMResult>(RemoveJournals (mJournalsToRemoveAfterCommit))); static_assert(std::is_empty_v <typename decltype(tryResult972)::ok_type>); if ((__builtin_expect (!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterCommit))" , tryResult972.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7642, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7643 | } | ||||
| 7644 | |||||
| 7645 | void DatabaseConnection::UpdateRefcountFunction::DidAbort() { | ||||
| 7646 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7646); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7646); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7647 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7648 | |||||
| 7649 | AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidAbort",mozilla::AutoProfilerLabel raiiObject7650( "DatabaseConnection::UpdateRefcountFunction::DidAbort" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7650 | DOM)mozilla::AutoProfilerLabel raiiObject7650( "DatabaseConnection::UpdateRefcountFunction::DidAbort" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7651 | |||||
| 7652 | QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterAbort))){auto tryResult973 = (ToResult<QMResult>(RemoveJournals (mJournalsToRemoveAfterAbort))); static_assert(std::is_empty_v <typename decltype(tryResult973)::ok_type>); if ((__builtin_expect (!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterAbort))" , tryResult973.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7652, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7653 | } | ||||
| 7654 | |||||
| 7655 | void DatabaseConnection::UpdateRefcountFunction::StartSavepoint() { | ||||
| 7656 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7656); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7657 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7658 | MOZ_ASSERT(!mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInSavepoint)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInSavepoint))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInSavepoint", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint" ")") ; do { MOZ_CrashSequence(__null, 7658); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7659 | MOZ_ASSERT(!mSavepointEntriesIndex.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mSavepointEntriesIndex.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mSavepointEntriesIndex.Count ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mSavepointEntriesIndex.Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7659); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mSavepointEntriesIndex.Count()" ")"); do { MOZ_CrashSequence(__null, 7659); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7660 | |||||
| 7661 | mInSavepoint = true; | ||||
| 7662 | } | ||||
| 7663 | |||||
| 7664 | void DatabaseConnection::UpdateRefcountFunction::ReleaseSavepoint() { | ||||
| 7665 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7665); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7665); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7666 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7667 | MOZ_ASSERT(mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInSavepoint)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInSavepoint))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInSavepoint", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7667); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint" ")"); do { MOZ_CrashSequence(__null, 7667); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7668 | |||||
| 7669 | // The savepoint is being committed. The deltas it contributed are now | ||||
| 7670 | // permanent in mDelta, so reset mSavepointDelta on each entry before | ||||
| 7671 | // dropping the index. The FileInfoEntry objects themselves persist in | ||||
| 7672 | // mFileInfoEntries across savepoints; without this reset, a stale | ||||
| 7673 | // mSavepointDelta would be carried into the next savepoint. | ||||
| 7674 | for (const auto& entry : mSavepointEntriesIndex.Values()) { | ||||
| 7675 | entry->ResetSavepointDelta(); | ||||
| 7676 | } | ||||
| 7677 | |||||
| 7678 | mSavepointEntriesIndex.Clear(); | ||||
| 7679 | mInSavepoint = false; | ||||
| 7680 | } | ||||
| 7681 | |||||
| 7682 | void DatabaseConnection::UpdateRefcountFunction::RollbackSavepoint() { | ||||
| 7683 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7683); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7683); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7684 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7685 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7685) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 7685); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7686 | MOZ_ASSERT(mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInSavepoint)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInSavepoint))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInSavepoint", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7686); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint" ")"); do { MOZ_CrashSequence(__null, 7686); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7687 | |||||
| 7688 | for (const auto& entry : mSavepointEntriesIndex.Values()) { | ||||
| 7689 | entry->DecBySavepointDelta(); | ||||
| 7690 | entry->ResetSavepointDelta(); | ||||
| 7691 | } | ||||
| 7692 | |||||
| 7693 | mInSavepoint = false; | ||||
| 7694 | mSavepointEntriesIndex.Clear(); | ||||
| 7695 | } | ||||
| 7696 | |||||
| 7697 | void DatabaseConnection::UpdateRefcountFunction::Reset() { | ||||
| 7698 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7698); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7698); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7699 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7700 | MOZ_ASSERT(!mSavepointEntriesIndex.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mSavepointEntriesIndex.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mSavepointEntriesIndex.Count ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mSavepointEntriesIndex.Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7700); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mSavepointEntriesIndex.Count()" ")"); do { MOZ_CrashSequence(__null, 7700); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7701 | MOZ_ASSERT(!mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInSavepoint)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInSavepoint))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInSavepoint", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7701); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint" ")") ; do { MOZ_CrashSequence(__null, 7701); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7702 | |||||
| 7703 | mJournalsToCreateBeforeCommit.Clear(); | ||||
| 7704 | mJournalsToRemoveAfterCommit.Clear(); | ||||
| 7705 | mJournalsToRemoveAfterAbort.Clear(); | ||||
| 7706 | |||||
| 7707 | // DatabaseFileInfo implementation automatically removes unreferenced files, | ||||
| 7708 | // but it's done asynchronously and with a delay. We want to remove them (and | ||||
| 7709 | // decrease quota usage) before we fire the commit event. | ||||
| 7710 | for (const auto& entry : mFileInfoEntries.Values()) { | ||||
| 7711 | // We need to move mFileInfo into a raw pointer in order to release it | ||||
| 7712 | // explicitly with aSyncDeleteFile == true. | ||||
| 7713 | DatabaseFileInfo* const fileInfo = entry->ReleaseFileInfo().forget().take(); | ||||
| 7714 | MOZ_ASSERT(fileInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7714); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileInfo" ")" ); do { MOZ_CrashSequence(__null, 7714); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7715 | |||||
| 7716 | fileInfo->Release(/* aSyncDeleteFile */ true); | ||||
| 7717 | } | ||||
| 7718 | |||||
| 7719 | mFileInfoEntries.Clear(); | ||||
| 7720 | } | ||||
| 7721 | |||||
| 7722 | nsresult DatabaseConnection::UpdateRefcountFunction::ProcessValue( | ||||
| 7723 | mozIStorageValueArray* aValues, int32_t aIndex, UpdateType aUpdateType) { | ||||
| 7724 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7724); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7724); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7725 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7726 | MOZ_ASSERT(aValues)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aValues)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aValues))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aValues", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7726); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")" ); do { MOZ_CrashSequence(__null, 7726); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7727 | |||||
| 7728 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7729( "DatabaseConnection::UpdateRefcountFunction::ProcessValue" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7729 | "DatabaseConnection::UpdateRefcountFunction::ProcessValue", DOM)mozilla::AutoProfilerLabel raiiObject7729( "DatabaseConnection::UpdateRefcountFunction::ProcessValue" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7730 | |||||
| 7731 | QM_TRY_INSPECT(const int32_t& type,auto tryResult974 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , aIndex)); if ((__builtin_expect(!!(tryResult974 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , aIndex)" , tryResult974.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7732, mozilla::dom::quota::Severity::Error); return tryResult974 .propagateErr(); } const int32_t& type = tryResult974.inspect (); | ||||
| 7732 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, aIndex))auto tryResult974 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , aIndex)); if ((__builtin_expect(!!(tryResult974 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , aIndex)" , tryResult974.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7732, mozilla::dom::quota::Severity::Error); return tryResult974 .propagateErr(); } const int32_t& type = tryResult974.inspect ();; | ||||
| 7733 | |||||
| 7734 | if (type == mozIStorageValueArray::VALUE_TYPE_NULL) { | ||||
| 7735 | return NS_OK; | ||||
| 7736 | } | ||||
| 7737 | |||||
| 7738 | QM_TRY_INSPECT(const auto& ids, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult975 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect (!!(tryResult975.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)" , tryResult975.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7739, mozilla::dom::quota::Severity::Error); return tryResult975 .propagateErr(); } const auto& ids = tryResult975.inspect (); | ||||
| 7739 | nsString, aValues, GetString, aIndex))auto tryResult975 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect (!!(tryResult975.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)" , tryResult975.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7739, mozilla::dom::quota::Severity::Error); return tryResult975 .propagateErr(); } const auto& ids = tryResult975.inspect ();; | ||||
| 7740 | |||||
| 7741 | QM_TRY_INSPECT(const auto& files,auto tryResult976 = (DeserializeStructuredCloneFiles(mFileManager , ids)); if ((__builtin_expect(!!(tryResult976.isErr()), 0))) { mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)" , tryResult976.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7742, mozilla::dom::quota::Severity::Error); return tryResult976 .propagateErr(); } const auto& files = tryResult976.inspect (); | ||||
| 7742 | DeserializeStructuredCloneFiles(mFileManager, ids))auto tryResult976 = (DeserializeStructuredCloneFiles(mFileManager , ids)); if ((__builtin_expect(!!(tryResult976.isErr()), 0))) { mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)" , tryResult976.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7742, mozilla::dom::quota::Severity::Error); return tryResult976 .propagateErr(); } const auto& files = tryResult976.inspect ();; | ||||
| 7743 | |||||
| 7744 | for (const StructuredCloneFileParent& file : files) { | ||||
| 7745 | const int64_t id = file.FileInfo().Id(); | ||||
| 7746 | MOZ_ASSERT(id > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(id > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(id > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("id > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "id > 0" ")" ); do { MOZ_CrashSequence(__null, 7746); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7747 | |||||
| 7748 | const auto entry = | ||||
| 7749 | WrapNotNull(mFileInfoEntries.GetOrInsertNew(id, file.FileInfoPtr())); | ||||
| 7750 | |||||
| 7751 | if (mInSavepoint) { | ||||
| 7752 | mSavepointEntriesIndex.InsertOrUpdate(id, entry); | ||||
| 7753 | } | ||||
| 7754 | |||||
| 7755 | switch (aUpdateType) { | ||||
| 7756 | case UpdateType::Increment: | ||||
| 7757 | entry->IncDeltas(mInSavepoint); | ||||
| 7758 | break; | ||||
| 7759 | case UpdateType::Decrement: | ||||
| 7760 | entry->DecDeltas(mInSavepoint); | ||||
| 7761 | break; | ||||
| 7762 | default: | ||||
| 7763 | MOZ_CRASH("Unknown update type!")do { do { } while (false); MOZ_ReportCrash("" "Unknown update type!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7763) ; AnnotateMozCrashReason("MOZ_CRASH(" "Unknown update type!" ")" ); do { MOZ_CrashSequence(__null, 7763); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 7764 | } | ||||
| 7765 | } | ||||
| 7766 | |||||
| 7767 | return NS_OK; | ||||
| 7768 | } | ||||
| 7769 | |||||
| 7770 | nsresult DatabaseConnection::UpdateRefcountFunction::CreateJournals() { | ||||
| 7771 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7771); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7771); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7772 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7773 | |||||
| 7774 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7775( "DatabaseConnection::UpdateRefcountFunction::CreateJournals" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7775 | "DatabaseConnection::UpdateRefcountFunction::CreateJournals", DOM)mozilla::AutoProfilerLabel raiiObject7775( "DatabaseConnection::UpdateRefcountFunction::CreateJournals" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7776 | |||||
| 7777 | const nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory(); | ||||
| 7778 | QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult977 = (OkIf(journalDirectory)); static_assert( std::is_empty_v<typename decltype(tryResult977)::ok_type> ); if ((__builtin_expect(!!(tryResult977.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult977.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(journalDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7778, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)" , tryTempError, NS_ERROR_FAILURE); }}; | ||||
| 7779 | |||||
| 7780 | for (const int64_t id : mJournalsToCreateBeforeCommit) { | ||||
| 7781 | const nsCOMPtr<nsIFile> file = | ||||
| 7782 | DatabaseFileManager::GetFileForId(journalDirectory, id); | ||||
| 7783 | QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult978 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult978)::ok_type>); if ((__builtin_expect (!!(tryResult978.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult978.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(file)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 7784 | |||||
| 7785 | QM_TRY(MOZ_TO_RESULT(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult979 = (ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE , 0644))); static_assert(std::is_empty_v<typename decltype (tryResult979)::ok_type>); if ((__builtin_expect(!!(tryResult979 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))" , tryResult979.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7785, mozilla::dom::quota::Severity::Error); return tryResult979 .propagateErr(); }}; | ||||
| 7786 | |||||
| 7787 | mJournalsToRemoveAfterAbort.AppendElement(id); | ||||
| 7788 | } | ||||
| 7789 | |||||
| 7790 | return NS_OK; | ||||
| 7791 | } | ||||
| 7792 | |||||
| 7793 | nsresult DatabaseConnection::UpdateRefcountFunction::RemoveJournals( | ||||
| 7794 | const nsTArray<int64_t>& aJournals) { | ||||
| 7795 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7795); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7795); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7796 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7797 | |||||
| 7798 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7799( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7799 | "DatabaseConnection::UpdateRefcountFunction::RemoveJournals", DOM)mozilla::AutoProfilerLabel raiiObject7799( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7800 | |||||
| 7801 | nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory(); | ||||
| 7802 | QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult980 = (OkIf(journalDirectory)); static_assert( std::is_empty_v<typename decltype(tryResult980)::ok_type> ); if ((__builtin_expect(!!(tryResult980.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult980.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(journalDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7802, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)" , tryTempError, NS_ERROR_FAILURE); }}; | ||||
| 7803 | |||||
| 7804 | for (const auto& journal : aJournals) { | ||||
| 7805 | nsCOMPtr<nsIFile> file = | ||||
| 7806 | DatabaseFileManager::GetFileForId(journalDirectory, journal); | ||||
| 7807 | QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult981 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult981)::ok_type>); if ((__builtin_expect (!!(tryResult981.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult981.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(file)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7807, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 7808 | |||||
| 7809 | QM_WARNONLY_TRY(QM_TO_RESULT(file->Remove(false))){auto tryResult982 = (ToResult<QMResult>(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult982)::ok_type>); if ((__builtin_expect(!!(tryResult982 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult<QMResult>(file->Remove(false))" , tryResult982.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7809, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7810 | } | ||||
| 7811 | |||||
| 7812 | return NS_OK; | ||||
| 7813 | } | ||||
| 7814 | |||||
| 7815 | NS_IMPL_ISUPPORTS(DatabaseConnection::UpdateRefcountFunction,MozExternalRefCountType DatabaseConnection::UpdateRefcountFunction ::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseConnection ::UpdateRefcountFunction>, "Reference-counted class " "DatabaseConnection::UpdateRefcountFunction" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 7816 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 7816); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("DatabaseConnection::UpdateRefcountFunction" " not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef ((this), (count), ("DatabaseConnection::UpdateRefcountFunction" ), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType DatabaseConnection::UpdateRefcountFunction::Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 7816 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 7816); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("DatabaseConnection::UpdateRefcountFunction" " not thread-safe"); const char* const nametmp = "DatabaseConnection::UpdateRefcountFunction" ; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), ( nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return 0; } return count; } nsresult DatabaseConnection::UpdateRefcountFunction ::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "QueryInterface requires a non-NULL destination!", "aInstancePtr" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7816) ; MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE ; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<DatabaseConnection::UpdateRefcountFunction , mozIStorageFunction>, int32_t( reinterpret_cast<char* >(static_cast<mozIStorageFunction*>((DatabaseConnection ::UpdateRefcountFunction*)0x1000)) - reinterpret_cast<char *>((DatabaseConnection::UpdateRefcountFunction*)0x1000))}, {&mozilla::detail::kImplementedIID<DatabaseConnection ::UpdateRefcountFunction, nsISupports>, int32_t(reinterpret_cast <char*>(static_cast<nsISupports*>( static_cast< mozIStorageFunction*>((DatabaseConnection::UpdateRefcountFunction *)0x1000))) - reinterpret_cast<char*>((DatabaseConnection ::UpdateRefcountFunction*)0x1000))}, { nullptr, 0 } } ; static_assert (std::size(table) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI (static_cast<void*>(this), aIID, aInstancePtr, table); return rv; } | ||||
| 7816 | mozIStorageFunction)MozExternalRefCountType DatabaseConnection::UpdateRefcountFunction ::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseConnection ::UpdateRefcountFunction>, "Reference-counted class " "DatabaseConnection::UpdateRefcountFunction" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 7816 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 7816); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("DatabaseConnection::UpdateRefcountFunction" " not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef ((this), (count), ("DatabaseConnection::UpdateRefcountFunction" ), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType DatabaseConnection::UpdateRefcountFunction::Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 7816 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 7816); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("DatabaseConnection::UpdateRefcountFunction" " not thread-safe"); const char* const nametmp = "DatabaseConnection::UpdateRefcountFunction" ; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), ( nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return 0; } return count; } nsresult DatabaseConnection::UpdateRefcountFunction ::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "QueryInterface requires a non-NULL destination!", "aInstancePtr" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7816) ; MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE ; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<DatabaseConnection::UpdateRefcountFunction , mozIStorageFunction>, int32_t( reinterpret_cast<char* >(static_cast<mozIStorageFunction*>((DatabaseConnection ::UpdateRefcountFunction*)0x1000)) - reinterpret_cast<char *>((DatabaseConnection::UpdateRefcountFunction*)0x1000))}, {&mozilla::detail::kImplementedIID<DatabaseConnection ::UpdateRefcountFunction, nsISupports>, int32_t(reinterpret_cast <char*>(static_cast<nsISupports*>( static_cast< mozIStorageFunction*>((DatabaseConnection::UpdateRefcountFunction *)0x1000))) - reinterpret_cast<char*>((DatabaseConnection ::UpdateRefcountFunction*)0x1000))}, { nullptr, 0 } } ; static_assert (std::size(table) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI (static_cast<void*>(this), aIID, aInstancePtr, table); return rv; } | ||||
| 7817 | |||||
| 7818 | NS_IMETHODIMPnsresult | ||||
| 7819 | DatabaseConnection::UpdateRefcountFunction::OnFunctionCall( | ||||
| 7820 | mozIStorageValueArray* aValues, nsIVariant** _retval) { | ||||
| 7821 | MOZ_ASSERT(aValues)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aValues)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aValues))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aValues", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7821); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")" ); do { MOZ_CrashSequence(__null, 7821); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7822 | MOZ_ASSERT(_retval)do { static_assert( mozilla::detail::AssertionConditionType< decltype(_retval)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(_retval))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("_retval", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7822); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")" ); do { MOZ_CrashSequence(__null, 7822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7823 | |||||
| 7824 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7825( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7825 | "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject7825( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7826 | |||||
| 7827 | #ifdef DEBUG1 | ||||
| 7828 | { | ||||
| 7829 | QM_TRY_INSPECT(const uint32_t& numEntries,auto tryResult983 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetNumEntries )); if ((__builtin_expect(!!(tryResult983.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult983 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7831); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7831); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const uint32_t & numEntries = tryResult983.inspect(); | ||||
| 7830 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetNumEntries),auto tryResult983 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetNumEntries )); if ((__builtin_expect(!!(tryResult983.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult983 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7831); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7831); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const uint32_t & numEntries = tryResult983.inspect(); | ||||
| 7831 | QM_ASSERT_UNREACHABLE)auto tryResult983 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetNumEntries )); if ((__builtin_expect(!!(tryResult983.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult983 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7831); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7831); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const uint32_t & numEntries = tryResult983.inspect();; | ||||
| 7832 | |||||
| 7833 | MOZ_ASSERT(numEntries == 2)do { static_assert( mozilla::detail::AssertionConditionType< decltype(numEntries == 2)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(numEntries == 2))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("numEntries == 2" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7833) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "numEntries == 2" ")" ); do { MOZ_CrashSequence(__null, 7833); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7834 | |||||
| 7835 | QM_TRY_INSPECT(const int32_t& type1,auto tryResult984 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 0)); if ((__builtin_expect(!!(tryResult984 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult984 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7837, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7837); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7837); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type1 = tryResult984.inspect(); | ||||
| 7836 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 0),auto tryResult984 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 0)); if ((__builtin_expect(!!(tryResult984 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult984 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7837, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7837); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7837); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type1 = tryResult984.inspect(); | ||||
| 7837 | QM_ASSERT_UNREACHABLE)auto tryResult984 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 0)); if ((__builtin_expect(!!(tryResult984 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult984 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7837, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7837); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7837); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type1 = tryResult984.inspect();; | ||||
| 7838 | |||||
| 7839 | QM_TRY_INSPECT(const int32_t& type2,auto tryResult985 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult985 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult985 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7841); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7841); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type2 = tryResult985.inspect(); | ||||
| 7840 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1),auto tryResult985 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult985 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult985 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7841); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7841); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type2 = tryResult985.inspect(); | ||||
| 7841 | QM_ASSERT_UNREACHABLE)auto tryResult985 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult985 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult985 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7841); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7841); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type2 = tryResult985.inspect();; | ||||
| 7842 | |||||
| 7843 | MOZ_ASSERT(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL &&do { static_assert( mozilla::detail::AssertionConditionType< decltype(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7844) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)" ")"); do { MOZ_CrashSequence(__null, 7844); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7844 | type2 == mozIStorageValueArray::VALUE_TYPE_NULL))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7844) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)" ")"); do { MOZ_CrashSequence(__null, 7844); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7845 | } | ||||
| 7846 | #endif | ||||
| 7847 | |||||
| 7848 | QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 0, UpdateType::Decrement))){auto tryResult986 = (ToResult(ProcessValue(aValues, 0, UpdateType ::Decrement))); static_assert(std::is_empty_v<typename decltype (tryResult986)::ok_type>); if ((__builtin_expect(!!(tryResult986 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 0, UpdateType::Decrement))" , tryResult986.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7848, mozilla::dom::quota::Severity::Error); return tryResult986 .propagateErr(); }}; | ||||
| 7849 | |||||
| 7850 | QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 1, UpdateType::Increment))){auto tryResult987 = (ToResult(ProcessValue(aValues, 1, UpdateType ::Increment))); static_assert(std::is_empty_v<typename decltype (tryResult987)::ok_type>); if ((__builtin_expect(!!(tryResult987 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 1, UpdateType::Increment))" , tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7850, mozilla::dom::quota::Severity::Error); return tryResult987 .propagateErr(); }}; | ||||
| 7851 | |||||
| 7852 | return NS_OK; | ||||
| 7853 | } | ||||
| 7854 | |||||
| 7855 | /******************************************************************************* | ||||
| 7856 | * ConnectionPool implementation | ||||
| 7857 | ******************************************************************************/ | ||||
| 7858 | |||||
| 7859 | ConnectionPool::ConnectionPool() | ||||
| 7860 | : mDatabasesMutex("ConnectionPool::mDatabasesMutex"), | ||||
| 7861 | mIOTarget(MakeConnectionIOTarget()), | ||||
| 7862 | mIdleTimer(NS_NewTimer()), | ||||
| 7863 | mNextTransactionId(0) { | ||||
| 7864 | AssertIsOnOwningThread(); | ||||
| 7865 | AssertIsOnBackgroundThread(); | ||||
| 7866 | MOZ_ASSERT(mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIdleTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mIdleTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer" ")"); do { MOZ_CrashSequence(__null, 7866); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7867 | } | ||||
| 7868 | |||||
| 7869 | ConnectionPool::~ConnectionPool() { | ||||
| 7870 | AssertIsOnOwningThread(); | ||||
| 7871 | MOZ_ASSERT(mIdleDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIdleDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mIdleDatabases.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleDatabases.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7871) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 7871); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7872 | MOZ_ASSERT(!mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mIdleTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mIdleTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mIdleTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7872); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleTimer" ")"); do { MOZ_CrashSequence(__null, 7872); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7873 | MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7873) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 7873); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7874 | MOZ_ASSERT(!mDatabases.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabases.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabases.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabases.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7874) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()" ")"); do { MOZ_CrashSequence(__null, 7874); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7875 | MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7875) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { MOZ_CrashSequence(__null, 7875); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7876 | MOZ_ASSERT(mQueuedTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mQueuedTransactions.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mQueuedTransactions.IsEmpty( )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mQueuedTransactions.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7876); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedTransactions.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 7876); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7877 | MOZ_ASSERT(mCompleteCallbacks.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCompleteCallbacks.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCompleteCallbacks.IsEmpty() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mCompleteCallbacks.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7877); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 7877); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7878 | MOZ_ASSERT(mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mShutdownRequested)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mShutdownRequested))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mShutdownRequested" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7878) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested" ")"); do { MOZ_CrashSequence(__null, 7878); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7879 | MOZ_ASSERT(mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mShutdownComplete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mShutdownComplete))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mShutdownComplete" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7879) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete" ")"); do { MOZ_CrashSequence(__null, 7879); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7880 | } | ||||
| 7881 | |||||
| 7882 | // static | ||||
| 7883 | void ConnectionPool::IdleTimerCallback(nsITimer* aTimer, void* aClosure) { | ||||
| 7884 | MOZ_ASSERT(aTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTimer)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7884); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTimer" ")" ); do { MOZ_CrashSequence(__null, 7884); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7885 | MOZ_ASSERT(aClosure)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aClosure)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aClosure))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aClosure", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7885); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aClosure" ")" ); do { MOZ_CrashSequence(__null, 7885); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7886 | |||||
| 7887 | AUTO_PROFILER_LABEL("ConnectionPool::IdleTimerCallback", DOM)mozilla::AutoProfilerLabel raiiObject7887( "ConnectionPool::IdleTimerCallback" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7888 | |||||
| 7889 | auto& self = *static_cast<ConnectionPool*>(aClosure); | ||||
| 7890 | MOZ_ASSERT(self.mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(self.mIdleTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(self.mIdleTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("self.mIdleTimer" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7890) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "self.mIdleTimer" ")" ); do { MOZ_CrashSequence(__null, 7890); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7891 | MOZ_ASSERT(SameCOMIdentity(self.mIdleTimer, aTimer))do { static_assert( mozilla::detail::AssertionConditionType< decltype(SameCOMIdentity(self.mIdleTimer, aTimer))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(SameCOMIdentity(self.mIdleTimer, aTimer)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("SameCOMIdentity(self.mIdleTimer, aTimer)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7891) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "SameCOMIdentity(self.mIdleTimer, aTimer)" ")"); do { MOZ_CrashSequence(__null, 7891); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7892 | MOZ_ASSERT(!self.mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!self.mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!self.mTargetIdleTime.IsNull ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!self.mTargetIdleTime.IsNull()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!self.mTargetIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 7892); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7893 | |||||
| 7894 | self.mTargetIdleTime = TimeStamp(); | ||||
| 7895 | |||||
| 7896 | // Cheat a little. | ||||
| 7897 | const TimeStamp now = | ||||
| 7898 | TimeStamp::NowLoRes() + TimeDuration::FromMilliseconds(500); | ||||
| 7899 | |||||
| 7900 | // XXX Move this to ArrayAlgorithm.h? | ||||
| 7901 | const auto removeUntil = [](auto& array, auto&& cond) { | ||||
| 7902 | const auto begin = array.begin(), end = array.end(); | ||||
| 7903 | array.RemoveElementsRange( | ||||
| 7904 | begin, std::find_if(begin, end, std::forward<decltype(cond)>(cond))); | ||||
| 7905 | }; | ||||
| 7906 | |||||
| 7907 | removeUntil(self.mIdleDatabases, [now, &self](const auto& info) { | ||||
| 7908 | if (now >= info.mIdleTime) { | ||||
| 7909 | if ((*info.mDatabaseInfo)->mIdle) { | ||||
| 7910 | self.PerformIdleDatabaseMaintenance(*info.mDatabaseInfo.ref()); | ||||
| 7911 | } else { | ||||
| 7912 | self.CloseDatabase(*info.mDatabaseInfo.ref()); | ||||
| 7913 | } | ||||
| 7914 | |||||
| 7915 | return false; | ||||
| 7916 | } | ||||
| 7917 | |||||
| 7918 | return true; | ||||
| 7919 | }); | ||||
| 7920 | |||||
| 7921 | self.AdjustIdleTimer(); | ||||
| 7922 | } | ||||
| 7923 | |||||
| 7924 | Result<RefPtr<DatabaseConnection>, nsresult> | ||||
| 7925 | ConnectionPool::GetOrCreateConnection(const Database& aDatabase) { | ||||
| 7926 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7926) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 7926); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7927 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7927) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 7927); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7928 | |||||
| 7929 | AUTO_PROFILER_LABEL("ConnectionPool::GetOrCreateConnection", DOM)mozilla::AutoProfilerLabel raiiObject7929( "ConnectionPool::GetOrCreateConnection" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7930 | |||||
| 7931 | DatabaseInfo* dbInfo; | ||||
| 7932 | { | ||||
| 7933 | MutexAutoLock lock(mDatabasesMutex); | ||||
| 7934 | |||||
| 7935 | dbInfo = mDatabases.Get(aDatabase.Id()); | ||||
| 7936 | } | ||||
| 7937 | |||||
| 7938 | MOZ_ASSERT(dbInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(dbInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7938); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo" ")" ); do { MOZ_CrashSequence(__null, 7938); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7939 | |||||
| 7940 | if (dbInfo->mConnection) { | ||||
| 7941 | dbInfo->AssertIsOnConnectionThread(); | ||||
| 7942 | |||||
| 7943 | return dbInfo->mConnection; | ||||
| 7944 | } | ||||
| 7945 | |||||
| 7946 | MOZ_ASSERT(!dbInfo->mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!dbInfo->mDEBUGConnectionEventTarget)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!dbInfo->mDEBUGConnectionEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!dbInfo->mDEBUGConnectionEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7946) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo->mDEBUGConnectionEventTarget" ")"); do { MOZ_CrashSequence(__null, 7946); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7947 | |||||
| 7948 | QM_TRY_UNWRAP(auto tryResult988 = (GetStorageConnection(aDatabase.FilePath( ), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase .MaybeKeyRef())); if ((__builtin_expect(!!(tryResult988.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())" , tryResult988.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7951, mozilla::dom::quota::Severity::Error); return tryResult988 .propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection >> storageConnection = tryResult988.unwrap(); | ||||
| 7949 | MovingNotNull<nsCOMPtr<mozIStorageConnection>> storageConnection,auto tryResult988 = (GetStorageConnection(aDatabase.FilePath( ), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase .MaybeKeyRef())); if ((__builtin_expect(!!(tryResult988.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())" , tryResult988.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7951, mozilla::dom::quota::Severity::Error); return tryResult988 .propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection >> storageConnection = tryResult988.unwrap(); | ||||
| 7950 | GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(),auto tryResult988 = (GetStorageConnection(aDatabase.FilePath( ), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase .MaybeKeyRef())); if ((__builtin_expect(!!(tryResult988.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())" , tryResult988.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7951, mozilla::dom::quota::Severity::Error); return tryResult988 .propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection >> storageConnection = tryResult988.unwrap(); | ||||
| 7951 | aDatabase.TelemetryId(), aDatabase.MaybeKeyRef()))auto tryResult988 = (GetStorageConnection(aDatabase.FilePath( ), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase .MaybeKeyRef())); if ((__builtin_expect(!!(tryResult988.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())" , tryResult988.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7951, mozilla::dom::quota::Severity::Error); return tryResult988 .propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection >> storageConnection = tryResult988.unwrap();; | ||||
| 7952 | |||||
| 7953 | RefPtr<DatabaseConnection> connection = new DatabaseConnection( | ||||
| 7954 | std::move(storageConnection), aDatabase.GetFileManagerPtr()); | ||||
| 7955 | |||||
| 7956 | QM_TRY(MOZ_TO_RESULT(connection->Init())){auto tryResult989 = (ToResult(connection->Init())); static_assert (std::is_empty_v<typename decltype(tryResult989)::ok_type> ); if ((__builtin_expect(!!(tryResult989.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(connection->Init())", tryResult989 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7956, mozilla::dom::quota::Severity::Error); return tryResult989 .propagateErr(); }}; | ||||
| 7957 | |||||
| 7958 | dbInfo->mConnection = connection; | ||||
| 7959 | |||||
| 7960 | IDB_DEBUG_LOG(("ConnectionPool created connection 0x%p for '%s'", | ||||
| 7961 | dbInfo->mConnection.get(), | ||||
| 7962 | NS_ConvertUTF16toUTF8(aDatabase.FilePath()).get())); | ||||
| 7963 | |||||
| 7964 | #ifdef DEBUG1 | ||||
| 7965 | dbInfo->mDEBUGConnectionEventTarget = GetCurrentSerialEventTarget(); | ||||
| 7966 | #endif | ||||
| 7967 | |||||
| 7968 | return connection; | ||||
| 7969 | } | ||||
| 7970 | |||||
| 7971 | uint64_t ConnectionPool::Start( | ||||
| 7972 | const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId, | ||||
| 7973 | int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames, | ||||
| 7974 | bool aIsWriteTransaction, | ||||
| 7975 | TransactionDatabaseOperationBase* aTransactionOp) { | ||||
| 7976 | AssertIsOnOwningThread(); | ||||
| 7977 | MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7977) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 7977); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7978 | MOZ_ASSERT(mNextTransactionId < UINT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mNextTransactionId < (18446744073709551615UL))> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mNextTransactionId < (18446744073709551615UL)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mNextTransactionId < (18446744073709551615UL)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7978) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mNextTransactionId < (18446744073709551615UL)" ")"); do { MOZ_CrashSequence(__null, 7978); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7979 | MOZ_ASSERT(!mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mShutdownRequested)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mShutdownRequested))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mShutdownRequested" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7979) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownRequested" ")"); do { MOZ_CrashSequence(__null, 7979); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7980 | |||||
| 7981 | AUTO_PROFILER_LABEL("ConnectionPool::Start", DOM)mozilla::AutoProfilerLabel raiiObject7981( "ConnectionPool::Start" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7982 | |||||
| 7983 | const uint64_t transactionId = ++mNextTransactionId; | ||||
| 7984 | |||||
| 7985 | // To avoid always acquiring a lock, we don't use WithEntryHandle here, which | ||||
| 7986 | // would require a lock in any case. | ||||
| 7987 | DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId); | ||||
| 7988 | |||||
| 7989 | const bool databaseInfoIsNew = !dbInfo; | ||||
| 7990 | |||||
| 7991 | if (databaseInfoIsNew) { | ||||
| 7992 | MutexAutoLock lock(mDatabasesMutex); | ||||
| 7993 | |||||
| 7994 | dbInfo = mDatabases | ||||
| 7995 | .InsertOrUpdate(aDatabaseId, | ||||
| 7996 | MakeUnique<DatabaseInfo>(this, aDatabaseId)) | ||||
| 7997 | .get(); | ||||
| 7998 | } | ||||
| 7999 | |||||
| 8000 | MOZ_ASSERT(!mTransactions.Contains(transactionId))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Contains(transactionId))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mTransactions.Contains(transactionId)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Contains(transactionId)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8000) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(transactionId)" ")"); do { MOZ_CrashSequence(__null, 8000); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8001 | auto& transactionInfo = *mTransactions.InsertOrUpdate( | ||||
| 8002 | transactionId, MakeUnique<TransactionInfo>( | ||||
| 8003 | *dbInfo, aBackgroundChildLoggingId, aDatabaseId, | ||||
| 8004 | transactionId, aLoggingSerialNumber, aObjectStoreNames, | ||||
| 8005 | aIsWriteTransaction, aTransactionOp)); | ||||
| 8006 | |||||
| 8007 | if (aIsWriteTransaction) { | ||||
| 8008 | MOZ_ASSERT(dbInfo->mWriteTransactionCount < UINT32_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo->mWriteTransactionCount < (4294967295U) )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(dbInfo->mWriteTransactionCount < (4294967295U) ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "dbInfo->mWriteTransactionCount < (4294967295U)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8008); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mWriteTransactionCount < (4294967295U)" ")"); do { MOZ_CrashSequence(__null, 8008); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8009 | dbInfo->mWriteTransactionCount++; | ||||
| 8010 | } else { | ||||
| 8011 | MOZ_ASSERT(dbInfo->mReadTransactionCount < UINT32_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo->mReadTransactionCount < (4294967295U)) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(dbInfo->mReadTransactionCount < (4294967295U)) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo->mReadTransactionCount < (4294967295U)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8011) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mReadTransactionCount < (4294967295U)" ")"); do { MOZ_CrashSequence(__null, 8011); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8012 | dbInfo->mReadTransactionCount++; | ||||
| 8013 | } | ||||
| 8014 | |||||
| 8015 | auto& blockingTransactions = dbInfo->mBlockingTransactions; | ||||
| 8016 | |||||
| 8017 | for (const nsAString& objectStoreName : aObjectStoreNames) { | ||||
| 8018 | TransactionInfoPair* blockInfo = | ||||
| 8019 | blockingTransactions.GetOrInsertNew(objectStoreName); | ||||
| 8020 | |||||
| 8021 | // Mark what we are blocking on. | ||||
| 8022 | if (const auto maybeBlockingRead = blockInfo->mLastBlockingReads) { | ||||
| 8023 | transactionInfo.mBlockedOn.Insert(&maybeBlockingRead.ref()); | ||||
| 8024 | maybeBlockingRead->AddBlockingTransaction(transactionInfo); | ||||
| 8025 | } | ||||
| 8026 | |||||
| 8027 | if (aIsWriteTransaction) { | ||||
| 8028 | for (const auto blockingWrite : blockInfo->mLastBlockingWrites) { | ||||
| 8029 | transactionInfo.mBlockedOn.Insert(blockingWrite); | ||||
| 8030 | blockingWrite->AddBlockingTransaction(transactionInfo); | ||||
| 8031 | } | ||||
| 8032 | |||||
| 8033 | blockInfo->mLastBlockingReads = SomeRef(transactionInfo); | ||||
| 8034 | blockInfo->mLastBlockingWrites.Clear(); | ||||
| 8035 | } else { | ||||
| 8036 | blockInfo->mLastBlockingWrites.AppendElement( | ||||
| 8037 | WrapNotNullUnchecked(&transactionInfo)); | ||||
| 8038 | } | ||||
| 8039 | } | ||||
| 8040 | |||||
| 8041 | if (!transactionInfo.mBlockedOn.Count()) { | ||||
| 8042 | (void)ScheduleTransaction(transactionInfo, | ||||
| 8043 | /* aFromQueuedTransactions */ false); | ||||
| 8044 | } | ||||
| 8045 | |||||
| 8046 | if (!databaseInfoIsNew && | ||||
| 8047 | (mIdleDatabases.RemoveElement(dbInfo) || | ||||
| 8048 | mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo))) { | ||||
| 8049 | AdjustIdleTimer(); | ||||
| 8050 | } | ||||
| 8051 | |||||
| 8052 | return transactionId; | ||||
| 8053 | } | ||||
| 8054 | |||||
| 8055 | void ConnectionPool::StartOp(uint64_t aTransactionId, | ||||
| 8056 | nsCOMPtr<nsIRunnable> aRunnable) { | ||||
| 8057 | AssertIsOnOwningThread(); | ||||
| 8058 | |||||
| 8059 | AUTO_PROFILER_LABEL("ConnectionPool::StartOp", DOM)mozilla::AutoProfilerLabel raiiObject8059( "ConnectionPool::StartOp" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8060 | |||||
| 8061 | auto* const transactionInfo = mTransactions.Get(aTransactionId); | ||||
| 8062 | MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(transactionInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("transactionInfo" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8062) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")" ); do { MOZ_CrashSequence(__null, 8062); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8063 | |||||
| 8064 | transactionInfo->StartOp(std::move(aRunnable)); | ||||
| 8065 | } | ||||
| 8066 | |||||
| 8067 | void ConnectionPool::FinishOp(uint64_t aTransactionId) { | ||||
| 8068 | AssertIsOnOwningThread(); | ||||
| 8069 | |||||
| 8070 | AUTO_PROFILER_LABEL("ConnectionPool::FinishOp", DOM)mozilla::AutoProfilerLabel raiiObject8070( "ConnectionPool::FinishOp" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8071 | |||||
| 8072 | auto* const transactionInfo = mTransactions.Get(aTransactionId); | ||||
| 8073 | MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(transactionInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("transactionInfo" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8073) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")" ); do { MOZ_CrashSequence(__null, 8073); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8074 | |||||
| 8075 | transactionInfo->FinishOp(); | ||||
| 8076 | } | ||||
| 8077 | |||||
| 8078 | void ConnectionPool::Finish(uint64_t aTransactionId, | ||||
| 8079 | FinishCallback* aCallback) { | ||||
| 8080 | AssertIsOnOwningThread(); | ||||
| 8081 | |||||
| 8082 | #ifdef DEBUG1 | ||||
| 8083 | auto* const transactionInfo = mTransactions.Get(aTransactionId); | ||||
| 8084 | MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(transactionInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("transactionInfo" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8084) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")" ); do { MOZ_CrashSequence(__null, 8084); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8085 | MOZ_ASSERT(!transactionInfo->mFinished)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!transactionInfo->mFinished)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!transactionInfo->mFinished ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!transactionInfo->mFinished", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8085); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!transactionInfo->mFinished" ")"); do { MOZ_CrashSequence(__null, 8085); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8086 | #endif | ||||
| 8087 | |||||
| 8088 | AUTO_PROFILER_LABEL("ConnectionPool::Finish", DOM)mozilla::AutoProfilerLabel raiiObject8088( "ConnectionPool::Finish" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8089 | |||||
| 8090 | nsCOMPtr<nsIRunnable> wrapper = | ||||
| 8091 | new FinishCallbackWrapper(this, aTransactionId, aCallback); | ||||
| 8092 | |||||
| 8093 | StartOp(aTransactionId, std::move(wrapper)); | ||||
| 8094 | |||||
| 8095 | #ifdef DEBUG1 | ||||
| 8096 | transactionInfo->mFinished.Flip(); | ||||
| 8097 | #endif | ||||
| 8098 | } | ||||
| 8099 | |||||
| 8100 | void ConnectionPool::WaitForDatabaseToComplete(const nsCString& aDatabaseId, | ||||
| 8101 | nsIRunnable* aCallback) { | ||||
| 8102 | AssertIsOnOwningThread(); | ||||
| 8103 | MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8103) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8103); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8104 | MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8104); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { MOZ_CrashSequence(__null, 8104); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8105 | |||||
| 8106 | AUTO_PROFILER_LABEL("ConnectionPool::WaitForDatabaseToComplete", DOM)mozilla::AutoProfilerLabel raiiObject8106( "ConnectionPool::WaitForDatabaseToComplete" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8107 | |||||
| 8108 | if (!CloseDatabaseWhenIdleInternal(aDatabaseId)) { | ||||
| 8109 | (void)aCallback->Run(); | ||||
| 8110 | return; | ||||
| 8111 | } | ||||
| 8112 | |||||
| 8113 | mCompleteCallbacks.EmplaceBack( | ||||
| 8114 | MakeUnique<DatabaseCompleteCallback>(aDatabaseId, aCallback)); | ||||
| 8115 | } | ||||
| 8116 | |||||
| 8117 | void ConnectionPool::Shutdown() { | ||||
| 8118 | AssertIsOnOwningThread(); | ||||
| 8119 | MOZ_ASSERT(!mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mShutdownComplete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mShutdownComplete))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mShutdownComplete" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8119) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete" ")"); do { MOZ_CrashSequence(__null, 8119); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8120 | |||||
| 8121 | AUTO_PROFILER_LABEL("ConnectionPool::Shutdown", DOM)mozilla::AutoProfilerLabel raiiObject8121( "ConnectionPool::Shutdown" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8122 | |||||
| 8123 | mShutdownRequested.Flip(); | ||||
| 8124 | |||||
| 8125 | CancelIdleTimer(); | ||||
| 8126 | MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8126) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 8126); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8127 | |||||
| 8128 | mIdleTimer = nullptr; | ||||
| 8129 | |||||
| 8130 | CloseIdleDatabases(); | ||||
| 8131 | |||||
| 8132 | if (!mDatabases.Count()) { | ||||
| 8133 | MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8133) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { MOZ_CrashSequence(__null, 8133); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8134 | |||||
| 8135 | Cleanup(); | ||||
| 8136 | |||||
| 8137 | MOZ_ASSERT(mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mShutdownComplete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mShutdownComplete))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mShutdownComplete" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8137) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete" ")"); do { MOZ_CrashSequence(__null, 8137); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8138 | |||||
| 8139 | mIOTarget->Shutdown(); | ||||
| 8140 | |||||
| 8141 | return; | ||||
| 8142 | } | ||||
| 8143 | |||||
| 8144 | MOZ_ALWAYS_TRUE(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns, [&]() {do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns , [&]() { return static_cast<bool>(mShutdownComplete ); })), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8146) ; AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" ")"); do { MOZ_CrashSequence(__null, 8146); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8145 | return static_cast<bool>(mShutdownComplete);do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns , [&]() { return static_cast<bool>(mShutdownComplete ); })), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8146) ; AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" ")"); do { MOZ_CrashSequence(__null, 8146); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8146 | }))do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns , [&]() { return static_cast<bool>(mShutdownComplete ); })), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8146) ; AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" ")"); do { MOZ_CrashSequence(__null, 8146); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8147 | |||||
| 8148 | mIOTarget->Shutdown(); | ||||
| 8149 | } | ||||
| 8150 | |||||
| 8151 | void ConnectionPool::Cleanup() { | ||||
| 8152 | AssertIsOnOwningThread(); | ||||
| 8153 | MOZ_ASSERT(mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mShutdownRequested)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mShutdownRequested))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mShutdownRequested" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8153) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested" ")"); do { MOZ_CrashSequence(__null, 8153); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8154 | MOZ_ASSERT(!mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mShutdownComplete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mShutdownComplete))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mShutdownComplete" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8154) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete" ")"); do { MOZ_CrashSequence(__null, 8154); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8155 | MOZ_ASSERT(!mDatabases.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabases.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabases.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabases.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8155) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()" ")"); do { MOZ_CrashSequence(__null, 8155); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8156 | MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8156) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { MOZ_CrashSequence(__null, 8156); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8157 | |||||
| 8158 | AUTO_PROFILER_LABEL("ConnectionPool::Cleanup", DOM)mozilla::AutoProfilerLabel raiiObject8158( "ConnectionPool::Cleanup" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8159 | |||||
| 8160 | if (!mCompleteCallbacks.IsEmpty()) { | ||||
| 8161 | // Run all callbacks manually now. | ||||
| 8162 | |||||
| 8163 | { | ||||
| 8164 | auto completeCallbacks = std::move(mCompleteCallbacks); | ||||
| 8165 | for (const auto& completeCallback : completeCallbacks) { | ||||
| 8166 | MOZ_ASSERT(completeCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(completeCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(completeCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("completeCallback" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8166) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback" ")" ); do { MOZ_CrashSequence(__null, 8166); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8167 | MOZ_ASSERT(completeCallback->mCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(completeCallback->mCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(completeCallback->mCallback ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "completeCallback->mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8167); AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback->mCallback" ")"); do { MOZ_CrashSequence(__null, 8167); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8168 | |||||
| 8169 | (void)completeCallback->mCallback->Run(); | ||||
| 8170 | } | ||||
| 8171 | |||||
| 8172 | // We expect no new callbacks being completed by running the existing | ||||
| 8173 | // ones. | ||||
| 8174 | MOZ_ASSERT(mCompleteCallbacks.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCompleteCallbacks.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCompleteCallbacks.IsEmpty() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mCompleteCallbacks.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8174); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8175 | } | ||||
| 8176 | |||||
| 8177 | // And make sure they get processed. | ||||
| 8178 | nsIThread* currentThread = NS_GetCurrentThread(); | ||||
| 8179 | MOZ_ASSERT(currentThread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(currentThread)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(currentThread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("currentThread", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8179); AnnotateMozCrashReason("MOZ_ASSERT" "(" "currentThread" ")") ; do { MOZ_CrashSequence(__null, 8179); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8180 | |||||
| 8181 | MOZ_ALWAYS_SUCCEEDS(NS_ProcessPendingEvents(currentThread))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_ProcessPendingEvents(currentThread))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_ProcessPendingEvents(currentThread))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8181) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_ProcessPendingEvents(currentThread))" ")"); do { MOZ_CrashSequence(__null, 8181); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8182 | } | ||||
| 8183 | |||||
| 8184 | mShutdownComplete.Flip(); | ||||
| 8185 | } | ||||
| 8186 | |||||
| 8187 | void ConnectionPool::AdjustIdleTimer() { | ||||
| 8188 | AssertIsOnOwningThread(); | ||||
| 8189 | MOZ_ASSERT(mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIdleTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mIdleTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8189); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer" ")"); do { MOZ_CrashSequence(__null, 8189); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8190 | |||||
| 8191 | AUTO_PROFILER_LABEL("ConnectionPool::AdjustIdleTimer", DOM)mozilla::AutoProfilerLabel raiiObject8191( "ConnectionPool::AdjustIdleTimer" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8192 | |||||
| 8193 | // Figure out the next time at which we should release idle resources. This | ||||
| 8194 | // includes both databases and threads. | ||||
| 8195 | TimeStamp newTargetIdleTime; | ||||
| 8196 | MOZ_ASSERT(newTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(newTargetIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(newTargetIdleTime.IsNull())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("newTargetIdleTime.IsNull()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8196) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "newTargetIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 8196); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8197 | |||||
| 8198 | if (!mIdleDatabases.IsEmpty()) { | ||||
| 8199 | newTargetIdleTime = mIdleDatabases[0].mIdleTime; | ||||
| 8200 | } | ||||
| 8201 | |||||
| 8202 | MOZ_ASSERT_IF(newTargetIdleTime.IsNull(), mIdleDatabases.IsEmpty())do { if (newTargetIdleTime.IsNull()) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(mIdleDatabases.IsEmpty ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mIdleDatabases.IsEmpty()))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mIdleDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8202); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8202); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 8203 | |||||
| 8204 | // Cancel the timer if it was running and the new target time is different. | ||||
| 8205 | if (!mTargetIdleTime.IsNull() && | ||||
| 8206 | (newTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) { | ||||
| 8207 | CancelIdleTimer(); | ||||
| 8208 | |||||
| 8209 | MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8209) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 8209); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8210 | } | ||||
| 8211 | |||||
| 8212 | // Schedule the timer if we have a target time different than before. | ||||
| 8213 | if (!newTargetIdleTime.IsNull() && | ||||
| 8214 | (mTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) { | ||||
| 8215 | double delta = (newTargetIdleTime - TimeStamp::NowLoRes()).ToMilliseconds(); | ||||
| 8216 | |||||
| 8217 | uint32_t delay; | ||||
| 8218 | if (delta > 0) { | ||||
| 8219 | delay = uint32_t(std::min(delta, double(UINT32_MAX(4294967295U)))); | ||||
| 8220 | } else { | ||||
| 8221 | delay = 0; | ||||
| 8222 | } | ||||
| 8223 | |||||
| 8224 | MOZ_ALWAYS_SUCCEEDS(mIdleTimer->InitWithNamedFuncCallback(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, "ConnectionPool::IdleTimerCallback"_ns ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8226) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))" ")"); do { MOZ_CrashSequence(__null, 8226); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8225 | IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT,do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, "ConnectionPool::IdleTimerCallback"_ns ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8226) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))" ")"); do { MOZ_CrashSequence(__null, 8226); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8226 | "ConnectionPool::IdleTimerCallback"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, "ConnectionPool::IdleTimerCallback"_ns ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8226) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))" ")"); do { MOZ_CrashSequence(__null, 8226); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8227 | |||||
| 8228 | mTargetIdleTime = newTargetIdleTime; | ||||
| 8229 | } | ||||
| 8230 | } | ||||
| 8231 | |||||
| 8232 | void ConnectionPool::CancelIdleTimer() { | ||||
| 8233 | AssertIsOnOwningThread(); | ||||
| 8234 | MOZ_ASSERT(mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIdleTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mIdleTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8234); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer" ")"); do { MOZ_CrashSequence(__null, 8234); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8235 | |||||
| 8236 | if (!mTargetIdleTime.IsNull()) { | ||||
| 8237 | MOZ_ALWAYS_SUCCEEDS(mIdleTimer->Cancel())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mIdleTimer->Cancel())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mIdleTimer->Cancel())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8237) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->Cancel())" ")"); do { MOZ_CrashSequence(__null, 8237); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8238 | |||||
| 8239 | mTargetIdleTime = TimeStamp(); | ||||
| 8240 | MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8240) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 8240); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8241 | } | ||||
| 8242 | } | ||||
| 8243 | |||||
| 8244 | void ConnectionPool::CloseIdleDatabases() { | ||||
| 8245 | AssertIsOnOwningThread(); | ||||
| 8246 | MOZ_ASSERT(mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mShutdownRequested)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mShutdownRequested))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mShutdownRequested" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8246) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested" ")"); do { MOZ_CrashSequence(__null, 8246); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8247 | |||||
| 8248 | AUTO_PROFILER_LABEL("ConnectionPool::CloseIdleDatabases", DOM)mozilla::AutoProfilerLabel raiiObject8248( "ConnectionPool::CloseIdleDatabases" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8249 | |||||
| 8250 | if (!mIdleDatabases.IsEmpty()) { | ||||
| 8251 | for (IdleDatabaseInfo& idleInfo : mIdleDatabases) { | ||||
| 8252 | CloseDatabase(*idleInfo.mDatabaseInfo.ref()); | ||||
| 8253 | } | ||||
| 8254 | mIdleDatabases.Clear(); | ||||
| 8255 | } | ||||
| 8256 | |||||
| 8257 | if (!mDatabasesPerformingIdleMaintenance.IsEmpty()) { | ||||
| 8258 | for (PerformingIdleMaintenanceDatabaseInfo& performingIdleMaintenanceInfo : | ||||
| 8259 | mDatabasesPerformingIdleMaintenance) { | ||||
| 8260 | CloseDatabase(*performingIdleMaintenanceInfo.mDatabaseInfo); | ||||
| 8261 | } | ||||
| 8262 | mDatabasesPerformingIdleMaintenance.Clear(); | ||||
| 8263 | } | ||||
| 8264 | } | ||||
| 8265 | |||||
| 8266 | bool ConnectionPool::ScheduleTransaction(TransactionInfo& aTransactionInfo, | ||||
| 8267 | bool aFromQueuedTransactions) { | ||||
| 8268 | AssertIsOnOwningThread(); | ||||
| 8269 | |||||
| 8270 | AUTO_PROFILER_LABEL("ConnectionPool::ScheduleTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8270( "ConnectionPool::ScheduleTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8271 | |||||
| 8272 | DatabaseInfo& dbInfo = aTransactionInfo.mDatabaseInfo; | ||||
| 8273 | |||||
| 8274 | dbInfo.mIdle = false; | ||||
| 8275 | |||||
| 8276 | if (dbInfo.mClosing) { | ||||
| 8277 | MOZ_ASSERT(!mIdleDatabases.Contains(&dbInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mIdleDatabases.Contains(&dbInfo))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(!mIdleDatabases.Contains(&dbInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mIdleDatabases.Contains(&dbInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8277) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&dbInfo)" ")"); do { MOZ_CrashSequence(__null, 8277); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8278 | MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType< decltype(!dbInfo.mTransactionsScheduledDuringClose.Contains(& aTransactionInfo))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!dbInfo.mTransactionsScheduledDuringClose .Contains(&aTransactionInfo)))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8279) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)" ")"); do { MOZ_CrashSequence(__null, 8279); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 8279 | !dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!dbInfo.mTransactionsScheduledDuringClose.Contains(& aTransactionInfo))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!dbInfo.mTransactionsScheduledDuringClose .Contains(&aTransactionInfo)))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8279) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)" ")"); do { MOZ_CrashSequence(__null, 8279); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8280 | |||||
| 8281 | dbInfo.mTransactionsScheduledDuringClose.AppendElement( | ||||
| 8282 | WrapNotNullUnchecked(&aTransactionInfo)); | ||||
| 8283 | return true; | ||||
| 8284 | } | ||||
| 8285 | |||||
| 8286 | if (!dbInfo.mEventTarget) { | ||||
| 8287 | dbInfo.mEventTarget = TaskQueue::Create(do_AddRef(mIOTarget), "IndexedDB"); | ||||
| 8288 | MOZ_ASSERT(dbInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo.mEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo.mEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8288) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget" ")"); do { MOZ_CrashSequence(__null, 8288); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8289 | IDB_DEBUG_LOG(("ConnectionPool created task queue IndexedDB")); | ||||
| 8290 | } | ||||
| 8291 | |||||
| 8292 | // The number of active operations equals the number of databases minus idle | ||||
| 8293 | // databases. The maximum number of database operations which can make | ||||
| 8294 | // progress at the same time is kMaxConnectionThreadCount. If we are at this | ||||
| 8295 | // limit, all idle processing is interrupted to make room for user | ||||
| 8296 | // transactions. | ||||
| 8297 | if (mDatabases.Count() >= | ||||
| 8298 | (mIdleDatabases.Length() + kMaxConnectionThreadCount) && | ||||
| 8299 | !mDatabasesPerformingIdleMaintenance.IsEmpty()) { | ||||
| 8300 | const auto& busyDbs = mDatabasesPerformingIdleMaintenance; | ||||
| 8301 | for (auto dbInfo = busyDbs.rbegin(); dbInfo != busyDbs.rend(); ++dbInfo) { | ||||
| 8302 | (*dbInfo).mIdleConnectionRunnable->Interrupt(); | ||||
| 8303 | } | ||||
| 8304 | } | ||||
| 8305 | |||||
| 8306 | if (aTransactionInfo.mIsWriteTransaction) { | ||||
| 8307 | if (dbInfo.mRunningWriteTransaction) { | ||||
| 8308 | // SQLite only allows one write transaction at a time so queue this | ||||
| 8309 | // transaction for later. | ||||
| 8310 | MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType< decltype(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8311) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)" ")"); do { MOZ_CrashSequence(__null, 8311); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 8311 | !dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8311) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)" ")"); do { MOZ_CrashSequence(__null, 8311); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8312 | |||||
| 8313 | dbInfo.mScheduledWriteTransactions.AppendElement( | ||||
| 8314 | WrapNotNullUnchecked(&aTransactionInfo)); | ||||
| 8315 | return true; | ||||
| 8316 | } | ||||
| 8317 | |||||
| 8318 | dbInfo.mRunningWriteTransaction = SomeRef(aTransactionInfo); | ||||
| 8319 | dbInfo.mNeedsCheckpoint = true; | ||||
| 8320 | } | ||||
| 8321 | |||||
| 8322 | aTransactionInfo.SetRunning(); | ||||
| 8323 | |||||
| 8324 | return true; | ||||
| 8325 | } | ||||
| 8326 | |||||
| 8327 | void ConnectionPool::NoteFinishedTransaction(uint64_t aTransactionId) { | ||||
| 8328 | AssertIsOnOwningThread(); | ||||
| 8329 | |||||
| 8330 | AUTO_PROFILER_LABEL("ConnectionPool::NoteFinishedTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8330( "ConnectionPool::NoteFinishedTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8331 | |||||
| 8332 | auto* const transactionInfo = mTransactions.Get(aTransactionId); | ||||
| 8333 | MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(transactionInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("transactionInfo" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8333) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")" ); do { MOZ_CrashSequence(__null, 8333); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8334 | MOZ_ASSERT(transactionInfo->mRunning)do { static_assert( mozilla::detail::AssertionConditionType< decltype(transactionInfo->mRunning)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(transactionInfo->mRunning ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "transactionInfo->mRunning", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8334); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mRunning" ")"); do { MOZ_CrashSequence(__null, 8334); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8335 | MOZ_ASSERT(transactionInfo->mFinished)do { static_assert( mozilla::detail::AssertionConditionType< decltype(transactionInfo->mFinished)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(transactionInfo->mFinished ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "transactionInfo->mFinished", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8335); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mFinished" ")"); do { MOZ_CrashSequence(__null, 8335); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8336 | |||||
| 8337 | transactionInfo->mRunning = false; | ||||
| 8338 | |||||
| 8339 | DatabaseInfo& dbInfo = transactionInfo->mDatabaseInfo; | ||||
| 8340 | MOZ_ASSERT(mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabases.Get(transactionInfo->mDatabaseId) == & dbInfo)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mDatabases.Get(transactionInfo->mDatabaseId) == & dbInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8340) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo" ")"); do { MOZ_CrashSequence(__null, 8340); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8341 | MOZ_ASSERT(dbInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo.mEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo.mEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8341) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget" ")"); do { MOZ_CrashSequence(__null, 8341); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8342 | |||||
| 8343 | // Schedule the next write transaction if there are any queued. | ||||
| 8344 | if (dbInfo.mRunningWriteTransaction && | ||||
| 8345 | dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)) { | ||||
| 8346 | MOZ_ASSERT(transactionInfo->mIsWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(transactionInfo->mIsWriteTransaction)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(transactionInfo->mIsWriteTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("transactionInfo->mIsWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8346) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mIsWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 8346); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8347 | MOZ_ASSERT(dbInfo.mNeedsCheckpoint)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo.mNeedsCheckpoint)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mNeedsCheckpoint))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo.mNeedsCheckpoint" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8347) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mNeedsCheckpoint" ")"); do { MOZ_CrashSequence(__null, 8347); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8348 | |||||
| 8349 | dbInfo.mRunningWriteTransaction = Nothing(); | ||||
| 8350 | |||||
| 8351 | if (!dbInfo.mScheduledWriteTransactions.IsEmpty()) { | ||||
| 8352 | const auto nextWriteTransaction = dbInfo.mScheduledWriteTransactions[0]; | ||||
| 8353 | |||||
| 8354 | dbInfo.mScheduledWriteTransactions.RemoveElementAt(0); | ||||
| 8355 | |||||
| 8356 | MOZ_ALWAYS_TRUE(ScheduleTransaction(*nextWriteTransaction,do { if ((__builtin_expect(!!(ScheduleTransaction(*nextWriteTransaction , false)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "ScheduleTransaction(*nextWriteTransaction, false)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8357); AnnotateMozCrashReason("MOZ_CRASH(" "ScheduleTransaction(*nextWriteTransaction, false)" ")"); do { MOZ_CrashSequence(__null, 8357); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8357 | /* aFromQueuedTransactions */ false))do { if ((__builtin_expect(!!(ScheduleTransaction(*nextWriteTransaction , false)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "ScheduleTransaction(*nextWriteTransaction, false)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8357); AnnotateMozCrashReason("MOZ_CRASH(" "ScheduleTransaction(*nextWriteTransaction, false)" ")"); do { MOZ_CrashSequence(__null, 8357); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8358 | } | ||||
| 8359 | } | ||||
| 8360 | |||||
| 8361 | for (const auto& objectStoreName : transactionInfo->mObjectStoreNames) { | ||||
| 8362 | TransactionInfoPair* blockInfo = | ||||
| 8363 | dbInfo.mBlockingTransactions.Get(objectStoreName); | ||||
| 8364 | MOZ_ASSERT(blockInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(blockInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(blockInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("blockInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8364); AnnotateMozCrashReason("MOZ_ASSERT" "(" "blockInfo" ")" ); do { MOZ_CrashSequence(__null, 8364); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8365 | |||||
| 8366 | if (transactionInfo->mIsWriteTransaction && blockInfo->mLastBlockingReads && | ||||
| 8367 | blockInfo->mLastBlockingReads.refEquals(*transactionInfo)) { | ||||
| 8368 | blockInfo->mLastBlockingReads = Nothing(); | ||||
| 8369 | } | ||||
| 8370 | |||||
| 8371 | blockInfo->mLastBlockingWrites.RemoveElement(transactionInfo); | ||||
| 8372 | } | ||||
| 8373 | |||||
| 8374 | transactionInfo->RemoveBlockingTransactions(); | ||||
| 8375 | |||||
| 8376 | if (transactionInfo->mIsWriteTransaction) { | ||||
| 8377 | MOZ_ASSERT(dbInfo.mWriteTransactionCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo.mWriteTransactionCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mWriteTransactionCount ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "dbInfo.mWriteTransactionCount", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8377); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mWriteTransactionCount" ")"); do { MOZ_CrashSequence(__null, 8377); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8378 | dbInfo.mWriteTransactionCount--; | ||||
| 8379 | } else { | ||||
| 8380 | MOZ_ASSERT(dbInfo.mReadTransactionCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo.mReadTransactionCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mReadTransactionCount ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "dbInfo.mReadTransactionCount", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8380); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mReadTransactionCount" ")"); do { MOZ_CrashSequence(__null, 8380); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8381 | dbInfo.mReadTransactionCount--; | ||||
| 8382 | } | ||||
| 8383 | |||||
| 8384 | mTransactions.Remove(aTransactionId); | ||||
| 8385 | |||||
| 8386 | if (!dbInfo.TotalTransactionCount()) { | ||||
| 8387 | MOZ_ASSERT(!dbInfo.mIdle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!dbInfo.mIdle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!dbInfo.mIdle))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!dbInfo.mIdle", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8387); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mIdle" ")") ; do { MOZ_CrashSequence(__null, 8387); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8388 | dbInfo.mIdle = true; | ||||
| 8389 | |||||
| 8390 | NoteIdleDatabase(dbInfo); | ||||
| 8391 | } | ||||
| 8392 | } | ||||
| 8393 | |||||
| 8394 | void ConnectionPool::ScheduleQueuedTransactions() { | ||||
| 8395 | AssertIsOnOwningThread(); | ||||
| 8396 | MOZ_ASSERT(!mQueuedTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mQueuedTransactions.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mQueuedTransactions.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mQueuedTransactions.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8396); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mQueuedTransactions.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8396); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8397 | |||||
| 8398 | AUTO_PROFILER_LABEL("ConnectionPool::ScheduleQueuedTransactions", DOM)mozilla::AutoProfilerLabel raiiObject8398( "ConnectionPool::ScheduleQueuedTransactions" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8399 | |||||
| 8400 | const auto foundIt = std::find_if( | ||||
| 8401 | mQueuedTransactions.begin(), mQueuedTransactions.end(), | ||||
| 8402 | [&me = *this](const auto& queuedTransaction) { | ||||
| 8403 | return !me.ScheduleTransaction(*queuedTransaction, | ||||
| 8404 | /* aFromQueuedTransactions */ true); | ||||
| 8405 | }); | ||||
| 8406 | |||||
| 8407 | mQueuedTransactions.RemoveElementsRange(mQueuedTransactions.begin(), foundIt); | ||||
| 8408 | |||||
| 8409 | AdjustIdleTimer(); | ||||
| 8410 | } | ||||
| 8411 | |||||
| 8412 | void ConnectionPool::NoteIdleDatabase(DatabaseInfo& aDatabaseInfo) { | ||||
| 8413 | AssertIsOnOwningThread(); | ||||
| 8414 | MOZ_ASSERT(!aDatabaseInfo.TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseInfo.TotalTransactionCount())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!aDatabaseInfo.TotalTransactionCount()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.TotalTransactionCount()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8414) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()" ")"); do { MOZ_CrashSequence(__null, 8414); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8415 | MOZ_ASSERT(aDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mEventTarget)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8415) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget" ")"); do { MOZ_CrashSequence(__null, 8415); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8416 | MOZ_ASSERT(!mIdleDatabases.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mIdleDatabases.Contains(&aDatabaseInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mIdleDatabases.Contains(&aDatabaseInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mIdleDatabases.Contains(&aDatabaseInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8416) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8416); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8417 | |||||
| 8418 | AUTO_PROFILER_LABEL("ConnectionPool::NoteIdleDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8418( "ConnectionPool::NoteIdleDatabase" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8419 | |||||
| 8420 | const bool otherDatabasesWaiting = !mQueuedTransactions.IsEmpty(); | ||||
| 8421 | |||||
| 8422 | // We check mShutdownRequested because when it is true, mIdleTimer is null. | ||||
| 8423 | if (mShutdownRequested || otherDatabasesWaiting || | ||||
| 8424 | aDatabaseInfo.mCloseOnIdle) { | ||||
| 8425 | // Make sure we close the connection if we're shutting down or giving the | ||||
| 8426 | // thread to another database. | ||||
| 8427 | CloseDatabase(aDatabaseInfo); | ||||
| 8428 | |||||
| 8429 | if (otherDatabasesWaiting) { | ||||
| 8430 | ScheduleQueuedTransactions(); | ||||
| 8431 | } | ||||
| 8432 | |||||
| 8433 | return; | ||||
| 8434 | } | ||||
| 8435 | |||||
| 8436 | mIdleDatabases.InsertElementSorted(IdleDatabaseInfo{aDatabaseInfo}); | ||||
| 8437 | |||||
| 8438 | AdjustIdleTimer(); | ||||
| 8439 | } | ||||
| 8440 | |||||
| 8441 | void ConnectionPool::NoteClosedDatabase(DatabaseInfo& aDatabaseInfo) { | ||||
| 8442 | AssertIsOnOwningThread(); | ||||
| 8443 | MOZ_ASSERT(aDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseInfo.mClosing)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mClosing))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mClosing" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8443) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mClosing" ")"); do { MOZ_CrashSequence(__null, 8443); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8444 | MOZ_ASSERT(!mIdleDatabases.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mIdleDatabases.Contains(&aDatabaseInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mIdleDatabases.Contains(&aDatabaseInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mIdleDatabases.Contains(&aDatabaseInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8444) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8444); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8445 | |||||
| 8446 | AUTO_PROFILER_LABEL("ConnectionPool::NoteClosedDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8446( "ConnectionPool::NoteClosedDatabase" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8447 | |||||
| 8448 | aDatabaseInfo.mClosing = false; | ||||
| 8449 | |||||
| 8450 | // Schedule any transactions that were started while we were closing the | ||||
| 8451 | // connection. | ||||
| 8452 | if (!mQueuedTransactions.IsEmpty()) { | ||||
| 8453 | ScheduleQueuedTransactions(); | ||||
| 8454 | } else if (!aDatabaseInfo.TotalTransactionCount() && !mShutdownRequested) { | ||||
| 8455 | AdjustIdleTimer(); | ||||
| 8456 | } | ||||
| 8457 | |||||
| 8458 | // Schedule any transactions that were started while we were closing the | ||||
| 8459 | // connection. | ||||
| 8460 | if (aDatabaseInfo.TotalTransactionCount()) { | ||||
| 8461 | auto& scheduledTransactions = | ||||
| 8462 | aDatabaseInfo.mTransactionsScheduledDuringClose; | ||||
| 8463 | |||||
| 8464 | MOZ_ASSERT(!scheduledTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!scheduledTransactions.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!scheduledTransactions.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!scheduledTransactions.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8464); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!scheduledTransactions.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8464); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8465 | |||||
| 8466 | for (const auto& scheduledTransaction : scheduledTransactions) { | ||||
| 8467 | (void)ScheduleTransaction(*scheduledTransaction, | ||||
| 8468 | /* aFromQueuedTransactions */ false); | ||||
| 8469 | } | ||||
| 8470 | |||||
| 8471 | scheduledTransactions.Clear(); | ||||
| 8472 | |||||
| 8473 | return; | ||||
| 8474 | } | ||||
| 8475 | |||||
| 8476 | // There are no more transactions and the connection has been closed. We're | ||||
| 8477 | // done with this database. | ||||
| 8478 | { | ||||
| 8479 | MutexAutoLock lock(mDatabasesMutex); | ||||
| 8480 | |||||
| 8481 | mDatabases.Remove(aDatabaseInfo.mDatabaseId); | ||||
| 8482 | } | ||||
| 8483 | |||||
| 8484 | // That just deleted |aDatabaseInfo|, we must not access that below. | ||||
| 8485 | |||||
| 8486 | // See if we need to fire any complete callbacks now that the database is | ||||
| 8487 | // finished. | ||||
| 8488 | mCompleteCallbacks.RemoveLastElements( | ||||
| 8489 | mCompleteCallbacks.end() - | ||||
| 8490 | std::remove_if(mCompleteCallbacks.begin(), mCompleteCallbacks.end(), | ||||
| 8491 | [&me = *this](const auto& completeCallback) { | ||||
| 8492 | return me.MaybeFireCallback(completeCallback.get()); | ||||
| 8493 | })); | ||||
| 8494 | |||||
| 8495 | // If that was the last database and we're supposed to be shutting down then | ||||
| 8496 | // we are finished. | ||||
| 8497 | if (mShutdownRequested && !mDatabases.Count()) { | ||||
| 8498 | MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8498) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { MOZ_CrashSequence(__null, 8498); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8499 | Cleanup(); | ||||
| 8500 | } | ||||
| 8501 | } | ||||
| 8502 | |||||
| 8503 | bool ConnectionPool::MaybeFireCallback(DatabaseCompleteCallback* aCallback) { | ||||
| 8504 | AssertIsOnOwningThread(); | ||||
| 8505 | MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8505); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { MOZ_CrashSequence(__null, 8505); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8506 | MOZ_ASSERT(!aCallback->mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aCallback->mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aCallback->mDatabaseId.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!aCallback->mDatabaseId.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8506); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCallback->mDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8506); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8507 | MOZ_ASSERT(aCallback->mCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCallback->mCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCallback->mCallback))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback->mCallback" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8507) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback->mCallback" ")"); do { MOZ_CrashSequence(__null, 8507); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8508 | |||||
| 8509 | AUTO_PROFILER_LABEL("ConnectionPool::MaybeFireCallback", DOM)mozilla::AutoProfilerLabel raiiObject8509( "ConnectionPool::MaybeFireCallback" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8510 | |||||
| 8511 | if (mDatabases.Get(aCallback->mDatabaseId)) { | ||||
| 8512 | return false; | ||||
| 8513 | } | ||||
| 8514 | |||||
| 8515 | (void)aCallback->mCallback->Run(); | ||||
| 8516 | return true; | ||||
| 8517 | } | ||||
| 8518 | |||||
| 8519 | void ConnectionPool::PerformIdleDatabaseMaintenance( | ||||
| 8520 | DatabaseInfo& aDatabaseInfo) { | ||||
| 8521 | AssertIsOnOwningThread(); | ||||
| 8522 | MOZ_ASSERT(!aDatabaseInfo.TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseInfo.TotalTransactionCount())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!aDatabaseInfo.TotalTransactionCount()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.TotalTransactionCount()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8522) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()" ")"); do { MOZ_CrashSequence(__null, 8522); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8523 | MOZ_ASSERT(aDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mEventTarget)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8523) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget" ")"); do { MOZ_CrashSequence(__null, 8523); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8524 | MOZ_ASSERT(aDatabaseInfo.mIdle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseInfo.mIdle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mIdle))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mIdle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8524) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mIdle" ")"); do { MOZ_CrashSequence(__null, 8524); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8525 | MOZ_ASSERT(!aDatabaseInfo.mCloseOnIdle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseInfo.mCloseOnIdle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseInfo.mCloseOnIdle) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.mCloseOnIdle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8525) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mCloseOnIdle" ")"); do { MOZ_CrashSequence(__null, 8525); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8526 | MOZ_ASSERT(!aDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseInfo.mClosing)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseInfo.mClosing))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.mClosing" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8526) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing" ")"); do { MOZ_CrashSequence(__null, 8526); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8527 | MOZ_ASSERT(mIdleDatabases.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIdleDatabases.Contains(&aDatabaseInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mIdleDatabases.Contains(&aDatabaseInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleDatabases.Contains(&aDatabaseInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8527) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.Contains(&aDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8527); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8528 | MOZ_ASSERT(!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8528) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8528); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8529 | |||||
| 8530 | const bool neededCheckpoint = aDatabaseInfo.mNeedsCheckpoint; | ||||
| 8531 | |||||
| 8532 | aDatabaseInfo.mNeedsCheckpoint = false; | ||||
| 8533 | aDatabaseInfo.mIdle = false; | ||||
| 8534 | |||||
| 8535 | auto idleConnectionRunnable = | ||||
| 8536 | MakeRefPtr<IdleConnectionRunnable>(aDatabaseInfo, neededCheckpoint); | ||||
| 8537 | |||||
| 8538 | mDatabasesPerformingIdleMaintenance.AppendElement( | ||||
| 8539 | PerformingIdleMaintenanceDatabaseInfo{aDatabaseInfo, | ||||
| 8540 | idleConnectionRunnable}); | ||||
| 8541 | |||||
| 8542 | MOZ_ALWAYS_SUCCEEDS(aDatabaseInfo.mEventTarget->Dispatch(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable .forget(), nsIEventTarget::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8543) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 8543); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8543 | idleConnectionRunnable.forget(), NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable .forget(), nsIEventTarget::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8543) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 8543); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8544 | } | ||||
| 8545 | |||||
| 8546 | void ConnectionPool::CloseDatabase(DatabaseInfo& aDatabaseInfo) const { | ||||
| 8547 | AssertIsOnOwningThread(); | ||||
| 8548 | MOZ_DIAGNOSTIC_ASSERT(!aDatabaseInfo.TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseInfo.TotalTransactionCount())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!aDatabaseInfo.TotalTransactionCount()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.TotalTransactionCount()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8548) ; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()" ")"); do { MOZ_CrashSequence(__null, 8548); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8549 | MOZ_ASSERT(aDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mEventTarget)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8549) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget" ")"); do { MOZ_CrashSequence(__null, 8549); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8550 | MOZ_ASSERT(!aDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseInfo.mClosing)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseInfo.mClosing))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.mClosing" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8550) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing" ")"); do { MOZ_CrashSequence(__null, 8550); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8551 | |||||
| 8552 | aDatabaseInfo.mIdle = false; | ||||
| 8553 | aDatabaseInfo.mNeedsCheckpoint = false; | ||||
| 8554 | aDatabaseInfo.mClosing = true; | ||||
| 8555 | |||||
| 8556 | MOZ_ALWAYS_SUCCEEDS(aDatabaseInfo.Dispatch(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable >(aDatabaseInfo)))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8557) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))" ")"); do { MOZ_CrashSequence(__null, 8557); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8557 | MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable >(aDatabaseInfo)))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8557) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))" ")"); do { MOZ_CrashSequence(__null, 8557); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8558 | } | ||||
| 8559 | |||||
| 8560 | bool ConnectionPool::CloseDatabaseWhenIdleInternal( | ||||
| 8561 | const nsACString& aDatabaseId) { | ||||
| 8562 | AssertIsOnOwningThread(); | ||||
| 8563 | MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8563) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8563); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8564 | |||||
| 8565 | AUTO_PROFILER_LABEL("ConnectionPool::CloseDatabaseWhenIdleInternal", DOM)mozilla::AutoProfilerLabel raiiObject8565( "ConnectionPool::CloseDatabaseWhenIdleInternal" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8566 | |||||
| 8567 | if (DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId)) { | ||||
| 8568 | if (mIdleDatabases.RemoveElement(dbInfo) || | ||||
| 8569 | mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo)) { | ||||
| 8570 | CloseDatabase(*dbInfo); | ||||
| 8571 | AdjustIdleTimer(); | ||||
| 8572 | } else { | ||||
| 8573 | dbInfo->mCloseOnIdle.EnsureFlipped(); | ||||
| 8574 | } | ||||
| 8575 | |||||
| 8576 | return true; | ||||
| 8577 | } | ||||
| 8578 | |||||
| 8579 | return false; | ||||
| 8580 | } | ||||
| 8581 | |||||
| 8582 | ConnectionPool::ConnectionRunnable::ConnectionRunnable( | ||||
| 8583 | DatabaseInfo& aDatabaseInfo) | ||||
| 8584 | : Runnable("dom::indexedDB::ConnectionPool::ConnectionRunnable"), | ||||
| 8585 | mDatabaseInfo(aDatabaseInfo), | ||||
| 8586 | mOwningEventTarget(GetCurrentSerialEventTarget()) { | ||||
| 8587 | AssertIsOnBackgroundThread(); | ||||
| 8588 | MOZ_ASSERT(aDatabaseInfo.mConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseInfo.mConnectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mConnectionPool ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aDatabaseInfo.mConnectionPool", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8588); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mConnectionPool" ")"); do { MOZ_CrashSequence(__null, 8588); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8589 | aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread(); | ||||
| 8590 | MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOwningEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8590) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget" ")"); do { MOZ_CrashSequence(__null, 8590); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8591 | } | ||||
| 8592 | |||||
| 8593 | NS_IMETHODIMPnsresult | ||||
| 8594 | ConnectionPool::IdleConnectionRunnable::Run() { | ||||
| 8595 | MOZ_ASSERT(!mDatabaseInfo.mIdle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseInfo.mIdle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseInfo.mIdle))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseInfo.mIdle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8595) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseInfo.mIdle" ")"); do { MOZ_CrashSequence(__null, 8595); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8596 | |||||
| 8597 | const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget); | ||||
| 8598 | |||||
| 8599 | if (owningThread) { | ||||
| 8600 | mDatabaseInfo.AssertIsOnConnectionThread(); | ||||
| 8601 | |||||
| 8602 | // The connection could be null if EnsureConnection() didn't run or was not | ||||
| 8603 | // successful in TransactionDatabaseOperationBase::RunOnConnectionThread(). | ||||
| 8604 | if (mDatabaseInfo.mConnection) { | ||||
| 8605 | mDatabaseInfo.mConnection->DoIdleProcessing(mNeedsCheckpoint, | ||||
| 8606 | mInterrupted); | ||||
| 8607 | } | ||||
| 8608 | |||||
| 8609 | MOZ_ALWAYS_SUCCEEDS(owningThread->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8609) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 8609); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8610 | return NS_OK; | ||||
| 8611 | } | ||||
| 8612 | |||||
| 8613 | AssertIsOnBackgroundThread(); | ||||
| 8614 | |||||
| 8615 | RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool; | ||||
| 8616 | MOZ_ASSERT(connectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(connectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(connectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("connectionPool" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8616) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")" ); do { MOZ_CrashSequence(__null, 8616); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8617 | |||||
| 8618 | if (mDatabaseInfo.mClosing || mDatabaseInfo.TotalTransactionCount()) { | ||||
| 8619 | MOZ_ASSERT(!connectionPool->mDatabasesPerformingIdleMaintenance.Contains(do { static_assert( mozilla::detail::AssertionConditionType< decltype(!connectionPool->mDatabasesPerformingIdleMaintenance .Contains( &mDatabaseInfo))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!connectionPool->mDatabasesPerformingIdleMaintenance .Contains( &mDatabaseInfo)))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8620) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8620); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 8620 | &mDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!connectionPool->mDatabasesPerformingIdleMaintenance .Contains( &mDatabaseInfo))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!connectionPool->mDatabasesPerformingIdleMaintenance .Contains( &mDatabaseInfo)))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8620) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8620); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8621 | } else { | ||||
| 8622 | MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance .RemoveElement( &mDatabaseInfo)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8624) ; AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8624); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8623 | connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement(do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance .RemoveElement( &mDatabaseInfo)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8624) ; AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8624); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8624 | &mDatabaseInfo))do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance .RemoveElement( &mDatabaseInfo)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8624) ; AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8624); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8625 | |||||
| 8626 | connectionPool->NoteIdleDatabase(mDatabaseInfo); | ||||
| 8627 | } | ||||
| 8628 | |||||
| 8629 | return NS_OK; | ||||
| 8630 | } | ||||
| 8631 | |||||
| 8632 | NS_IMETHODIMPnsresult | ||||
| 8633 | ConnectionPool::CloseConnectionRunnable::Run() { | ||||
| 8634 | AUTO_PROFILER_LABEL("ConnectionPool::CloseConnectionRunnable::Run", DOM)mozilla::AutoProfilerLabel raiiObject8634( "ConnectionPool::CloseConnectionRunnable::Run" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8635 | |||||
| 8636 | if (mOwningEventTarget) { | ||||
| 8637 | MOZ_ASSERT(mDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseInfo.mClosing)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabaseInfo.mClosing))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseInfo.mClosing" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8637) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mClosing" ")"); do { MOZ_CrashSequence(__null, 8637); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8638 | |||||
| 8639 | const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget); | ||||
| 8640 | |||||
| 8641 | // The connection could be null if EnsureConnection() didn't run or was not | ||||
| 8642 | // successful in TransactionDatabaseOperationBase::RunOnConnectionThread(). | ||||
| 8643 | if (mDatabaseInfo.mConnection) { | ||||
| 8644 | mDatabaseInfo.AssertIsOnConnectionThread(); | ||||
| 8645 | |||||
| 8646 | mDatabaseInfo.mConnection->Close(); | ||||
| 8647 | |||||
| 8648 | IDB_DEBUG_LOG(("ConnectionPool closed connection 0x%p", | ||||
| 8649 | mDatabaseInfo.mConnection.get())); | ||||
| 8650 | |||||
| 8651 | mDatabaseInfo.mConnection = nullptr; | ||||
| 8652 | |||||
| 8653 | #ifdef DEBUG1 | ||||
| 8654 | mDatabaseInfo.mDEBUGConnectionEventTarget = nullptr; | ||||
| 8655 | #endif | ||||
| 8656 | } | ||||
| 8657 | |||||
| 8658 | MOZ_ALWAYS_SUCCEEDS(owningThread->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8658) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 8658); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8659 | return NS_OK; | ||||
| 8660 | } | ||||
| 8661 | |||||
| 8662 | RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool; | ||||
| 8663 | MOZ_ASSERT(connectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(connectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(connectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("connectionPool" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8663) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")" ); do { MOZ_CrashSequence(__null, 8663); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8664 | |||||
| 8665 | connectionPool->NoteClosedDatabase(mDatabaseInfo); | ||||
| 8666 | return NS_OK; | ||||
| 8667 | } | ||||
| 8668 | |||||
| 8669 | ConnectionPool::DatabaseInfo::DatabaseInfo(ConnectionPool* aConnectionPool, | ||||
| 8670 | const nsACString& aDatabaseId) | ||||
| 8671 | : mConnectionPool(aConnectionPool), | ||||
| 8672 | mDatabaseId(aDatabaseId), | ||||
| 8673 | mReadTransactionCount(0), | ||||
| 8674 | mWriteTransactionCount(0), | ||||
| 8675 | mNeedsCheckpoint(false), | ||||
| 8676 | mIdle(false), | ||||
| 8677 | mClosing(false) | ||||
| 8678 | #ifdef DEBUG1 | ||||
| 8679 | , | ||||
| 8680 | mDEBUGConnectionEventTarget(nullptr) | ||||
| 8681 | #endif | ||||
| 8682 | { | ||||
| 8683 | AssertIsOnBackgroundThread(); | ||||
| 8684 | MOZ_ASSERT(aConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnectionPool" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8684) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool" ")" ); do { MOZ_CrashSequence(__null, 8684); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8685 | aConnectionPool->AssertIsOnOwningThread(); | ||||
| 8686 | MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8686) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8686); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8687 | |||||
| 8688 | MOZ_COUNT_CTOR(ConnectionPool::DatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::DatabaseInfo >, "Token '" "ConnectionPool::DatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::DatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::DatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 8689 | } | ||||
| 8690 | |||||
| 8691 | ConnectionPool::DatabaseInfo::~DatabaseInfo() { | ||||
| 8692 | AssertIsOnBackgroundThread(); | ||||
| 8693 | MOZ_ASSERT(!mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8693); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection" ")"); do { MOZ_CrashSequence(__null, 8693); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8694 | MOZ_ASSERT(mScheduledWriteTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mScheduledWriteTransactions.IsEmpty())>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mScheduledWriteTransactions.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mScheduledWriteTransactions.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8694) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mScheduledWriteTransactions.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8694); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8695 | MOZ_ASSERT(!mRunningWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mRunningWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mRunningWriteTransaction))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mRunningWriteTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8695) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunningWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 8695); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8696 | MOZ_ASSERT(!TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!TotalTransactionCount())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!TotalTransactionCount()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!TotalTransactionCount()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8696) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!TotalTransactionCount()" ")"); do { MOZ_CrashSequence(__null, 8696); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8697 | |||||
| 8698 | MOZ_COUNT_DTOR(ConnectionPool::DatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::DatabaseInfo >, "Token '" "ConnectionPool::DatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::DatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::DatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 8699 | } | ||||
| 8700 | |||||
| 8701 | nsresult ConnectionPool::DatabaseInfo::Dispatch( | ||||
| 8702 | already_AddRefed<nsIRunnable> aRunnable) { | ||||
| 8703 | nsCOMPtr<nsIRunnable> runnable = aRunnable; | ||||
| 8704 | |||||
| 8705 | #ifdef DEBUG1 | ||||
| 8706 | if (kDEBUGTransactionThreadSleepMS) { | ||||
| 8707 | runnable = MakeRefPtr<TransactionRunnable>(std::move(runnable)); | ||||
| 8708 | } | ||||
| 8709 | #endif | ||||
| 8710 | |||||
| 8711 | return mEventTarget->Dispatch(runnable.forget(), NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL); | ||||
| 8712 | } | ||||
| 8713 | |||||
| 8714 | ConnectionPool::DatabaseCompleteCallback::DatabaseCompleteCallback( | ||||
| 8715 | const nsCString& aDatabaseId, nsIRunnable* aCallback) | ||||
| 8716 | : mDatabaseId(aDatabaseId), mCallback(aCallback) { | ||||
| 8717 | AssertIsOnBackgroundThread(); | ||||
| 8718 | MOZ_ASSERT(!mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseId.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8718) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8718); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8719 | MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8719); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { MOZ_CrashSequence(__null, 8719); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8720 | |||||
| 8721 | MOZ_COUNT_CTOR(ConnectionPool::DatabaseCompleteCallback)do { static_assert(std::is_class_v<ConnectionPool::DatabaseCompleteCallback >, "Token '" "ConnectionPool::DatabaseCompleteCallback" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::DatabaseCompleteCallback>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::DatabaseCompleteCallback" , sizeof(*this)); } while (0); | ||||
| 8722 | } | ||||
| 8723 | |||||
| 8724 | ConnectionPool::DatabaseCompleteCallback::~DatabaseCompleteCallback() { | ||||
| 8725 | AssertIsOnBackgroundThread(); | ||||
| 8726 | |||||
| 8727 | MOZ_COUNT_DTOR(ConnectionPool::DatabaseCompleteCallback)do { static_assert(std::is_class_v<ConnectionPool::DatabaseCompleteCallback >, "Token '" "ConnectionPool::DatabaseCompleteCallback" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::DatabaseCompleteCallback>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::DatabaseCompleteCallback" , sizeof(*this)); } while (0); | ||||
| 8728 | } | ||||
| 8729 | |||||
| 8730 | ConnectionPool::FinishCallbackWrapper::FinishCallbackWrapper( | ||||
| 8731 | ConnectionPool* aConnectionPool, uint64_t aTransactionId, | ||||
| 8732 | FinishCallback* aCallback) | ||||
| 8733 | : Runnable("dom::indexedDB::ConnectionPool::FinishCallbackWrapper"), | ||||
| 8734 | mConnectionPool(aConnectionPool), | ||||
| 8735 | mCallback(aCallback), | ||||
| 8736 | mOwningEventTarget(GetCurrentSerialEventTarget()), | ||||
| 8737 | mTransactionId(aTransactionId), | ||||
| 8738 | mHasRunOnce(false) { | ||||
| 8739 | AssertIsOnBackgroundThread(); | ||||
| 8740 | MOZ_ASSERT(aConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnectionPool" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8740) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool" ")" ); do { MOZ_CrashSequence(__null, 8740); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8741 | MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8741); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { MOZ_CrashSequence(__null, 8741); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8742 | MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOwningEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8742) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget" ")"); do { MOZ_CrashSequence(__null, 8742); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8743 | } | ||||
| 8744 | |||||
| 8745 | ConnectionPool::FinishCallbackWrapper::~FinishCallbackWrapper() { | ||||
| 8746 | MOZ_ASSERT(!mConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mConnectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mConnectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mConnectionPool" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8746) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnectionPool" ")" ); do { MOZ_CrashSequence(__null, 8746); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8747 | MOZ_ASSERT(!mCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8747); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback" ")"); do { MOZ_CrashSequence(__null, 8747); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8748 | } | ||||
| 8749 | |||||
| 8750 | nsresult ConnectionPool::FinishCallbackWrapper::Run() { | ||||
| 8751 | MOZ_ASSERT(mConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnectionPool" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8751) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnectionPool" ")" ); do { MOZ_CrashSequence(__null, 8751); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8752 | MOZ_ASSERT(mCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8752); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")" ); do { MOZ_CrashSequence(__null, 8752); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8753 | MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOwningEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8753) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget" ")"); do { MOZ_CrashSequence(__null, 8753); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8754 | |||||
| 8755 | AUTO_PROFILER_LABEL("ConnectionPool::FinishCallbackWrapper::Run", DOM)mozilla::AutoProfilerLabel raiiObject8755( "ConnectionPool::FinishCallbackWrapper::Run" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8756 | |||||
| 8757 | if (!mHasRunOnce) { | ||||
| 8758 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8758) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 8758); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8759 | |||||
| 8760 | mHasRunOnce = true; | ||||
| 8761 | |||||
| 8762 | (void)mCallback->Run(); | ||||
| 8763 | |||||
| 8764 | MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8764) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 8764); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8765 | |||||
| 8766 | return NS_OK; | ||||
| 8767 | } | ||||
| 8768 | |||||
| 8769 | mConnectionPool->AssertIsOnOwningThread(); | ||||
| 8770 | MOZ_ASSERT(mHasRunOnce)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mHasRunOnce)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mHasRunOnce))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mHasRunOnce", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mHasRunOnce" ")"); do { MOZ_CrashSequence(__null, 8770); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8771 | |||||
| 8772 | RefPtr<ConnectionPool> connectionPool = std::move(mConnectionPool); | ||||
| 8773 | |||||
| 8774 | connectionPool->FinishOp(mTransactionId); | ||||
| 8775 | |||||
| 8776 | RefPtr<FinishCallback> callback = std::move(mCallback); | ||||
| 8777 | |||||
| 8778 | callback->TransactionFinishedBeforeUnblock(); | ||||
| 8779 | |||||
| 8780 | connectionPool->NoteFinishedTransaction(mTransactionId); | ||||
| 8781 | |||||
| 8782 | callback->TransactionFinishedAfterUnblock(); | ||||
| 8783 | |||||
| 8784 | return NS_OK; | ||||
| 8785 | } | ||||
| 8786 | |||||
| 8787 | #ifdef DEBUG1 | ||||
| 8788 | |||||
| 8789 | ConnectionPool::TransactionRunnable::TransactionRunnable( | ||||
| 8790 | nsCOMPtr<nsIRunnable> aRunnable) | ||||
| 8791 | : Runnable("dom::indexedDB::ConnectionPool::TransactionRunnable"), | ||||
| 8792 | mRunnable(std::move(aRunnable)) { | ||||
| 8793 | AssertIsOnBackgroundThread(); | ||||
| 8794 | MOZ_ASSERT(kDEBUGTransactionThreadSleepMS)do { static_assert( mozilla::detail::AssertionConditionType< decltype(kDEBUGTransactionThreadSleepMS)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(kDEBUGTransactionThreadSleepMS ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "kDEBUGTransactionThreadSleepMS", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8794); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGTransactionThreadSleepMS" ")"); do { MOZ_CrashSequence(__null, 8794); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8795 | } | ||||
| 8796 | |||||
| 8797 | nsresult ConnectionPool::TransactionRunnable::Run() { | ||||
| 8798 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8798) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 8798); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8799 | |||||
| 8800 | QM_TRY(MOZ_TO_RESULT(mRunnable->Run())){auto tryResult990 = (ToResult(mRunnable->Run())); static_assert (std::is_empty_v<typename decltype(tryResult990)::ok_type> ); if ((__builtin_expect(!!(tryResult990.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(mRunnable->Run())", tryResult990 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8800, mozilla::dom::quota::Severity::Error); return tryResult990 .propagateErr(); }}; | ||||
| 8801 | |||||
| 8802 | MOZ_ALWAYS_TRUE(PR_Sleep(PR_MillisecondsToInterval(do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval ( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8803) ; AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS" ")"); do { MOZ_CrashSequence(__null, 8803); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8803 | kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS)do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval ( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8803) ; AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS" ")"); do { MOZ_CrashSequence(__null, 8803); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8804 | |||||
| 8805 | return NS_OK; | ||||
| 8806 | } | ||||
| 8807 | |||||
| 8808 | #endif | ||||
| 8809 | |||||
| 8810 | ConnectionPool::IdleResource::IdleResource(const TimeStamp& aIdleTime) | ||||
| 8811 | : mIdleTime(aIdleTime) { | ||||
| 8812 | AssertIsOnBackgroundThread(); | ||||
| 8813 | MOZ_ASSERT(!aIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aIdleTime.IsNull()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aIdleTime.IsNull()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8813) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 8813); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8814 | |||||
| 8815 | MOZ_COUNT_CTOR(ConnectionPool::IdleResource)do { static_assert(std::is_class_v<ConnectionPool::IdleResource >, "Token '" "ConnectionPool::IdleResource" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::IdleResource>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleResource" , sizeof(*this)); } while (0); | ||||
| 8816 | } | ||||
| 8817 | |||||
| 8818 | ConnectionPool::IdleResource::~IdleResource() { | ||||
| 8819 | AssertIsOnBackgroundThread(); | ||||
| 8820 | |||||
| 8821 | MOZ_COUNT_DTOR(ConnectionPool::IdleResource)do { static_assert(std::is_class_v<ConnectionPool::IdleResource >, "Token '" "ConnectionPool::IdleResource" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::IdleResource>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::IdleResource" , sizeof(*this)); } while (0); | ||||
| 8822 | } | ||||
| 8823 | |||||
| 8824 | ConnectionPool::IdleDatabaseInfo::IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo) | ||||
| 8825 | : IdleResource( | ||||
| 8826 | TimeStamp::NowLoRes() + | ||||
| 8827 | (aDatabaseInfo.mIdle | ||||
| 8828 | ? TimeDuration::FromMilliseconds(kConnectionIdleMaintenanceMS) | ||||
| 8829 | : TimeDuration::FromMilliseconds(kConnectionIdleCloseMS))), | ||||
| 8830 | mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)) { | ||||
| 8831 | AssertIsOnBackgroundThread(); | ||||
| 8832 | |||||
| 8833 | MOZ_COUNT_CTOR(ConnectionPool::IdleDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::IdleDatabaseInfo >, "Token '" "ConnectionPool::IdleDatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::IdleDatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleDatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 8834 | } | ||||
| 8835 | |||||
| 8836 | ConnectionPool::IdleDatabaseInfo::~IdleDatabaseInfo() { | ||||
| 8837 | AssertIsOnBackgroundThread(); | ||||
| 8838 | |||||
| 8839 | MOZ_COUNT_DTOR(ConnectionPool::IdleDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::IdleDatabaseInfo >, "Token '" "ConnectionPool::IdleDatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::IdleDatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::IdleDatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 8840 | } | ||||
| 8841 | |||||
| 8842 | ConnectionPool::PerformingIdleMaintenanceDatabaseInfo:: | ||||
| 8843 | PerformingIdleMaintenanceDatabaseInfo( | ||||
| 8844 | DatabaseInfo& aDatabaseInfo, | ||||
| 8845 | RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable) | ||||
| 8846 | : mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)), | ||||
| 8847 | mIdleConnectionRunnable(std::move(aIdleConnectionRunnable)) { | ||||
| 8848 | AssertIsOnBackgroundThread(); | ||||
| 8849 | MOZ_ASSERT(mIdleConnectionRunnable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIdleConnectionRunnable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mIdleConnectionRunnable))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleConnectionRunnable" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8849) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleConnectionRunnable" ")"); do { MOZ_CrashSequence(__null, 8849); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8850 | |||||
| 8851 | MOZ_COUNT_CTOR(ConnectionPool::PerformingIdleMaintenanceDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >, "Token '" "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" "' is not a class type."); static_assert(!std::is_base_of_v< nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 8852 | } | ||||
| 8853 | |||||
| 8854 | ConnectionPool::PerformingIdleMaintenanceDatabaseInfo:: | ||||
| 8855 | ~PerformingIdleMaintenanceDatabaseInfo() { | ||||
| 8856 | AssertIsOnBackgroundThread(); | ||||
| 8857 | |||||
| 8858 | MOZ_COUNT_DTOR(ConnectionPool::PerformingIdleMaintenanceDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >, "Token '" "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" "' is not a class type."); static_assert(!std::is_base_of_v< nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 8859 | } | ||||
| 8860 | |||||
| 8861 | ConnectionPool::TransactionInfo::TransactionInfo( | ||||
| 8862 | DatabaseInfo& aDatabaseInfo, const nsID& aBackgroundChildLoggingId, | ||||
| 8863 | const nsACString& aDatabaseId, uint64_t aTransactionId, | ||||
| 8864 | int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames, | ||||
| 8865 | bool aIsWriteTransaction, TransactionDatabaseOperationBase* aTransactionOp) | ||||
| 8866 | : mDatabaseInfo(aDatabaseInfo), | ||||
| 8867 | mBackgroundChildLoggingId(aBackgroundChildLoggingId), | ||||
| 8868 | mDatabaseId(aDatabaseId), | ||||
| 8869 | mTransactionId(aTransactionId), | ||||
| 8870 | mLoggingSerialNumber(aLoggingSerialNumber), | ||||
| 8871 | mObjectStoreNames(aObjectStoreNames.Clone()), | ||||
| 8872 | mIsWriteTransaction(aIsWriteTransaction), | ||||
| 8873 | mRunning(false), | ||||
| 8874 | mRunningOp(false) { | ||||
| 8875 | AssertIsOnBackgroundThread(); | ||||
| 8876 | aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread(); | ||||
| 8877 | |||||
| 8878 | MOZ_COUNT_CTOR(ConnectionPool::TransactionInfo)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfo >, "Token '" "ConnectionPool::TransactionInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::TransactionInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::TransactionInfo" , sizeof(*this)); } while (0); | ||||
| 8879 | |||||
| 8880 | if (aTransactionOp) { | ||||
| 8881 | mQueuedOps.Push(aTransactionOp); | ||||
| 8882 | } | ||||
| 8883 | } | ||||
| 8884 | |||||
| 8885 | ConnectionPool::TransactionInfo::~TransactionInfo() { | ||||
| 8886 | AssertIsOnBackgroundThread(); | ||||
| 8887 | MOZ_ASSERT(!mBlockedOn.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mBlockedOn.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mBlockedOn.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mBlockedOn.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8887) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBlockedOn.Count()" ")"); do { MOZ_CrashSequence(__null, 8887); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8888 | MOZ_ASSERT(mQueuedOps.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mQueuedOps.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mQueuedOps.IsEmpty()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mQueuedOps.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8888) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedOps.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8888); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8889 | MOZ_ASSERT(!mRunning)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mRunning)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mRunning))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mRunning", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8889); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunning" ")" ); do { MOZ_CrashSequence(__null, 8889); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8890 | MOZ_ASSERT(!mRunningOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mRunningOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mRunningOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8890); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunningOp" ")"); do { MOZ_CrashSequence(__null, 8890); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8891 | MOZ_ASSERT(mFinished)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFinished)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFinished))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFinished", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8891); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFinished" ")" ); do { MOZ_CrashSequence(__null, 8891); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8892 | |||||
| 8893 | MOZ_COUNT_DTOR(ConnectionPool::TransactionInfo)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfo >, "Token '" "ConnectionPool::TransactionInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::TransactionInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::TransactionInfo" , sizeof(*this)); } while (0); | ||||
| 8894 | } | ||||
| 8895 | |||||
| 8896 | void ConnectionPool::TransactionInfo::AddBlockingTransaction( | ||||
| 8897 | TransactionInfo& aTransactionInfo) { | ||||
| 8898 | AssertIsOnBackgroundThread(); | ||||
| 8899 | |||||
| 8900 | // XXX Does it really make sense to have both mBlocking and mBlockingOrdered, | ||||
| 8901 | // just to reduce the algorithmic complexity of this Contains check? This was | ||||
| 8902 | // mentioned in the context of Bug 1290853, but no real justification was | ||||
| 8903 | // given. There was the suggestion of encapsulating this in an | ||||
| 8904 | // insertion-ordered hashtable implementation, which seems like a good idea. | ||||
| 8905 | // If we had that, this would be the appropriate data structure to use here. | ||||
| 8906 | if (mBlocking.EnsureInserted(&aTransactionInfo)) { | ||||
| 8907 | mBlockingOrdered.AppendElement(WrapNotNullUnchecked(&aTransactionInfo)); | ||||
| 8908 | } | ||||
| 8909 | } | ||||
| 8910 | |||||
| 8911 | void ConnectionPool::TransactionInfo::RemoveBlockingTransactions() { | ||||
| 8912 | AssertIsOnBackgroundThread(); | ||||
| 8913 | |||||
| 8914 | for (const auto blockedInfo : mBlockingOrdered) { | ||||
| 8915 | blockedInfo->MaybeUnblock(*this); | ||||
| 8916 | } | ||||
| 8917 | |||||
| 8918 | mBlocking.Clear(); | ||||
| 8919 | mBlockingOrdered.Clear(); | ||||
| 8920 | } | ||||
| 8921 | |||||
| 8922 | void ConnectionPool::TransactionInfo::SetRunning() { | ||||
| 8923 | AssertIsOnBackgroundThread(); | ||||
| 8924 | MOZ_ASSERT(!mRunning)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mRunning)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mRunning))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mRunning", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8924); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunning" ")" ); do { MOZ_CrashSequence(__null, 8924); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8925 | |||||
| 8926 | AUTO_PROFILER_LABEL("ConnectionPool::FinishOp", DOM)mozilla::AutoProfilerLabel raiiObject8926( "ConnectionPool::FinishOp" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8927 | |||||
| 8928 | mRunning = true; | ||||
| 8929 | |||||
| 8930 | if (!mQueuedOps.IsEmpty()) { | ||||
| 8931 | mRunningOp = true; | ||||
| 8932 | |||||
| 8933 | nsCOMPtr<nsIRunnable> runnable = mQueuedOps.Pop(); | ||||
| 8934 | |||||
| 8935 | MOZ_ALWAYS_SUCCEEDS(mDatabaseInfo.Dispatch(runnable.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mDatabaseInfo.Dispatch(runnable.forget()))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8935) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))" ")"); do { MOZ_CrashSequence(__null, 8935); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8936 | } | ||||
| 8937 | } | ||||
| 8938 | |||||
| 8939 | void ConnectionPool::TransactionInfo::StartOp(nsCOMPtr<nsIRunnable> aRunnable) { | ||||
| 8940 | AssertIsOnBackgroundThread(); | ||||
| 8941 | |||||
| 8942 | if (mRunning) { | ||||
| 8943 | MOZ_ASSERT(mDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabaseInfo.mEventTarget)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseInfo.mEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8943) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mEventTarget" ")"); do { MOZ_CrashSequence(__null, 8943); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8944 | MOZ_ASSERT(!mDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseInfo.mClosing)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseInfo.mClosing))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseInfo.mClosing" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8944) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseInfo.mClosing" ")"); do { MOZ_CrashSequence(__null, 8944); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8945 | MOZ_ASSERT_IF(mIsWriteTransaction,do { if (mIsWriteTransaction) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals( *this))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo .mRunningWriteTransaction.refEquals(*this)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8947) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)" ")"); do { MOZ_CrashSequence(__null, 8947); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 8946 | mDatabaseInfo.mRunningWriteTransaction &&do { if (mIsWriteTransaction) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals( *this))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo .mRunningWriteTransaction.refEquals(*this)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8947) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)" ")"); do { MOZ_CrashSequence(__null, 8947); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 8947 | mDatabaseInfo.mRunningWriteTransaction.refEquals(*this))do { if (mIsWriteTransaction) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals( *this))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo .mRunningWriteTransaction.refEquals(*this)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8947) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)" ")"); do { MOZ_CrashSequence(__null, 8947); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 8948 | |||||
| 8949 | if (!mRunningOp) { | ||||
| 8950 | mRunningOp = true; | ||||
| 8951 | |||||
| 8952 | MOZ_ALWAYS_SUCCEEDS(mDatabaseInfo.Dispatch(aRunnable.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mDatabaseInfo.Dispatch(aRunnable.forget()))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(aRunnable.forget()))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8952) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(aRunnable.forget()))" ")"); do { MOZ_CrashSequence(__null, 8952); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8953 | } else { | ||||
| 8954 | mQueuedOps.Push(std::move(aRunnable)); | ||||
| 8955 | } | ||||
| 8956 | } else { | ||||
| 8957 | mQueuedOps.Push(std::move(aRunnable)); | ||||
| 8958 | } | ||||
| 8959 | } | ||||
| 8960 | |||||
| 8961 | void ConnectionPool::TransactionInfo::FinishOp() { | ||||
| 8962 | AssertIsOnBackgroundThread(); | ||||
| 8963 | MOZ_ASSERT(mRunning)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRunning)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRunning))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRunning", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8963); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRunning" ")" ); do { MOZ_CrashSequence(__null, 8963); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8964 | MOZ_ASSERT(mRunningOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRunningOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRunningOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8964); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRunningOp" ")"); do { MOZ_CrashSequence(__null, 8964); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8965 | |||||
| 8966 | if (mQueuedOps.IsEmpty()) { | ||||
| 8967 | mRunningOp = false; | ||||
| 8968 | } else { | ||||
| 8969 | nsCOMPtr<nsIRunnable> runnable = mQueuedOps.Pop(); | ||||
| 8970 | |||||
| 8971 | MOZ_ALWAYS_SUCCEEDS(mDatabaseInfo.Dispatch(runnable.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mDatabaseInfo.Dispatch(runnable.forget()))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8971) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))" ")"); do { MOZ_CrashSequence(__null, 8971); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8972 | } | ||||
| 8973 | } | ||||
| 8974 | |||||
| 8975 | void ConnectionPool::TransactionInfo::MaybeUnblock( | ||||
| 8976 | TransactionInfo& aTransactionInfo) { | ||||
| 8977 | AssertIsOnBackgroundThread(); | ||||
| 8978 | MOZ_ASSERT(mBlockedOn.Contains(&aTransactionInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(mBlockedOn.Contains(&aTransactionInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mBlockedOn.Contains(&aTransactionInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mBlockedOn.Contains(&aTransactionInfo)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8978) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBlockedOn.Contains(&aTransactionInfo)" ")"); do { MOZ_CrashSequence(__null, 8978); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8979 | |||||
| 8980 | mBlockedOn.Remove(&aTransactionInfo); | ||||
| 8981 | if (mBlockedOn.IsEmpty()) { | ||||
| 8982 | ConnectionPool* connectionPool = mDatabaseInfo.mConnectionPool; | ||||
| 8983 | MOZ_ASSERT(connectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(connectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(connectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("connectionPool" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8983) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")" ); do { MOZ_CrashSequence(__null, 8983); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8984 | connectionPool->AssertIsOnOwningThread(); | ||||
| 8985 | |||||
| 8986 | (void)connectionPool->ScheduleTransaction( | ||||
| 8987 | *this, | ||||
| 8988 | /* aFromQueuedTransactions */ false); | ||||
| 8989 | } | ||||
| 8990 | } | ||||
| 8991 | |||||
| 8992 | #if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1) | ||||
| 8993 | ConnectionPool::TransactionInfoPair::TransactionInfoPair() { | ||||
| 8994 | AssertIsOnBackgroundThread(); | ||||
| 8995 | |||||
| 8996 | MOZ_COUNT_CTOR(ConnectionPool::TransactionInfoPair)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfoPair >, "Token '" "ConnectionPool::TransactionInfoPair" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::TransactionInfoPair>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::TransactionInfoPair" , sizeof(*this)); } while (0); | ||||
| 8997 | } | ||||
| 8998 | |||||
| 8999 | ConnectionPool::TransactionInfoPair::~TransactionInfoPair() { | ||||
| 9000 | AssertIsOnBackgroundThread(); | ||||
| 9001 | |||||
| 9002 | MOZ_COUNT_DTOR(ConnectionPool::TransactionInfoPair)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfoPair >, "Token '" "ConnectionPool::TransactionInfoPair" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::TransactionInfoPair>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::TransactionInfoPair" , sizeof(*this)); } while (0); | ||||
| 9003 | } | ||||
| 9004 | #endif | ||||
| 9005 | |||||
| 9006 | /******************************************************************************* | ||||
| 9007 | * Metadata classes | ||||
| 9008 | ******************************************************************************/ | ||||
| 9009 | |||||
| 9010 | bool FullObjectStoreMetadata::HasLiveIndexes() const { | ||||
| 9011 | AssertIsOnBackgroundThread(); | ||||
| 9012 | |||||
| 9013 | return std::any_of(mIndexes.Values().cbegin(), mIndexes.Values().cend(), | ||||
| 9014 | [](const auto& entry) { return !entry->mDeleted; }); | ||||
| 9015 | } | ||||
| 9016 | |||||
| 9017 | SafeRefPtr<FullDatabaseMetadata> FullDatabaseMetadata::Duplicate() const { | ||||
| 9018 | AssertIsOnBackgroundThread(); | ||||
| 9019 | |||||
| 9020 | // FullDatabaseMetadata contains two hash tables of pointers that we need to | ||||
| 9021 | // duplicate so we can't just use the copy constructor. | ||||
| 9022 | auto newMetadata = MakeSafeRefPtr<FullDatabaseMetadata>(mCommonMetadata); | ||||
| 9023 | |||||
| 9024 | newMetadata->mDatabaseId = mDatabaseId; | ||||
| 9025 | newMetadata->mFilePath = mFilePath; | ||||
| 9026 | newMetadata->mNextObjectStoreId = mNextObjectStoreId; | ||||
| 9027 | newMetadata->mNextIndexId = mNextIndexId; | ||||
| 9028 | |||||
| 9029 | for (const auto& objectStoreEntry : mObjectStores) { | ||||
| 9030 | const auto& objectStoreValue = objectStoreEntry.GetData(); | ||||
| 9031 | |||||
| 9032 | auto newOSMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>( | ||||
| 9033 | objectStoreValue->mCommonMetadata, [&objectStoreValue] { | ||||
| 9034 | const auto&& srcLocked = objectStoreValue->mAutoIncrementIds.Lock(); | ||||
| 9035 | return *srcLocked; | ||||
| 9036 | }()); | ||||
| 9037 | |||||
| 9038 | for (const auto& indexEntry : objectStoreValue->mIndexes) { | ||||
| 9039 | const auto& value = indexEntry.GetData(); | ||||
| 9040 | |||||
| 9041 | auto newIndexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); | ||||
| 9042 | |||||
| 9043 | newIndexMetadata->mCommonMetadata = value->mCommonMetadata; | ||||
| 9044 | |||||
| 9045 | if (NS_WARN_IF(!newOSMetadata->mIndexes.InsertOrUpdate(NS_warn_if_impl(!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry .GetKey(), std::move(newIndexMetadata), fallible), "!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry.GetKey(), std::move(newIndexMetadata), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9046) | ||||
| 9046 | indexEntry.GetKey(), std::move(newIndexMetadata), fallible))NS_warn_if_impl(!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry .GetKey(), std::move(newIndexMetadata), fallible), "!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry.GetKey(), std::move(newIndexMetadata), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9046)) { | ||||
| 9047 | return nullptr; | ||||
| 9048 | } | ||||
| 9049 | } | ||||
| 9050 | |||||
| 9051 | MOZ_ASSERT(objectStoreValue->mIndexes.Count() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(objectStoreValue->mIndexes.Count() == newOSMetadata ->mIndexes.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(objectStoreValue->mIndexes .Count() == newOSMetadata->mIndexes.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9052) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()" ")"); do { MOZ_CrashSequence(__null, 9052); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9052 | newOSMetadata->mIndexes.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(objectStoreValue->mIndexes.Count() == newOSMetadata ->mIndexes.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(objectStoreValue->mIndexes .Count() == newOSMetadata->mIndexes.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9052) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()" ")"); do { MOZ_CrashSequence(__null, 9052); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9053 | |||||
| 9054 | if (NS_WARN_IF(!newMetadata->mObjectStores.InsertOrUpdate(NS_warn_if_impl(!newMetadata->mObjectStores.InsertOrUpdate ( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible ), "!newMetadata->mObjectStores.InsertOrUpdate( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9055) | ||||
| 9055 | objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible))NS_warn_if_impl(!newMetadata->mObjectStores.InsertOrUpdate ( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible ), "!newMetadata->mObjectStores.InsertOrUpdate( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9055)) { | ||||
| 9056 | return nullptr; | ||||
| 9057 | } | ||||
| 9058 | } | ||||
| 9059 | |||||
| 9060 | MOZ_ASSERT(mObjectStores.Count() == newMetadata->mObjectStores.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mObjectStores.Count() == newMetadata->mObjectStores .Count())>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(mObjectStores.Count() == newMetadata ->mObjectStores.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mObjectStores.Count() == newMetadata->mObjectStores.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9060) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStores.Count() == newMetadata->mObjectStores.Count()" ")"); do { MOZ_CrashSequence(__null, 9060); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9061 | |||||
| 9062 | return newMetadata; | ||||
| 9063 | } | ||||
| 9064 | |||||
| 9065 | DatabaseLoggingInfo::~DatabaseLoggingInfo() { | ||||
| 9066 | AssertIsOnBackgroundThread(); | ||||
| 9067 | |||||
| 9068 | if (gLoggingInfoHashtable) { | ||||
| 9069 | const nsID& backgroundChildLoggingId = | ||||
| 9070 | mLoggingInfo.backgroundChildLoggingId(); | ||||
| 9071 | |||||
| 9072 | MOZ_ASSERT(gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gLoggingInfoHashtable->Get(backgroundChildLoggingId ) == this)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(gLoggingInfoHashtable->Get(backgroundChildLoggingId ) == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9072) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this" ")"); do { MOZ_CrashSequence(__null, 9072); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9073 | |||||
| 9074 | gLoggingInfoHashtable->Remove(backgroundChildLoggingId); | ||||
| 9075 | } | ||||
| 9076 | } | ||||
| 9077 | |||||
| 9078 | /******************************************************************************* | ||||
| 9079 | * Factory | ||||
| 9080 | ******************************************************************************/ | ||||
| 9081 | |||||
| 9082 | Factory::Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo, | ||||
| 9083 | const nsACString& aSystemLocale) | ||||
| 9084 | : mSystemLocale(aSystemLocale), | ||||
| 9085 | mLoggingInfo(std::move(aLoggingInfo)) | ||||
| 9086 | #ifdef DEBUG1 | ||||
| 9087 | , | ||||
| 9088 | mActorDestroyed(false) | ||||
| 9089 | #endif | ||||
| 9090 | { | ||||
| 9091 | AssertIsOnBackgroundThread(); | ||||
| 9092 | MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9092) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 9092); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9093 | } | ||||
| 9094 | |||||
| 9095 | Factory::~Factory() { MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActorDestroyed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9095) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 9095); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 9096 | |||||
| 9097 | // static | ||||
| 9098 | SafeRefPtr<Factory> Factory::Create(const LoggingInfo& aLoggingInfo, | ||||
| 9099 | const nsACString& aSystemLocale) { | ||||
| 9100 | AssertIsOnBackgroundThread(); | ||||
| 9101 | MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9101) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 9101); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9102 | |||||
| 9103 | // Balanced in ActoryDestroy(). | ||||
| 9104 | IncreaseBusyCount(); | ||||
| 9105 | |||||
| 9106 | MOZ_ASSERT(gLoggingInfoHashtable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gLoggingInfoHashtable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gLoggingInfoHashtable))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("gLoggingInfoHashtable" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9106) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable" ")"); do { MOZ_CrashSequence(__null, 9106); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9107 | RefPtr<DatabaseLoggingInfo> loggingInfo = | ||||
| 9108 | gLoggingInfoHashtable->WithEntryHandle( | ||||
| 9109 | aLoggingInfo.backgroundChildLoggingId(), [&](auto&& entry) { | ||||
| 9110 | if (entry) { | ||||
| 9111 | [[maybe_unused]] const auto& loggingInfo = entry.Data(); | ||||
| 9112 | MOZ_ASSERT(aLoggingInfo.backgroundChildLoggingId() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(aLoggingInfo.backgroundChildLoggingId() == loggingInfo ->Id())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aLoggingInfo.backgroundChildLoggingId () == loggingInfo->Id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9113) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()" ")"); do { MOZ_CrashSequence(__null, 9113); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9113 | loggingInfo->Id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aLoggingInfo.backgroundChildLoggingId() == loggingInfo ->Id())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aLoggingInfo.backgroundChildLoggingId () == loggingInfo->Id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9113) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()" ")"); do { MOZ_CrashSequence(__null, 9113); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9114 | #if !FUZZING | ||||
| 9115 | NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo ->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9118) ; } } while (false) | ||||
| 9116 | aLoggingInfo.nextTransactionSerialNumber() ==do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo ->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9118) ; } } while (false) | ||||
| 9117 | loggingInfo->mLoggingInfo.nextTransactionSerialNumber(),do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo ->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9118) ; } } while (false) | ||||
| 9118 | "NextTransactionSerialNumber doesn't match!")do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo ->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9118) ; } } while (false); | ||||
| 9119 | NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber () == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber ())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9123) ; } } while (false) | ||||
| 9120 | aLoggingInfo.nextVersionChangeTransactionSerialNumber() ==do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber () == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber ())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9123) ; } } while (false) | ||||
| 9121 | loggingInfo->mLoggingInfodo { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber () == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber ())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9123) ; } } while (false) | ||||
| 9122 | .nextVersionChangeTransactionSerialNumber(),do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber () == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber ())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9123) ; } } while (false) | ||||
| 9123 | "NextVersionChangeTransactionSerialNumber doesn't match!")do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber () == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber ())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9123) ; } } while (false); | ||||
| 9124 | NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo ->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9127) ; } } while (false) | ||||
| 9125 | aLoggingInfo.nextRequestSerialNumber() ==do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo ->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9127) ; } } while (false) | ||||
| 9126 | loggingInfo->mLoggingInfo.nextRequestSerialNumber(),do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo ->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9127) ; } } while (false) | ||||
| 9127 | "NextRequestSerialNumber doesn't match!")do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo ->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9127) ; } } while (false); | ||||
| 9128 | #endif // !FUZZING | ||||
| 9129 | } else { | ||||
| 9130 | entry.Insert(new DatabaseLoggingInfo(aLoggingInfo)); | ||||
| 9131 | } | ||||
| 9132 | |||||
| 9133 | return do_AddRef(entry.Data()); | ||||
| 9134 | }); | ||||
| 9135 | |||||
| 9136 | return MakeSafeRefPtr<Factory>(std::move(loggingInfo), aSystemLocale); | ||||
| 9137 | } | ||||
| 9138 | |||||
| 9139 | void Factory::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 9140 | AssertIsOnBackgroundThread(); | ||||
| 9141 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9141) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 9141); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9142 | |||||
| 9143 | #ifdef DEBUG1 | ||||
| 9144 | mActorDestroyed = true; | ||||
| 9145 | #endif | ||||
| 9146 | |||||
| 9147 | // Match the IncreaseBusyCount in Create(). | ||||
| 9148 | DecreaseBusyCount(); | ||||
| 9149 | } | ||||
| 9150 | |||||
| 9151 | mozilla::ipc::IPCResult Factory::RecvDeleteMe() { | ||||
| 9152 | AssertIsOnBackgroundThread(); | ||||
| 9153 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9153) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 9153); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9154 | |||||
| 9155 | QM_WARNONLY_TRY(OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))){auto tryResult991 = (OkIf(PBackgroundIDBFactoryParent::Send__delete__ (this))); static_assert(std::is_empty_v<typename decltype( tryResult991)::ok_type>); if ((__builtin_expect(!!(tryResult991 .isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))" , tryResult991.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9155, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 9156 | |||||
| 9157 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9158 | } | ||||
| 9159 | |||||
| 9160 | PBackgroundIDBFactoryRequestParent* | ||||
| 9161 | Factory::AllocPBackgroundIDBFactoryRequestParent( | ||||
| 9162 | const FactoryRequestParams& aParams) { | ||||
| 9163 | AssertIsOnBackgroundThread(); | ||||
| 9164 | MOZ_ASSERT(aParams.type() != FactoryRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != FactoryRequestParams::T__None)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() != FactoryRequestParams::T__None))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != FactoryRequestParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9164) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 9164); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9165 | |||||
| 9166 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9166)) { | ||||
| 9167 | return nullptr; | ||||
| 9168 | } | ||||
| 9169 | |||||
| 9170 | const CommonFactoryRequestParams* commonParams; | ||||
| 9171 | |||||
| 9172 | switch (aParams.type()) { | ||||
| 9173 | case FactoryRequestParams::TOpenDatabaseRequestParams: { | ||||
| 9174 | const OpenDatabaseRequestParams& params = | ||||
| 9175 | aParams.get_OpenDatabaseRequestParams(); | ||||
| 9176 | commonParams = ¶ms.commonParams(); | ||||
| 9177 | break; | ||||
| 9178 | } | ||||
| 9179 | |||||
| 9180 | case FactoryRequestParams::TDeleteDatabaseRequestParams: { | ||||
| 9181 | const DeleteDatabaseRequestParams& params = | ||||
| 9182 | aParams.get_DeleteDatabaseRequestParams(); | ||||
| 9183 | commonParams = ¶ms.commonParams(); | ||||
| 9184 | break; | ||||
| 9185 | } | ||||
| 9186 | |||||
| 9187 | default: | ||||
| 9188 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9188) ; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 9188); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 9189 | } | ||||
| 9190 | |||||
| 9191 | MOZ_ASSERT(commonParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(commonParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(commonParams))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("commonParams", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9191); AnnotateMozCrashReason("MOZ_ASSERT" "(" "commonParams" ")"); do { MOZ_CrashSequence(__null, 9191); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9192 | |||||
| 9193 | const DatabaseMetadata& metadata = commonParams->metadata(); | ||||
| 9194 | |||||
| 9195 | if (NS_AUUF_OR_WARN_IF(!IsValidPersistenceType(metadata.persistenceType()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!IsValidPersistenceType(metadata.persistenceType())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9195 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!IsValidPersistenceType(metadata.persistenceType())" ")"); do { MOZ_CrashSequence(__null, 9195); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((!IsValidPersistenceType(metadata.persistenceType())))) { | ||||
| 9196 | return nullptr; | ||||
| 9197 | } | ||||
| 9198 | |||||
| 9199 | const PrincipalInfo& principalInfo = commonParams->principalInfo(); | ||||
| 9200 | |||||
| 9201 | if (NS_AUUF_OR_WARN_IF(!quota::IsPrincipalInfoValid(principalInfo))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!quota::IsPrincipalInfoValid(principalInfo)" ")" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9201) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!quota::IsPrincipalInfoValid(principalInfo)" ")"); do { MOZ_CrashSequence(__null, 9201); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((!quota::IsPrincipalInfoValid(principalInfo)))) { | ||||
| 9202 | IPC_FAIL(this, "Invalid principal!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid principal!" )); | ||||
| 9203 | return nullptr; | ||||
| 9204 | } | ||||
| 9205 | |||||
| 9206 | MOZ_ASSERT(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9207) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo" ")"); do { MOZ_CrashSequence(__null, 9207); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9207 | principalInfo.type() == PrincipalInfo::TContentPrincipalInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9207) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo" ")"); do { MOZ_CrashSequence(__null, 9207); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9208 | |||||
| 9209 | if (!BackgroundParent::ValidatePrincipalInfo(Manager(), principalInfo, | ||||
| 9210 | PrincipalValidationOptions())) { | ||||
| 9211 | IPC_FAIL(this, "Invalid principal!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid principal!" )); | ||||
| 9212 | return nullptr; | ||||
| 9213 | } | ||||
| 9214 | |||||
| 9215 | /* GetPersistenceType returns PERSISTENT for system principals and internal | ||||
| 9216 | content principals, PRIVATE for private-browsing content principals, and | ||||
| 9217 | DEFAULT for everything else. The sent value is technically redundant and | ||||
| 9218 | always deducible from the principal but we validate it here so that an | ||||
| 9219 | incorrect metadata value cannot reach other parts of the code. | ||||
| 9220 | TODO: Stop sending persistenceType from the content process and just derive it | ||||
| 9221 | on the parent side. */ | ||||
| 9222 | if (metadata.persistenceType() != | ||||
| 9223 | IDBFactory::GetPersistenceType(principalInfo)) { | ||||
| 9224 | IPC_FAIL(this, "Persistence type does not match principal!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Persistence type does not match principal!" )); | ||||
| 9225 | return nullptr; | ||||
| 9226 | } | ||||
| 9227 | |||||
| 9228 | Maybe<ContentParentId> contentParentId = GetContentParentId(); | ||||
| 9229 | |||||
| 9230 | auto actor = [&]() -> RefPtr<FactoryRequestOp> { | ||||
| 9231 | if (aParams.type() == FactoryRequestParams::TOpenDatabaseRequestParams) { | ||||
| 9232 | return MakeRefPtr<OpenDatabaseOp>(SafeRefPtrFromThis(), contentParentId, | ||||
| 9233 | *commonParams); | ||||
| 9234 | } else { | ||||
| 9235 | return MakeRefPtr<DeleteDatabaseOp>(SafeRefPtrFromThis(), contentParentId, | ||||
| 9236 | *commonParams); | ||||
| 9237 | } | ||||
| 9238 | }(); | ||||
| 9239 | |||||
| 9240 | gFactoryOps->insertBack(actor); | ||||
| 9241 | |||||
| 9242 | // Balanced in CleanupMetadata() which is/must always called by SendResults(). | ||||
| 9243 | IncreaseBusyCount(); | ||||
| 9244 | |||||
| 9245 | // Transfer ownership to IPDL. | ||||
| 9246 | return actor.forget().take(); | ||||
| 9247 | } | ||||
| 9248 | |||||
| 9249 | mozilla::ipc::IPCResult Factory::RecvPBackgroundIDBFactoryRequestConstructor( | ||||
| 9250 | PBackgroundIDBFactoryRequestParent* aActor, | ||||
| 9251 | const FactoryRequestParams& aParams) { | ||||
| 9252 | AssertIsOnBackgroundThread(); | ||||
| 9253 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 9253); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9254 | MOZ_ASSERT(aParams.type() != FactoryRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != FactoryRequestParams::T__None)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() != FactoryRequestParams::T__None))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != FactoryRequestParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9254) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 9254); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9255 | MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9255) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 9255); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9256 | |||||
| 9257 | auto* op = static_cast<FactoryRequestOp*>(aActor); | ||||
| 9258 | |||||
| 9259 | MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(op))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_DispatchToCurrentThread(op))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9259) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" ")"); do { MOZ_CrashSequence(__null, 9259); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9260 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9261 | } | ||||
| 9262 | |||||
| 9263 | bool Factory::DeallocPBackgroundIDBFactoryRequestParent( | ||||
| 9264 | PBackgroundIDBFactoryRequestParent* aActor) { | ||||
| 9265 | AssertIsOnBackgroundThread(); | ||||
| 9266 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9266); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 9266); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9267 | |||||
| 9268 | // Transfer ownership back from IPDL. | ||||
| 9269 | RefPtr<FactoryRequestOp> op = | ||||
| 9270 | dont_AddRef(static_cast<FactoryRequestOp*>(aActor)); | ||||
| 9271 | return true; | ||||
| 9272 | } | ||||
| 9273 | |||||
| 9274 | mozilla::ipc::IPCResult Factory::RecvGetDatabases( | ||||
| 9275 | const PersistenceType& aPersistenceType, | ||||
| 9276 | const PrincipalInfo& aPrincipalInfo, GetDatabasesResolver&& aResolve) { | ||||
| 9277 | AssertIsOnBackgroundThread(); | ||||
| 9278 | |||||
| 9279 | auto ResolveGetDatabasesAndReturn = [&aResolve](const nsresult rv) { | ||||
| 9280 | aResolve(rv); | ||||
| 9281 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9282 | }; | ||||
| 9283 | |||||
| 9284 | QM_TRY(MOZ_TO_RESULT(!QuotaClient::IsShuttingDownOnBackgroundThread()),{auto tryResult992 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread ())); static_assert(std::is_empty_v<typename decltype(tryResult992 )::ok_type>); if ((__builtin_expect(!!(tryResult992.isErr( )), 0))) { [[maybe_unused]] auto tryTempError = tryResult992. unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9285, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())" , tryTempError, ResolveGetDatabasesAndReturn); }} | ||||
| 9285 | ResolveGetDatabasesAndReturn){auto tryResult992 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread ())); static_assert(std::is_empty_v<typename decltype(tryResult992 )::ok_type>); if ((__builtin_expect(!!(tryResult992.isErr( )), 0))) { [[maybe_unused]] auto tryTempError = tryResult992. unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9285, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())" , tryTempError, ResolveGetDatabasesAndReturn); }}; | ||||
| 9286 | |||||
| 9287 | QM_TRY(MOZ_TO_RESULT(IsValidPersistenceType(aPersistenceType)),{auto tryResult993 = (ToResult(IsValidPersistenceType(aPersistenceType ))); static_assert(std::is_empty_v<typename decltype(tryResult993 )::ok_type>); if ((__builtin_expect(!!(tryResult993.isErr( )), 0))) { [[maybe_unused]] auto tryTempError = tryResult993. unwrapErr(); mozilla::dom::quota::HandleError("ToResult(IsValidPersistenceType(aPersistenceType))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9288, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IsValidPersistenceType(aPersistenceType))" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }} | ||||
| 9288 | QM_IPC_FAIL(this)){auto tryResult993 = (ToResult(IsValidPersistenceType(aPersistenceType ))); static_assert(std::is_empty_v<typename decltype(tryResult993 )::ok_type>); if ((__builtin_expect(!!(tryResult993.isErr( )), 0))) { [[maybe_unused]] auto tryTempError = tryResult993. unwrapErr(); mozilla::dom::quota::HandleError("ToResult(IsValidPersistenceType(aPersistenceType))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9288, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IsValidPersistenceType(aPersistenceType))" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }}; | ||||
| 9289 | |||||
| 9290 | QM_TRY(MOZ_TO_RESULT(quota::IsPrincipalInfoValid(aPrincipalInfo)),{auto tryResult994 = (ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo ))); static_assert(std::is_empty_v<typename decltype(tryResult994 )::ok_type>); if ((__builtin_expect(!!(tryResult994.isErr( )), 0))) { [[maybe_unused]] auto tryTempError = tryResult994. unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9291, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }} | ||||
| 9291 | QM_IPC_FAIL(this)){auto tryResult994 = (ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo ))); static_assert(std::is_empty_v<typename decltype(tryResult994 )::ok_type>); if ((__builtin_expect(!!(tryResult994.isErr( )), 0))) { [[maybe_unused]] auto tryTempError = tryResult994. unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9291, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }}; | ||||
| 9292 | |||||
| 9293 | MOZ_ASSERT(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9294) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo" ")"); do { MOZ_CrashSequence(__null, 9294); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9294 | aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9294) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo" ")"); do { MOZ_CrashSequence(__null, 9294); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9295 | |||||
| 9296 | QM_TRY(MOZ_TO_RESULT(BackgroundParent::ValidatePrincipalInfo({auto tryResult995 = (ToResult(BackgroundParent::ValidatePrincipalInfo ( Manager(), aPrincipalInfo, PrincipalValidationOptions()))); static_assert(std::is_empty_v<typename decltype(tryResult995 )::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr( )), 0))) { [[maybe_unused]] auto tryTempError = tryResult995. unwrapErr(); mozilla::dom::quota::HandleError("ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9298, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }} | ||||
| 9297 | Manager(), aPrincipalInfo, PrincipalValidationOptions())),{auto tryResult995 = (ToResult(BackgroundParent::ValidatePrincipalInfo ( Manager(), aPrincipalInfo, PrincipalValidationOptions()))); static_assert(std::is_empty_v<typename decltype(tryResult995 )::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr( )), 0))) { [[maybe_unused]] auto tryTempError = tryResult995. unwrapErr(); mozilla::dom::quota::HandleError("ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9298, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }} | ||||
| 9298 | QM_IPC_FAIL(this)){auto tryResult995 = (ToResult(BackgroundParent::ValidatePrincipalInfo ( Manager(), aPrincipalInfo, PrincipalValidationOptions()))); static_assert(std::is_empty_v<typename decltype(tryResult995 )::ok_type>); if ((__builtin_expect(!!(tryResult995.isErr( )), 0))) { [[maybe_unused]] auto tryTempError = tryResult995. unwrapErr(); mozilla::dom::quota::HandleError("ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9298, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }}; | ||||
| 9299 | |||||
| 9300 | PersistenceType persistenceType = | ||||
| 9301 | IDBFactory::GetPersistenceType(aPrincipalInfo); | ||||
| 9302 | |||||
| 9303 | QM_TRY(MOZ_TO_RESULT(aPersistenceType == persistenceType), QM_IPC_FAIL(this)){auto tryResult996 = (ToResult(aPersistenceType == persistenceType )); static_assert(std::is_empty_v<typename decltype(tryResult996 )::ok_type>); if ((__builtin_expect(!!(tryResult996.isErr( )), 0))) { [[maybe_unused]] auto tryTempError = tryResult996. unwrapErr(); mozilla::dom::quota::HandleError("ToResult(aPersistenceType == persistenceType)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9303, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(aPersistenceType == persistenceType)" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }}; | ||||
| 9304 | |||||
| 9305 | Maybe<ContentParentId> contentParentId = GetContentParentId(); | ||||
| 9306 | |||||
| 9307 | auto op = MakeRefPtr<GetDatabasesOp>(SafeRefPtrFromThis(), contentParentId, | ||||
| 9308 | aPersistenceType, aPrincipalInfo, | ||||
| 9309 | std::move(aResolve)); | ||||
| 9310 | |||||
| 9311 | gFactoryOps->insertBack(op); | ||||
| 9312 | |||||
| 9313 | // Balanced in CleanupMetadata() which is/must always called by SendResults(). | ||||
| 9314 | IncreaseBusyCount(); | ||||
| 9315 | |||||
| 9316 | MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(op))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_DispatchToCurrentThread(op))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9316) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" ")"); do { MOZ_CrashSequence(__null, 9316); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9317 | |||||
| 9318 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9319 | } | ||||
| 9320 | |||||
| 9321 | Maybe<ContentParentId> Factory::GetContentParentId() const { | ||||
| 9322 | uint64_t childID = BackgroundParent::GetChildID(Manager()); | ||||
| 9323 | if (childID) { | ||||
| 9324 | // If childID is not zero we are dealing with an other-process actor. We | ||||
| 9325 | // want to initialize OpenDatabaseOp/DeleteDatabaseOp here with the ID | ||||
| 9326 | // (and later also Database) in that case, so Database::IsOwnedByProcess | ||||
| 9327 | // can find Databases belonging to a particular content process when | ||||
| 9328 | // QuotaClient::AbortOperationsForProcess is called which is currently used | ||||
| 9329 | // to abort operations for content processes only. | ||||
| 9330 | return Some(ContentParentId(childID)); | ||||
| 9331 | } | ||||
| 9332 | |||||
| 9333 | return Nothing(); | ||||
| 9334 | } | ||||
| 9335 | |||||
| 9336 | /******************************************************************************* | ||||
| 9337 | * WaitForTransactionsHelper | ||||
| 9338 | ******************************************************************************/ | ||||
| 9339 | |||||
| 9340 | void WaitForTransactionsHelper::WaitForTransactions() { | ||||
| 9341 | MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9341) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial" ")"); do { MOZ_CrashSequence(__null, 9341); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9342 | |||||
| 9343 | (void)this->Run(); | ||||
| 9344 | } | ||||
| 9345 | |||||
| 9346 | void WaitForTransactionsHelper::MaybeWaitForTransactions() { | ||||
| 9347 | AssertIsOnBackgroundThread(); | ||||
| 9348 | MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9348) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial" ")"); do { MOZ_CrashSequence(__null, 9348); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9349 | |||||
| 9350 | RefPtr<ConnectionPool> connectionPool = gConnectionPool.get(); | ||||
| 9351 | if (connectionPool) { | ||||
| 9352 | mState = State::WaitingForTransactions; | ||||
| 9353 | |||||
| 9354 | connectionPool->WaitForDatabaseToComplete(mDatabaseId, this); | ||||
| 9355 | |||||
| 9356 | return; | ||||
| 9357 | } | ||||
| 9358 | |||||
| 9359 | CallCallback(); | ||||
| 9360 | } | ||||
| 9361 | |||||
| 9362 | void WaitForTransactionsHelper::CallCallback() { | ||||
| 9363 | AssertIsOnBackgroundThread(); | ||||
| 9364 | MOZ_ASSERT(mState == State::Initial ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial || mState == State::WaitingForTransactions )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::Initial || mState == State::WaitingForTransactions ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::Initial || mState == State::WaitingForTransactions" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9365) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions" ")"); do { MOZ_CrashSequence(__null, 9365); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9365 | mState == State::WaitingForTransactions)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial || mState == State::WaitingForTransactions )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::Initial || mState == State::WaitingForTransactions ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::Initial || mState == State::WaitingForTransactions" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9365) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions" ")"); do { MOZ_CrashSequence(__null, 9365); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9366 | |||||
| 9367 | const nsCOMPtr<nsIRunnable> callback = std::move(mCallback); | ||||
| 9368 | |||||
| 9369 | callback->Run(); | ||||
| 9370 | |||||
| 9371 | mState = State::Complete; | ||||
| 9372 | } | ||||
| 9373 | |||||
| 9374 | NS_IMETHODIMPnsresult | ||||
| 9375 | WaitForTransactionsHelper::Run() { | ||||
| 9376 | MOZ_ASSERT(mState != State::Complete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState != State::Complete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState != State::Complete))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState != State::Complete" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9376) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State::Complete" ")"); do { MOZ_CrashSequence(__null, 9376); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9377 | MOZ_ASSERT(mCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9377); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")" ); do { MOZ_CrashSequence(__null, 9377); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9378 | |||||
| 9379 | switch (mState) { | ||||
| 9380 | case State::Initial: | ||||
| 9381 | MaybeWaitForTransactions(); | ||||
| 9382 | break; | ||||
| 9383 | |||||
| 9384 | case State::WaitingForTransactions: | ||||
| 9385 | CallCallback(); | ||||
| 9386 | break; | ||||
| 9387 | |||||
| 9388 | default: | ||||
| 9389 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9389) ; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 9389); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 9390 | } | ||||
| 9391 | |||||
| 9392 | return NS_OK; | ||||
| 9393 | } | ||||
| 9394 | |||||
| 9395 | /******************************************************************************* | ||||
| 9396 | * Database | ||||
| 9397 | ******************************************************************************/ | ||||
| 9398 | |||||
| 9399 | Database::Database(SafeRefPtr<Factory> aFactory, | ||||
| 9400 | const PrincipalInfo& aPrincipalInfo, | ||||
| 9401 | const Maybe<ContentParentId>& aOptionalContentParentId, | ||||
| 9402 | const quota::OriginMetadata& aOriginMetadata, | ||||
| 9403 | uint32_t aTelemetryId, | ||||
| 9404 | SafeRefPtr<FullDatabaseMetadata> aMetadata, | ||||
| 9405 | SafeRefPtr<DatabaseFileManager> aFileManager, | ||||
| 9406 | ClientDirectoryLockHandle aDirectoryLockHandle, | ||||
| 9407 | bool aInPrivateBrowsing, | ||||
| 9408 | const Maybe<const CipherKey>& aMaybeKey) | ||||
| 9409 | : mFactory(std::move(aFactory)), | ||||
| 9410 | mMetadata(std::move(aMetadata)), | ||||
| 9411 | mFileManager(std::move(aFileManager)), | ||||
| 9412 | mDirectoryLockHandle(std::move(aDirectoryLockHandle)), | ||||
| 9413 | mPrincipalInfo(aPrincipalInfo), | ||||
| 9414 | mOptionalContentParentId(aOptionalContentParentId), | ||||
| 9415 | mOriginMetadata(aOriginMetadata), | ||||
| 9416 | mId(mMetadata->mDatabaseId), | ||||
| 9417 | mFilePath(mMetadata->mFilePath), | ||||
| 9418 | mKey(aMaybeKey), | ||||
| 9419 | mTelemetryId(aTelemetryId), | ||||
| 9420 | mPersistenceType(mMetadata->mCommonMetadata.persistenceType()), | ||||
| 9421 | mInPrivateBrowsing(aInPrivateBrowsing), | ||||
| 9422 | mBackgroundThread(GetCurrentSerialEventTarget()) | ||||
| 9423 | #ifdef DEBUG1 | ||||
| 9424 | , | ||||
| 9425 | mAllBlobsUnmapped(false) | ||||
| 9426 | #endif | ||||
| 9427 | { | ||||
| 9428 | AssertIsOnBackgroundThread(); | ||||
| 9429 | MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFactory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFactory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9429); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")" ); do { MOZ_CrashSequence(__null, 9429); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9430 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9430); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")" ); do { MOZ_CrashSequence(__null, 9430); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9431 | MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9431); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { MOZ_CrashSequence(__null, 9431); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9432 | |||||
| 9433 | MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9433) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 9433); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9434 | MOZ_ASSERT(mDirectoryLockHandle->Id() >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLockHandle->Id() >= 0)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mDirectoryLockHandle->Id() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle->Id() >= 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9434) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle->Id() >= 0" ")"); do { MOZ_CrashSequence(__null, 9434); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9435 | mDirectoryLockId = mDirectoryLockHandle->Id(); | ||||
| 9436 | } | ||||
| 9437 | |||||
| 9438 | template <typename T> | ||||
| 9439 | bool Database::InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable) { | ||||
| 9440 | AssertIsOnBackgroundThread(); | ||||
| 9441 | |||||
| 9442 | const uint32_t count = aTable.Count(); | ||||
| 9443 | if (!count) { | ||||
| 9444 | return true; | ||||
| 9445 | } | ||||
| 9446 | |||||
| 9447 | // XXX Does this really need to be fallible? | ||||
| 9448 | QM_TRY_INSPECT(const auto& elementsToInvalidate,auto tryResult997 = (TransformIntoNewArray( aTable, [](const auto & entry) { return entry; }, fallible)); if ((__builtin_expect (!!(tryResult997.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult997.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9451, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, false); } const auto& elementsToInvalidate = tryResult997.inspect(); | ||||
| 9449 | TransformIntoNewArray(auto tryResult997 = (TransformIntoNewArray( aTable, [](const auto & entry) { return entry; }, fallible)); if ((__builtin_expect (!!(tryResult997.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult997.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9451, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, false); } const auto& elementsToInvalidate = tryResult997.inspect(); | ||||
| 9450 | aTable, [](const auto& entry) { return entry; }, fallible),auto tryResult997 = (TransformIntoNewArray( aTable, [](const auto & entry) { return entry; }, fallible)); if ((__builtin_expect (!!(tryResult997.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult997.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9451, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, false); } const auto& elementsToInvalidate = tryResult997.inspect(); | ||||
| 9451 | false)auto tryResult997 = (TransformIntoNewArray( aTable, [](const auto & entry) { return entry; }, fallible)); if ((__builtin_expect (!!(tryResult997.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult997.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9451, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, false); } const auto& elementsToInvalidate = tryResult997.inspect();; | ||||
| 9452 | |||||
| 9453 | for (const auto& elementToInvalidate : elementsToInvalidate) { | ||||
| 9454 | MOZ_ASSERT(elementToInvalidate)do { static_assert( mozilla::detail::AssertionConditionType< decltype(elementToInvalidate)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(elementToInvalidate))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("elementToInvalidate" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9454) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "elementToInvalidate" ")"); do { MOZ_CrashSequence(__null, 9454); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9455 | |||||
| 9456 | elementToInvalidate->Invalidate(); | ||||
| 9457 | } | ||||
| 9458 | |||||
| 9459 | return true; | ||||
| 9460 | } | ||||
| 9461 | |||||
| 9462 | void Database::Invalidate() { | ||||
| 9463 | AssertIsOnBackgroundThread(); | ||||
| 9464 | |||||
| 9465 | if (mInvalidated) { | ||||
| 9466 | return; | ||||
| 9467 | } | ||||
| 9468 | |||||
| 9469 | mInvalidated.Flip(); | ||||
| 9470 | |||||
| 9471 | if (mActorWasAlive && !mActorDestroyed) { | ||||
| 9472 | (void)SendInvalidate(); | ||||
| 9473 | } | ||||
| 9474 | |||||
| 9475 | QM_WARNONLY_TRY(OkIf(InvalidateAll(mTransactions))){auto tryResult998 = (OkIf(InvalidateAll(mTransactions))); static_assert (std::is_empty_v<typename decltype(tryResult998)::ok_type> ); if ((__builtin_expect(!!(tryResult998.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(InvalidateAll(mTransactions))" , tryResult998.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9475, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 9476 | |||||
| 9477 | MOZ_ALWAYS_TRUE(CloseInternal())do { if ((__builtin_expect(!!(CloseInternal()), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "CloseInternal()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9477) ; AnnotateMozCrashReason("MOZ_CRASH(" "CloseInternal()" ")"); do { MOZ_CrashSequence(__null, 9477); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9478 | } | ||||
| 9479 | |||||
| 9480 | nsresult Database::EnsureConnection() { | ||||
| 9481 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9481) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 9481); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9482 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9482) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 9482); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9483 | |||||
| 9484 | AUTO_PROFILER_LABEL("Database::EnsureConnection", DOM)mozilla::AutoProfilerLabel raiiObject9484( "Database::EnsureConnection" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 9485 | |||||
| 9486 | if (!mConnection || !mConnection->HasStorageConnection()) { | ||||
| 9487 | QM_TRY_UNWRAP(mConnection, gConnectionPool->GetOrCreateConnection(*this))auto tryResult999 = (gConnectionPool->GetOrCreateConnection (*this)); if ((__builtin_expect(!!(tryResult999.isErr()), 0)) ) { mozilla::dom::quota::HandleError("gConnectionPool->GetOrCreateConnection(*this)" , tryResult999.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9487, mozilla::dom::quota::Severity::Error); return tryResult999 .propagateErr(); } mConnection = tryResult999.unwrap();; | ||||
| 9488 | } | ||||
| 9489 | |||||
| 9490 | AssertIsOnConnectionThread(); | ||||
| 9491 | |||||
| 9492 | return NS_OK; | ||||
| 9493 | } | ||||
| 9494 | |||||
| 9495 | bool Database::RegisterTransaction(TransactionBase& aTransaction) { | ||||
| 9496 | AssertIsOnBackgroundThread(); | ||||
| 9497 | MOZ_ASSERT(!mTransactions.Contains(&aTransaction))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Contains(&aTransaction))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mTransactions.Contains(&aTransaction)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Contains(&aTransaction)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9497) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(&aTransaction)" ")"); do { MOZ_CrashSequence(__null, 9497); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9498 | MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9498) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 9498); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9499 | MOZ_ASSERT(!mInvalidated)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInvalidated)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInvalidated))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInvalidated", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9499); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInvalidated" ")") ; do { MOZ_CrashSequence(__null, 9499); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9500 | MOZ_ASSERT(!mClosed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mClosed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mClosed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9500); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")" ); do { MOZ_CrashSequence(__null, 9500); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9501 | |||||
| 9502 | if (NS_WARN_IF(!mTransactions.Insert(&aTransaction, fallible))NS_warn_if_impl(!mTransactions.Insert(&aTransaction, fallible ), "!mTransactions.Insert(&aTransaction, fallible)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9502)) { | ||||
| 9503 | return false; | ||||
| 9504 | } | ||||
| 9505 | |||||
| 9506 | return true; | ||||
| 9507 | } | ||||
| 9508 | |||||
| 9509 | void Database::UnregisterTransaction(TransactionBase& aTransaction) { | ||||
| 9510 | AssertIsOnBackgroundThread(); | ||||
| 9511 | MOZ_ASSERT(mTransactions.Contains(&aTransaction))do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransactions.Contains(&aTransaction))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mTransactions.Contains(&aTransaction)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransactions.Contains(&aTransaction)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9511) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransactions.Contains(&aTransaction)" ")"); do { MOZ_CrashSequence(__null, 9511); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9512 | |||||
| 9513 | mTransactions.Remove(&aTransaction); | ||||
| 9514 | |||||
| 9515 | MaybeCloseConnection(); | ||||
| 9516 | } | ||||
| 9517 | |||||
| 9518 | void Database::SetActorAlive() { | ||||
| 9519 | AssertIsOnBackgroundThread(); | ||||
| 9520 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9520) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 9520); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9521 | |||||
| 9522 | mActorWasAlive.Flip(); | ||||
| 9523 | } | ||||
| 9524 | |||||
| 9525 | void Database::MapBlob(const IPCBlob& aIPCBlob, | ||||
| 9526 | SafeRefPtr<DatabaseFileInfo> aFileInfo) { | ||||
| 9527 | AssertIsOnBackgroundThread(); | ||||
| 9528 | |||||
| 9529 | const RemoteLazyStream& stream = aIPCBlob.inputStream(); | ||||
| 9530 | MOZ_ASSERT(stream.type() == RemoteLazyStream::TRemoteLazyInputStream)do { static_assert( mozilla::detail::AssertionConditionType< decltype(stream.type() == RemoteLazyStream::TRemoteLazyInputStream )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(stream.type() == RemoteLazyStream::TRemoteLazyInputStream ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "stream.type() == RemoteLazyStream::TRemoteLazyInputStream", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9530); AnnotateMozCrashReason("MOZ_ASSERT" "(" "stream.type() == RemoteLazyStream::TRemoteLazyInputStream" ")"); do { MOZ_CrashSequence(__null, 9530); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9531 | |||||
| 9532 | nsID id{}; | ||||
| 9533 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stream.get_RemoteLazyInputStream()->GetInternalStreamID(id ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9534) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))" ")"); do { MOZ_CrashSequence(__null, 9534); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 9534 | stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stream.get_RemoteLazyInputStream()->GetInternalStreamID(id ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9534) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))" ")"); do { MOZ_CrashSequence(__null, 9534); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9535 | |||||
| 9536 | MOZ_ASSERT(!mMappedBlobs.Contains(id))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mMappedBlobs.Contains(id))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mMappedBlobs.Contains(id))) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mMappedBlobs.Contains(id)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9536) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMappedBlobs.Contains(id)" ")"); do { MOZ_CrashSequence(__null, 9536); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9537 | mMappedBlobs.InsertOrUpdate(id, std::move(aFileInfo)); | ||||
| 9538 | |||||
| 9539 | RefPtr<UnmapBlobCallback> callback = | ||||
| 9540 | new UnmapBlobCallback(SafeRefPtrFromThis()); | ||||
| 9541 | |||||
| 9542 | auto storage = RemoteLazyInputStreamStorage::Get(); | ||||
| 9543 | MOZ_ASSERT(storage.isOk())do { static_assert( mozilla::detail::AssertionConditionType< decltype(storage.isOk())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(storage.isOk()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("storage.isOk()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9543) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "storage.isOk()" ")" ); do { MOZ_CrashSequence(__null, 9543); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9544 | storage.inspect()->StoreCallback(id, callback); | ||||
| 9545 | } | ||||
| 9546 | |||||
| 9547 | void Database::Stringify(nsACString& aResult) const { | ||||
| 9548 | AssertIsOnBackgroundThread(); | ||||
| 9549 | |||||
| 9550 | constexpr auto kQuotaGenericDelimiterString = "|"_ns; | ||||
| 9551 | |||||
| 9552 | aResult.Append( | ||||
| 9553 | "DirectoryLock:"_ns + IntToCString(!!mDirectoryLockHandle) + | ||||
| 9554 | kQuotaGenericDelimiterString + | ||||
| 9555 | // | ||||
| 9556 | "Transactions:"_ns + IntToCString(mTransactions.Count()) + | ||||
| 9557 | kQuotaGenericDelimiterString + | ||||
| 9558 | // | ||||
| 9559 | "OtherProcessActor:"_ns + | ||||
| 9560 | IntToCString( | ||||
| 9561 | BackgroundParent::IsOtherProcessActor(GetBackgroundParent())) + | ||||
| 9562 | kQuotaGenericDelimiterString + | ||||
| 9563 | // | ||||
| 9564 | "Origin:"_ns + AnonymizedOriginString(mOriginMetadata.mOrigin) + | ||||
| 9565 | kQuotaGenericDelimiterString + | ||||
| 9566 | // | ||||
| 9567 | "PersistenceType:"_ns + PersistenceTypeToString(mPersistenceType) + | ||||
| 9568 | kQuotaGenericDelimiterString + | ||||
| 9569 | // | ||||
| 9570 | "Closed:"_ns + IntToCString(static_cast<bool>(mClosed)) + | ||||
| 9571 | kQuotaGenericDelimiterString + | ||||
| 9572 | // | ||||
| 9573 | "Invalidated:"_ns + IntToCString(static_cast<bool>(mInvalidated)) + | ||||
| 9574 | kQuotaGenericDelimiterString + | ||||
| 9575 | // | ||||
| 9576 | "ActorWasAlive:"_ns + IntToCString(static_cast<bool>(mActorWasAlive)) + | ||||
| 9577 | kQuotaGenericDelimiterString + | ||||
| 9578 | // | ||||
| 9579 | "ActorDestroyed:"_ns + IntToCString(static_cast<bool>(mActorDestroyed))); | ||||
| 9580 | } | ||||
| 9581 | |||||
| 9582 | SafeRefPtr<DatabaseFileInfo> Database::GetBlob(const IPCBlob& aIPCBlob) { | ||||
| 9583 | AssertIsOnBackgroundThread(); | ||||
| 9584 | |||||
| 9585 | RefPtr<RemoteLazyInputStream> lazyStream; | ||||
| 9586 | switch (aIPCBlob.inputStream().type()) { | ||||
| 9587 | case RemoteLazyStream::TIPCStream: { | ||||
| 9588 | const InputStreamParams& inputStreamParams = | ||||
| 9589 | aIPCBlob.inputStream().get_IPCStream().stream(); | ||||
| 9590 | if (inputStreamParams.type() != | ||||
| 9591 | InputStreamParams::TRemoteLazyInputStreamParams) { | ||||
| 9592 | return nullptr; | ||||
| 9593 | } | ||||
| 9594 | lazyStream = inputStreamParams.get_RemoteLazyInputStreamParams().stream(); | ||||
| 9595 | break; | ||||
| 9596 | } | ||||
| 9597 | case RemoteLazyStream::TRemoteLazyInputStream: | ||||
| 9598 | lazyStream = aIPCBlob.inputStream().get_RemoteLazyInputStream(); | ||||
| 9599 | break; | ||||
| 9600 | default: | ||||
| 9601 | MOZ_ASSERT_UNREACHABLE("Unknown RemoteLazyStream type")do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: " "Unknown RemoteLazyStream type" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: " "Unknown RemoteLazyStream type" ")" ); do { MOZ_CrashSequence(__null, 9601); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9602 | return nullptr; | ||||
| 9603 | } | ||||
| 9604 | |||||
| 9605 | if (!lazyStream) { | ||||
| 9606 | MOZ_ASSERT_UNREACHABLE("Unexpected null stream")do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: " "Unexpected null stream" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9606); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: " "Unexpected null stream" ")"); do { MOZ_CrashSequence(__null, 9606); __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | ||||
| 9607 | return nullptr; | ||||
| 9608 | } | ||||
| 9609 | |||||
| 9610 | nsID id{}; | ||||
| 9611 | nsresult rv = lazyStream->GetInternalStreamID(id); | ||||
| 9612 | if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { | ||||
| 9613 | MOZ_ASSERT_UNREACHABLE(do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9614 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection" ")"); do { MOZ_CrashSequence(__null, 9614); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9614 | "Received RemoteLazyInputStream doesn't have an actor connection")do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9614 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection" ")"); do { MOZ_CrashSequence(__null, 9614); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9615 | return nullptr; | ||||
| 9616 | } | ||||
| 9617 | |||||
| 9618 | const auto fileInfo = mMappedBlobs.Lookup(id); | ||||
| 9619 | return fileInfo ? fileInfo->clonePtr() : nullptr; | ||||
| 9620 | } | ||||
| 9621 | |||||
| 9622 | void Database::UnmapBlob(const nsID& aID) { | ||||
| 9623 | AssertIsOnBackgroundThread(); | ||||
| 9624 | |||||
| 9625 | MOZ_ASSERT_IF(!mAllBlobsUnmapped, mMappedBlobs.Contains(aID))do { if (!mAllBlobsUnmapped) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(mMappedBlobs.Contains(aID ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mMappedBlobs.Contains(aID)))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("mMappedBlobs.Contains(aID)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9625) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMappedBlobs.Contains(aID)" ")"); do { MOZ_CrashSequence(__null, 9625); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 9626 | mMappedBlobs.Remove(aID); | ||||
| 9627 | } | ||||
| 9628 | |||||
| 9629 | void Database::UnmapAllBlobs() { | ||||
| 9630 | AssertIsOnBackgroundThread(); | ||||
| 9631 | |||||
| 9632 | #ifdef DEBUG1 | ||||
| 9633 | mAllBlobsUnmapped = true; | ||||
| 9634 | #endif | ||||
| 9635 | |||||
| 9636 | mMappedBlobs.Clear(); | ||||
| 9637 | } | ||||
| 9638 | |||||
| 9639 | bool Database::CloseInternal() { | ||||
| 9640 | AssertIsOnBackgroundThread(); | ||||
| 9641 | |||||
| 9642 | if (mClosed) { | ||||
| 9643 | if (NS_WARN_IF(!IsInvalidated())NS_warn_if_impl(!IsInvalidated(), "!IsInvalidated()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9643)) { | ||||
| 9644 | // Signal misbehaving child for sending the close message twice. | ||||
| 9645 | return false; | ||||
| 9646 | } | ||||
| 9647 | |||||
| 9648 | // Ignore harmless race when we just invalidated the database. | ||||
| 9649 | return true; | ||||
| 9650 | } | ||||
| 9651 | |||||
| 9652 | mClosed.Flip(); | ||||
| 9653 | |||||
| 9654 | if (gConnectionPool) { | ||||
| 9655 | gConnectionPool->CloseDatabaseWhenIdle(Id()); | ||||
| 9656 | } | ||||
| 9657 | |||||
| 9658 | DatabaseActorInfo* info; | ||||
| 9659 | MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get( Id(), &info)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(Id(), &info)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9659) ; AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)" ")"); do { MOZ_CrashSequence(__null, 9659); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9660 | |||||
| 9661 | MOZ_ASSERT(info->mLiveDatabases.contains(this))do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mLiveDatabases.contains(this))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(info->mLiveDatabases.contains(this)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("info->mLiveDatabases.contains(this)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9661) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(this)" ")"); do { MOZ_CrashSequence(__null, 9661); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9662 | |||||
| 9663 | if (info->mWaitingFactoryOp) { | ||||
| 9664 | info->mWaitingFactoryOp->NoteDatabaseClosed(this); | ||||
| 9665 | } | ||||
| 9666 | |||||
| 9667 | MaybeCloseConnection(); | ||||
| 9668 | |||||
| 9669 | return true; | ||||
| 9670 | } | ||||
| 9671 | |||||
| 9672 | void Database::MaybeCloseConnection() { | ||||
| 9673 | AssertIsOnBackgroundThread(); | ||||
| 9674 | |||||
| 9675 | if (!mTransactions.Count() && IsClosed() && mDirectoryLockHandle) { | ||||
| 9676 | nsCOMPtr<nsIRunnable> callback = | ||||
| 9677 | NewRunnableMethod("dom::indexedDB::Database::ConnectionClosedCallback", | ||||
| 9678 | this, &Database::ConnectionClosedCallback); | ||||
| 9679 | |||||
| 9680 | RefPtr<WaitForTransactionsHelper> helper = | ||||
| 9681 | new WaitForTransactionsHelper(Id(), callback); | ||||
| 9682 | helper->WaitForTransactions(); | ||||
| 9683 | } | ||||
| 9684 | } | ||||
| 9685 | |||||
| 9686 | void Database::ConnectionClosedCallback() { | ||||
| 9687 | AssertIsOnBackgroundThread(); | ||||
| 9688 | MOZ_ASSERT(mClosed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mClosed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mClosed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")" ); do { MOZ_CrashSequence(__null, 9688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9689 | MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9689) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { MOZ_CrashSequence(__null, 9689); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9690 | |||||
| 9691 | { | ||||
| 9692 | auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle); | ||||
| 9693 | } | ||||
| 9694 | |||||
| 9695 | CleanupMetadata(); | ||||
| 9696 | |||||
| 9697 | UnmapAllBlobs(); | ||||
| 9698 | |||||
| 9699 | if (IsInvalidated() && IsActorAlive()) { | ||||
| 9700 | // Step 3 and 4 of "5.2 Closing a Database": | ||||
| 9701 | // 1. Wait for all transactions to complete. | ||||
| 9702 | // 2. Fire a close event if forced flag is set, i.e., IsInvalidated() in our | ||||
| 9703 | // implementation. | ||||
| 9704 | (void)SendCloseAfterInvalidationComplete(); | ||||
| 9705 | } | ||||
| 9706 | } | ||||
| 9707 | |||||
| 9708 | void Database::CleanupMetadata() { | ||||
| 9709 | AssertIsOnBackgroundThread(); | ||||
| 9710 | |||||
| 9711 | DatabaseActorInfo* info; | ||||
| 9712 | MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get( Id(), &info)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(Id(), &info)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9712) ; AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)" ")"); do { MOZ_CrashSequence(__null, 9712); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9713 | removeFrom(info->mLiveDatabases); | ||||
| 9714 | |||||
| 9715 | QuotaManager::MaybeRecordQuotaClientShutdownStep( | ||||
| 9716 | quota::Client::IDB, "Live database entry removed"_ns); | ||||
| 9717 | |||||
| 9718 | if (info->mLiveDatabases.isEmpty()) { | ||||
| 9719 | MOZ_ASSERT(!info->mWaitingFactoryOp ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mWaitingFactoryOp || !info->mWaitingFactoryOp ->HasBlockedDatabases())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9720) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()" ")"); do { MOZ_CrashSequence(__null, 9720); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9720 | !info->mWaitingFactoryOp->HasBlockedDatabases())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mWaitingFactoryOp || !info->mWaitingFactoryOp ->HasBlockedDatabases())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9720) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()" ")"); do { MOZ_CrashSequence(__null, 9720); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9721 | gLiveDatabaseHashtable->Remove(Id()); | ||||
| 9722 | |||||
| 9723 | QuotaManager::MaybeRecordQuotaClientShutdownStep( | ||||
| 9724 | quota::Client::IDB, "gLiveDatabaseHashtable entry removed"_ns); | ||||
| 9725 | } | ||||
| 9726 | |||||
| 9727 | // Match the IncreaseBusyCount in OpenDatabaseOp::EnsureDatabaseActor(). | ||||
| 9728 | DecreaseBusyCount(); | ||||
| 9729 | } | ||||
| 9730 | |||||
| 9731 | void Database::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 9732 | AssertIsOnBackgroundThread(); | ||||
| 9733 | |||||
| 9734 | mActorDestroyed.Flip(); | ||||
| 9735 | |||||
| 9736 | if (!IsInvalidated()) { | ||||
| 9737 | Invalidate(); | ||||
| 9738 | } | ||||
| 9739 | } | ||||
| 9740 | |||||
| 9741 | PBackgroundIDBDatabaseFileParent* | ||||
| 9742 | Database::AllocPBackgroundIDBDatabaseFileParent(const IPCBlob& aIPCBlob) { | ||||
| 9743 | AssertIsOnBackgroundThread(); | ||||
| 9744 | |||||
| 9745 | SafeRefPtr<DatabaseFileInfo> fileInfo = GetBlob(aIPCBlob); | ||||
| 9746 | RefPtr<DatabaseFile> actor; | ||||
| 9747 | |||||
| 9748 | if (fileInfo) { | ||||
| 9749 | actor = new DatabaseFile(std::move(fileInfo)); | ||||
| 9750 | } else { | ||||
| 9751 | // This is a blob we haven't seen before. | ||||
| 9752 | fileInfo = mFileManager->CreateFileInfo(); | ||||
| 9753 | if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9753)) { | ||||
| 9754 | return nullptr; | ||||
| 9755 | } | ||||
| 9756 | |||||
| 9757 | actor = new DatabaseFile(IPCBlobUtils::Deserialize(aIPCBlob), | ||||
| 9758 | std::move(fileInfo)); | ||||
| 9759 | } | ||||
| 9760 | |||||
| 9761 | MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(actor)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9761); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")") ; do { MOZ_CrashSequence(__null, 9761); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9762 | |||||
| 9763 | return actor.forget().take(); | ||||
| 9764 | } | ||||
| 9765 | |||||
| 9766 | bool Database::DeallocPBackgroundIDBDatabaseFileParent( | ||||
| 9767 | PBackgroundIDBDatabaseFileParent* aActor) { | ||||
| 9768 | AssertIsOnBackgroundThread(); | ||||
| 9769 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9769); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 9769); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9770 | |||||
| 9771 | RefPtr<DatabaseFile> actor = dont_AddRef(static_cast<DatabaseFile*>(aActor)); | ||||
| 9772 | return true; | ||||
| 9773 | } | ||||
| 9774 | |||||
| 9775 | already_AddRefed<PBackgroundIDBTransactionParent> | ||||
| 9776 | Database::AllocPBackgroundIDBTransactionParent( | ||||
| 9777 | const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode, | ||||
| 9778 | const Durability& aDurability) { | ||||
| 9779 | AssertIsOnBackgroundThread(); | ||||
| 9780 | |||||
| 9781 | // Once a database is closed it must not try to open new transactions. | ||||
| 9782 | if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9782)) { | ||||
| 9783 | MOZ_ASSERT_UNLESS_FUZZING(mInvalidated)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInvalidated)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInvalidated))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInvalidated", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9783); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated" ")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9784 | return nullptr; | ||||
| 9785 | } | ||||
| 9786 | |||||
| 9787 | if (NS_AUUF_OR_WARN_IF(aObjectStoreNames.IsEmpty())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aObjectStoreNames.IsEmpty()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9787); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aObjectStoreNames.IsEmpty()" ")"); do { MOZ_CrashSequence(__null , 9787); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aObjectStoreNames.IsEmpty ()))) { | ||||
| 9788 | return nullptr; | ||||
| 9789 | } | ||||
| 9790 | |||||
| 9791 | if (NS_AUUF_OR_WARN_IF(aMode != IDBTransaction::Mode::ReadOnly &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9794 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9794); __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)) | ||||
| 9792 | aMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9794 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9794); __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)) | ||||
| 9793 | aMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9794 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9794); __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)) | ||||
| 9794 | aMode != IDBTransaction::Mode::Cleanup)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9794 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9794); __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))) { | ||||
| 9795 | return nullptr; | ||||
| 9796 | } | ||||
| 9797 | |||||
| 9798 | if (NS_AUUF_OR_WARN_IF(aDurability != IDBTransaction::Durability::Default &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9800 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")"); do { MOZ_CrashSequence(__null, 9800); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed)) | ||||
| 9799 | aDurability != IDBTransaction::Durability::Strict &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9800 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")"); do { MOZ_CrashSequence(__null, 9800); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed)) | ||||
| 9800 | aDurability != IDBTransaction::Durability::Relaxed)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9800 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")"); do { MOZ_CrashSequence(__null, 9800); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed))) { | ||||
| 9801 | return nullptr; | ||||
| 9802 | } | ||||
| 9803 | |||||
| 9804 | const ObjectStoreTable& objectStores = mMetadata->mObjectStores; | ||||
| 9805 | const uint32_t nameCount = aObjectStoreNames.Length(); | ||||
| 9806 | |||||
| 9807 | if (NS_AUUF_OR_WARN_IF(nameCount > objectStores.Count())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "nameCount > objectStores.Count()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9807); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "nameCount > objectStores.Count()" ")"); do { MOZ_CrashSequence (__null, 9807); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((nameCount > objectStores .Count()))) { | ||||
| 9808 | return nullptr; | ||||
| 9809 | } | ||||
| 9810 | |||||
| 9811 | QM_TRY_UNWRAP(auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9812 | auto objectStoreMetadatas,auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9813 | TransformIntoNewArrayAbortOnErr(auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9814 | aObjectStoreNames,auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9815 | [lastName = Maybe<const nsString&>{},auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9816 | &objectStores](const nsString& name) mutableauto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9817 | -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>,auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9818 | nsresult> {auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9819 | if (lastName) {auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9820 | // Make sure that this name is sorted properly and not aauto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9821 | // duplicate.auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9822 | if (NS_AUUF_OR_WARN_IF(name <= lastName.ref())) {auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9823 | return Err(NS_ERROR_FAILURE);auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9824 | }auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9825 | }auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9826 | lastName = SomeRef(name);auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9827 | |||||
| 9828 | const auto foundIt =auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9829 | std::find_if(objectStores.cbegin(), objectStores.cend(),auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9830 | [&name](const auto& entry) {auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9831 | const auto& value = entry.GetData();auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9832 | MOZ_ASSERT(entry.GetKey());auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9833 | return name == value->mCommonMetadata.name() &&auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9834 | !value->mDeleted;auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9835 | });auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9836 | if (foundIt == objectStores.cend()) {auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9837 | MOZ_ASSERT_UNLESS_FUZZING(false, "ObjectStore not found.");auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9838 | return Err(NS_ERROR_FAILURE);auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9839 | }auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9840 | |||||
| 9841 | return foundIt->GetData().clonePtr();auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9842 | },auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9843 | fallible),auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap(); | ||||
| 9844 | nullptr)auto tryResult1000 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1000.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9822); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9822); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9832); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9832); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9837); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9837); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1000 .unwrap();; | ||||
| 9845 | |||||
| 9846 | return MakeSafeRefPtr<NormalTransaction>(SafeRefPtrFromThis(), aMode, | ||||
| 9847 | aDurability, | ||||
| 9848 | std::move(objectStoreMetadatas)) | ||||
| 9849 | .forget(); | ||||
| 9850 | } | ||||
| 9851 | |||||
| 9852 | mozilla::ipc::IPCResult Database::RecvPBackgroundIDBTransactionConstructor( | ||||
| 9853 | PBackgroundIDBTransactionParent* aActor, | ||||
| 9854 | nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode, | ||||
| 9855 | const Durability& aDurability) { | ||||
| 9856 | AssertIsOnBackgroundThread(); | ||||
| 9857 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 9857); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9858 | MOZ_ASSERT(!aObjectStoreNames.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aObjectStoreNames.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aObjectStoreNames.IsEmpty() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!aObjectStoreNames.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9858); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreNames.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 9858); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9859 | MOZ_ASSERT(aMode == IDBTransaction::Mode::ReadOnly ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction ::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode ::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction ::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9862) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9862); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9860 | aMode == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction ::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode ::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction ::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9862) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9862); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9861 | aMode == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction ::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode ::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction ::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9862) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9862); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9862 | aMode == IDBTransaction::Mode::Cleanup)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction ::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode ::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction ::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9862) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9862); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9863 | MOZ_ASSERT(aDurability == IDBTransaction::Durability::Default ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDurability == IDBTransaction ::Durability::Default || aDurability == IDBTransaction::Durability ::Strict || aDurability == IDBTransaction::Durability::Relaxed ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9865) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" ")"); do { MOZ_CrashSequence(__null, 9865); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9864 | aDurability == IDBTransaction::Durability::Strict ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDurability == IDBTransaction ::Durability::Default || aDurability == IDBTransaction::Durability ::Strict || aDurability == IDBTransaction::Durability::Relaxed ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9865) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" ")"); do { MOZ_CrashSequence(__null, 9865); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9865 | aDurability == IDBTransaction::Durability::Relaxed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDurability == IDBTransaction ::Durability::Default || aDurability == IDBTransaction::Durability ::Strict || aDurability == IDBTransaction::Durability::Relaxed ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9865) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" ")"); do { MOZ_CrashSequence(__null, 9865); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9866 | MOZ_ASSERT(!mClosed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mClosed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mClosed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")" ); do { MOZ_CrashSequence(__null, 9866); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9867 | |||||
| 9868 | if (IsInvalidated()) { | ||||
| 9869 | // This is an expected race. We don't want the child to die here, just don't | ||||
| 9870 | // actually do any work. | ||||
| 9871 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9872 | } | ||||
| 9873 | |||||
| 9874 | if (!gConnectionPool) { | ||||
| 9875 | gConnectionPool = new ConnectionPool(); | ||||
| 9876 | } | ||||
| 9877 | |||||
| 9878 | auto* transaction = static_cast<NormalTransaction*>(aActor); | ||||
| 9879 | |||||
| 9880 | RefPtr<StartTransactionOp> startOp = new StartTransactionOp( | ||||
| 9881 | SafeRefPtr{transaction, AcquireStrongRefFromRawPtr{}}); | ||||
| 9882 | |||||
| 9883 | uint64_t transactionId = startOp->StartOnConnectionPool( | ||||
| 9884 | GetLoggingInfo()->Id(), mMetadata->mDatabaseId, | ||||
| 9885 | transaction->LoggingSerialNumber(), aObjectStoreNames, | ||||
| 9886 | aMode != IDBTransaction::Mode::ReadOnly); | ||||
| 9887 | |||||
| 9888 | transaction->Init(transactionId); | ||||
| 9889 | |||||
| 9890 | if (NS_WARN_IF(!RegisterTransaction(*transaction))NS_warn_if_impl(!RegisterTransaction(*transaction), "!RegisterTransaction(*transaction)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9890)) { | ||||
| 9891 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9891, idbInternalErrMsg.get()); } while (0); | ||||
| 9892 | transaction->Abort(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, /* aForce */ false); | ||||
| 9893 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9894 | } | ||||
| 9895 | |||||
| 9896 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9897 | } | ||||
| 9898 | |||||
| 9899 | mozilla::ipc::IPCResult Database::RecvDeleteMe() { | ||||
| 9900 | AssertIsOnBackgroundThread(); | ||||
| 9901 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9901) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 9901); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9902 | |||||
| 9903 | QM_WARNONLY_TRY(OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))){auto tryResult1001 = (OkIf(PBackgroundIDBDatabaseParent::Send__delete__ (this))); static_assert(std::is_empty_v<typename decltype( tryResult1001)::ok_type>); if ((__builtin_expect(!!(tryResult1001 .isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))" , tryResult1001.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9903, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 9904 | |||||
| 9905 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9906 | } | ||||
| 9907 | |||||
| 9908 | mozilla::ipc::IPCResult Database::RecvBlocked() { | ||||
| 9909 | AssertIsOnBackgroundThread(); | ||||
| 9910 | |||||
| 9911 | if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9911)) { | ||||
| 9912 | // Even though the sender checks the DB for not being closed, too, | ||||
| 9913 | // there is a potential race with an ongoing origin clearing which | ||||
| 9914 | // might have invalidated the DB in the meantime. Just ignore. | ||||
| 9915 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9916 | } | ||||
| 9917 | |||||
| 9918 | DatabaseActorInfo* info; | ||||
| 9919 | MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get( Id(), &info)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(Id(), &info)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9919) ; AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)" ")"); do { MOZ_CrashSequence(__null, 9919); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9920 | MOZ_ASSERT(info->mLiveDatabases.contains(this))do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mLiveDatabases.contains(this))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(info->mLiveDatabases.contains(this)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("info->mLiveDatabases.contains(this)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9920) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(this)" ")"); do { MOZ_CrashSequence(__null, 9920); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9921 | |||||
| 9922 | if (NS_WARN_IF(!info->mWaitingFactoryOp)NS_warn_if_impl(!info->mWaitingFactoryOp, "!info->mWaitingFactoryOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9922)) { | ||||
| 9923 | return IPC_FAIL(this, "Database info has no mWaitingFactoryOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Database info has no mWaitingFactoryOp!" )); | ||||
| 9924 | } | ||||
| 9925 | |||||
| 9926 | info->mWaitingFactoryOp->NoteDatabaseBlocked(this); | ||||
| 9927 | |||||
| 9928 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9929 | } | ||||
| 9930 | |||||
| 9931 | mozilla::ipc::IPCResult Database::RecvClose() { | ||||
| 9932 | AssertIsOnBackgroundThread(); | ||||
| 9933 | |||||
| 9934 | if (NS_WARN_IF(!CloseInternal())NS_warn_if_impl(!CloseInternal(), "!CloseInternal()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9934)) { | ||||
| 9935 | return IPC_FAIL(this, "CloseInternal failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("CloseInternal failed!" )); | ||||
| 9936 | } | ||||
| 9937 | |||||
| 9938 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9939 | } | ||||
| 9940 | |||||
| 9941 | void Database::StartTransactionOp::RunOnConnectionThread() { | ||||
| 9942 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9942) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 9942); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9943 | MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9943); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { MOZ_CrashSequence(__null, 9943); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9944 | |||||
| 9945 | 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) | ||||
| 9946 | 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) | ||||
| 9947 | 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); | ||||
| 9948 | |||||
| 9949 | TransactionDatabaseOperationBase::RunOnConnectionThread(); | ||||
| 9950 | } | ||||
| 9951 | |||||
| 9952 | nsresult Database::StartTransactionOp::DoDatabaseWork( | ||||
| 9953 | DatabaseConnection* aConnection) { | ||||
| 9954 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9954); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 9954); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9955 | aConnection->AssertIsOnConnectionThread(); | ||||
| 9956 | |||||
| 9957 | Transaction().SetActiveOnConnectionThread(); | ||||
| 9958 | |||||
| 9959 | if (Transaction().GetMode() == IDBTransaction::Mode::Cleanup) { | ||||
| 9960 | DebugOnly<nsresult> rv = aConnection->DisableQuotaChecks(); | ||||
| 9961 | NS_WARNING_ASSERTION(NS_SUCCEEDED(rv),do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1 ))))) { NS_DebugBreak(NS_DEBUG_WARNING, "DisableQuotaChecks failed, trying to continue " "cleanup transaction with quota checks enabled", "NS_SUCCEEDED(rv)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9963) ; } } while (false) | ||||
| 9962 | "DisableQuotaChecks failed, trying to continue "do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1 ))))) { NS_DebugBreak(NS_DEBUG_WARNING, "DisableQuotaChecks failed, trying to continue " "cleanup transaction with quota checks enabled", "NS_SUCCEEDED(rv)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9963) ; } } while (false) | ||||
| 9963 | "cleanup transaction with quota checks enabled")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1 ))))) { NS_DebugBreak(NS_DEBUG_WARNING, "DisableQuotaChecks failed, trying to continue " "cleanup transaction with quota checks enabled", "NS_SUCCEEDED(rv)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9963) ; } } while (false); | ||||
| 9964 | } | ||||
| 9965 | |||||
| 9966 | if (Transaction().GetMode() != IDBTransaction::Mode::ReadOnly) { | ||||
| 9967 | QM_TRY(MOZ_TO_RESULT({auto tryResult1002 = (ToResult(aConnection->BeginWriteTransaction (Transaction().GetDurability()))); static_assert(std::is_empty_v <typename decltype(tryResult1002)::ok_type>); if ((__builtin_expect (!!(tryResult1002.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))" , tryResult1002.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9968, mozilla::dom::quota::Severity::Error); return tryResult1002 .propagateErr(); }} | ||||
| 9968 | aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult1002 = (ToResult(aConnection->BeginWriteTransaction (Transaction().GetDurability()))); static_assert(std::is_empty_v <typename decltype(tryResult1002)::ok_type>); if ((__builtin_expect (!!(tryResult1002.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))" , tryResult1002.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9968, mozilla::dom::quota::Severity::Error); return tryResult1002 .propagateErr(); }}; | ||||
| 9969 | } | ||||
| 9970 | |||||
| 9971 | return NS_OK; | ||||
| 9972 | } | ||||
| 9973 | |||||
| 9974 | TransactionOpResult Database::StartTransactionOp::SendSuccessResult() { | ||||
| 9975 | // We don't need to do anything here. | ||||
| 9976 | return NS_OK; | ||||
| 9977 | } | ||||
| 9978 | |||||
| 9979 | bool Database::StartTransactionOp::SendFailureResult( | ||||
| 9980 | const TransactionOpResult& /* aResult */) { | ||||
| 9981 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9981, idbInternalErrMsg.get()); } while (0); | ||||
| 9982 | |||||
| 9983 | // Abort the transaction. | ||||
| 9984 | return false; | ||||
| 9985 | } | ||||
| 9986 | |||||
| 9987 | void Database::StartTransactionOp::Cleanup() { | ||||
| 9988 | #ifdef DEBUG1 | ||||
| 9989 | // StartTransactionOp is not a normal database operation that is tied to an | ||||
| 9990 | // actor. Do this to make our assertions happy. | ||||
| 9991 | NoteActorDestroyed(); | ||||
| 9992 | #endif | ||||
| 9993 | |||||
| 9994 | TransactionDatabaseOperationBase::Cleanup(); | ||||
| 9995 | } | ||||
| 9996 | |||||
| 9997 | /******************************************************************************* | ||||
| 9998 | * TransactionBase | ||||
| 9999 | ******************************************************************************/ | ||||
| 10000 | |||||
| 10001 | TransactionBase::TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode, | ||||
| 10002 | Durability aDurability) | ||||
| 10003 | : mDatabase(std::move(aDatabase)), | ||||
| 10004 | mDatabaseId(mDatabase->Id()), | ||||
| 10005 | mLoggingSerialNumber( | ||||
| 10006 | mDatabase->GetLoggingInfo()->NextTransactionSN(aMode)), | ||||
| 10007 | mActiveRequestCount(0), | ||||
| 10008 | mInvalidatedOnAnyThread(false), | ||||
| 10009 | mMode(aMode), | ||||
| 10010 | mDurability(aDurability), | ||||
| 10011 | mResultCode(NS_OK) { | ||||
| 10012 | AssertIsOnBackgroundThread(); | ||||
| 10013 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10013); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { MOZ_CrashSequence(__null, 10013); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10014 | MOZ_ASSERT(mLoggingSerialNumber)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLoggingSerialNumber)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLoggingSerialNumber))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mLoggingSerialNumber" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10014 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingSerialNumber" ")"); do { MOZ_CrashSequence(__null, 10014); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10015 | } | ||||
| 10016 | |||||
| 10017 | TransactionBase::~TransactionBase() { | ||||
| 10018 | MOZ_ASSERT(!mActiveRequestCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActiveRequestCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActiveRequestCount))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mActiveRequestCount" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10018 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActiveRequestCount" ")"); do { MOZ_CrashSequence(__null, 10018); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10019 | MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActorDestroyed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10019 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 10019); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10020 | MOZ_ASSERT_IF(mInitialized, mCommittedOrAborted)do { if (mInitialized) { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(mCommittedOrAborted)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mCommittedOrAborted))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCommittedOrAborted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10020); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCommittedOrAborted" ")"); do { MOZ_CrashSequence(__null, 10020); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 10021 | } | ||||
| 10022 | |||||
| 10023 | void TransactionBase::Abort(nsresult aResultCode, bool aForce) { | ||||
| 10024 | AssertIsOnBackgroundThread(); | ||||
| 10025 | MOZ_ASSERT(NS_FAILED(aResultCode))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode )), 0))))>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl (aResultCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10025 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))" ")"); do { MOZ_CrashSequence(__null, 10025); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10026 | |||||
| 10027 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 10028 | mResultCode = aResultCode; | ||||
| 10029 | } | ||||
| 10030 | |||||
| 10031 | if (aForce) { | ||||
| 10032 | mForceAborted.EnsureFlipped(); | ||||
| 10033 | } | ||||
| 10034 | |||||
| 10035 | MaybeCommitOrAbort(); | ||||
| 10036 | } | ||||
| 10037 | |||||
| 10038 | mozilla::ipc::IPCResult TransactionBase::RecvCommit( | ||||
| 10039 | IProtocol* aActor, const Maybe<int64_t> aLastRequest) { | ||||
| 10040 | AssertIsOnBackgroundThread(); | ||||
| 10041 | |||||
| 10042 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10042 )) { | ||||
| 10043 | return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "Attempt to commit an already comitted/aborted transaction!") ) | ||||
| 10044 | aActor, "Attempt to commit an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "Attempt to commit an already comitted/aborted transaction!") ); | ||||
| 10045 | } | ||||
| 10046 | |||||
| 10047 | mCommitOrAbortReceived.Flip(); | ||||
| 10048 | mLastRequestBeforeCommit.init(aLastRequest); | ||||
| 10049 | MaybeCommitOrAbort(); | ||||
| 10050 | |||||
| 10051 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 10052 | } | ||||
| 10053 | |||||
| 10054 | mozilla::ipc::IPCResult TransactionBase::RecvAbort(IProtocol* aActor, | ||||
| 10055 | nsresult aResultCode) { | ||||
| 10056 | AssertIsOnBackgroundThread(); | ||||
| 10057 | |||||
| 10058 | if (NS_WARN_IF(NS_SUCCEEDED(aResultCode))NS_warn_if_impl(((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResultCode )), 1))), "NS_SUCCEEDED(aResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10058)) { | ||||
| 10059 | 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!")); | ||||
| 10060 | } | ||||
| 10061 | |||||
| 10062 | if (NS_WARN_IF(NS_ERROR_GET_MODULE(aResultCode) !=NS_warn_if_impl(NS_ERROR_GET_MODULE(aResultCode) != 33, "NS_ERROR_GET_MODULE(aResultCode) != NS_ERROR_MODULE_DOM_INDEXEDDB" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10063 ) | ||||
| 10063 | NS_ERROR_MODULE_DOM_INDEXEDDB)NS_warn_if_impl(NS_ERROR_GET_MODULE(aResultCode) != 33, "NS_ERROR_GET_MODULE(aResultCode) != NS_ERROR_MODULE_DOM_INDEXEDDB" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10063 )) { | ||||
| 10064 | return IPC_FAIL(aActor, "aResultCode does not refer to IndexedDB!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "aResultCode does not refer to IndexedDB!")); | ||||
| 10065 | } | ||||
| 10066 | |||||
| 10067 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10067 )) { | ||||
| 10068 | return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "Attempt to abort an already comitted/aborted transaction!")) | ||||
| 10069 | aActor, "Attempt to abort an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "Attempt to abort an already comitted/aborted transaction!")); | ||||
| 10070 | } | ||||
| 10071 | |||||
| 10072 | mCommitOrAbortReceived.Flip(); | ||||
| 10073 | Abort(aResultCode, /* aForce */ false); | ||||
| 10074 | |||||
| 10075 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 10076 | } | ||||
| 10077 | |||||
| 10078 | void TransactionBase::CommitOrAbort() { | ||||
| 10079 | AssertIsOnBackgroundThread(); | ||||
| 10080 | |||||
| 10081 | mCommittedOrAborted.Flip(); | ||||
| 10082 | |||||
| 10083 | if (!mInitialized) { | ||||
| 10084 | return; | ||||
| 10085 | } | ||||
| 10086 | |||||
| 10087 | // In case of a failed request and explicitly committed transaction, abort | ||||
| 10088 | // (cf. https://w3c.github.io/IndexedDB/#async-execute-request step 5.3 | ||||
| 10089 | // vs. 5.4). It's worth emphasizing this can only happen here when we are | ||||
| 10090 | // committing explicitly, otherwise the decision is made by the child. | ||||
| 10091 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) )) && mLastFailedRequest && | ||||
| 10092 | *mLastRequestBeforeCommit && | ||||
| 10093 | *mLastFailedRequest == **mLastRequestBeforeCommit) { | ||||
| 10094 | mResultCode = NS_ERROR_DOM_INDEXEDDB_ABORT_ERR; | ||||
| 10095 | } | ||||
| 10096 | |||||
| 10097 | RefPtr<CommitOp> commitOp = | ||||
| 10098 | new CommitOp(SafeRefPtrFromThis(), ClampResultCode(mResultCode)); | ||||
| 10099 | |||||
| 10100 | gConnectionPool->Finish(TransactionId(), commitOp); | ||||
| 10101 | } | ||||
| 10102 | |||||
| 10103 | SafeRefPtr<FullObjectStoreMetadata> | ||||
| 10104 | TransactionBase::GetMetadataForObjectStoreId( | ||||
| 10105 | IndexOrObjectStoreId aObjectStoreId) const { | ||||
| 10106 | AssertIsOnBackgroundThread(); | ||||
| 10107 | MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10107 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 10107); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10108 | |||||
| 10109 | if (!aObjectStoreId) { | ||||
| 10110 | return nullptr; | ||||
| 10111 | } | ||||
| 10112 | |||||
| 10113 | auto metadata = mDatabase->Metadata().mObjectStores.Lookup(aObjectStoreId); | ||||
| 10114 | if (!metadata || (*metadata)->mDeleted) { | ||||
| 10115 | return nullptr; | ||||
| 10116 | } | ||||
| 10117 | |||||
| 10118 | MOZ_ASSERT((*metadata)->mCommonMetadata.id() == aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype((*metadata)->mCommonMetadata.id() == aObjectStoreId )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!((*metadata)->mCommonMetadata.id() == aObjectStoreId ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "(*metadata)->mCommonMetadata.id() == aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10118); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 10118); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10119 | |||||
| 10120 | return metadata->clonePtr(); | ||||
| 10121 | } | ||||
| 10122 | |||||
| 10123 | SafeRefPtr<FullIndexMetadata> TransactionBase::GetMetadataForIndexId( | ||||
| 10124 | FullObjectStoreMetadata& aObjectStoreMetadata, | ||||
| 10125 | IndexOrObjectStoreId aIndexId) const { | ||||
| 10126 | AssertIsOnBackgroundThread(); | ||||
| 10127 | MOZ_ASSERT(aIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aIndexId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aIndexId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10127); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")" ); do { MOZ_CrashSequence(__null, 10127); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10128 | |||||
| 10129 | if (!aIndexId) { | ||||
| 10130 | return nullptr; | ||||
| 10131 | } | ||||
| 10132 | |||||
| 10133 | auto metadata = aObjectStoreMetadata.mIndexes.Lookup(aIndexId); | ||||
| 10134 | if (!metadata || (*metadata)->mDeleted) { | ||||
| 10135 | return nullptr; | ||||
| 10136 | } | ||||
| 10137 | |||||
| 10138 | MOZ_ASSERT((*metadata)->mCommonMetadata.id() == aIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype((*metadata)->mCommonMetadata.id() == aIndexId)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!((*metadata)->mCommonMetadata.id() == aIndexId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("(*metadata)->mCommonMetadata.id() == aIndexId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10138 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aIndexId" ")"); do { MOZ_CrashSequence(__null, 10138); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10139 | |||||
| 10140 | return metadata->clonePtr(); | ||||
| 10141 | } | ||||
| 10142 | |||||
| 10143 | void TransactionBase::NoteModifiedAutoIncrementObjectStore( | ||||
| 10144 | const SafeRefPtr<FullObjectStoreMetadata>& aMetadata) { | ||||
| 10145 | AssertIsOnConnectionThread(); | ||||
| 10146 | |||||
| 10147 | if (!mModifiedAutoIncrementObjectStoreMetadataArray.Contains(aMetadata)) { | ||||
| 10148 | mModifiedAutoIncrementObjectStoreMetadataArray.AppendElement( | ||||
| 10149 | aMetadata.clonePtr()); | ||||
| 10150 | } | ||||
| 10151 | } | ||||
| 10152 | |||||
| 10153 | void TransactionBase::ForgetModifiedAutoIncrementObjectStore( | ||||
| 10154 | FullObjectStoreMetadata& aMetadata) { | ||||
| 10155 | AssertIsOnConnectionThread(); | ||||
| 10156 | |||||
| 10157 | mModifiedAutoIncrementObjectStoreMetadataArray.RemoveElement(&aMetadata); | ||||
| 10158 | } | ||||
| 10159 | |||||
| 10160 | bool TransactionBase::VerifyRequestParams(const RequestParams& aParams) const { | ||||
| 10161 | AssertIsOnBackgroundThread(); | ||||
| 10162 | MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != RequestParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != RequestParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10162 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10162); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10163 | |||||
| 10164 | switch (aParams.type()) { | ||||
| 10165 | case RequestParams::TObjectStoreAddParams: { | ||||
| 10166 | const ObjectStoreAddPutParams& params = | ||||
| 10167 | aParams.get_ObjectStoreAddParams().commonParams(); | ||||
| 10168 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10168); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params)" ")"); do { MOZ_CrashSequence( __null, 10168); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params)))) { | ||||
| 10169 | return false; | ||||
| 10170 | } | ||||
| 10171 | break; | ||||
| 10172 | } | ||||
| 10173 | |||||
| 10174 | case RequestParams::TObjectStorePutParams: { | ||||
| 10175 | const ObjectStoreAddPutParams& params = | ||||
| 10176 | aParams.get_ObjectStorePutParams().commonParams(); | ||||
| 10177 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10177); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params)" ")"); do { MOZ_CrashSequence( __null, 10177); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params)))) { | ||||
| 10178 | return false; | ||||
| 10179 | } | ||||
| 10180 | break; | ||||
| 10181 | } | ||||
| 10182 | |||||
| 10183 | case RequestParams::TObjectStoreGetParams: { | ||||
| 10184 | const ObjectStoreGetParams& params = aParams.get_ObjectStoreGetParams(); | ||||
| 10185 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10186 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10187 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10187); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10187 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10188 | return false; | ||||
| 10189 | } | ||||
| 10190 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10190); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence (__null, 10190); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | ||||
| 10191 | return false; | ||||
| 10192 | } | ||||
| 10193 | break; | ||||
| 10194 | } | ||||
| 10195 | |||||
| 10196 | case RequestParams::TObjectStoreGetKeyParams: { | ||||
| 10197 | const ObjectStoreGetKeyParams& params = | ||||
| 10198 | aParams.get_ObjectStoreGetKeyParams(); | ||||
| 10199 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10200 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10201 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10201); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10201 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10202 | return false; | ||||
| 10203 | } | ||||
| 10204 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10204); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence (__null, 10204); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | ||||
| 10205 | return false; | ||||
| 10206 | } | ||||
| 10207 | break; | ||||
| 10208 | } | ||||
| 10209 | |||||
| 10210 | case RequestParams::TObjectStoreGetAllParams: { | ||||
| 10211 | const ObjectStoreGetAllParams& params = | ||||
| 10212 | aParams.get_ObjectStoreGetAllParams(); | ||||
| 10213 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10214 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10215 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10215); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10215 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10216 | return false; | ||||
| 10217 | } | ||||
| 10218 | if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10219 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10219); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ()))) | ||||
| 10219 | !VerifyRequestParams(params.options().optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10219 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10219); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ())))) { | ||||
| 10220 | return false; | ||||
| 10221 | } | ||||
| 10222 | break; | ||||
| 10223 | } | ||||
| 10224 | |||||
| 10225 | case RequestParams::TObjectStoreGetAllKeysParams: { | ||||
| 10226 | const ObjectStoreGetAllKeysParams& params = | ||||
| 10227 | aParams.get_ObjectStoreGetAllKeysParams(); | ||||
| 10228 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10229 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10230 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10230 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10231 | return false; | ||||
| 10232 | } | ||||
| 10233 | if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10234 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10234); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ()))) | ||||
| 10234 | !VerifyRequestParams(params.options().optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10234 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10234); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ())))) { | ||||
| 10235 | return false; | ||||
| 10236 | } | ||||
| 10237 | break; | ||||
| 10238 | } | ||||
| 10239 | |||||
| 10240 | case RequestParams::TObjectStoreGetAllRecordsParams: { | ||||
| 10241 | const ObjectStoreGetAllRecordsParams& params = | ||||
| 10242 | aParams.get_ObjectStoreGetAllRecordsParams(); | ||||
| 10243 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10244 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10245 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10245); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10245 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10246 | return false; | ||||
| 10247 | } | ||||
| 10248 | if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10249 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10249); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ()))) | ||||
| 10249 | !VerifyRequestParams(params.options().optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10249 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10249); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ())))) { | ||||
| 10250 | return false; | ||||
| 10251 | } | ||||
| 10252 | break; | ||||
| 10253 | } | ||||
| 10254 | |||||
| 10255 | case RequestParams::TObjectStoreDeleteParams: { | ||||
| 10256 | if (NS_AUUF_OR_WARN_IF(mMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10259 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10259); __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)) | ||||
| 10257 | mMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10259 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10259); __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)) | ||||
| 10258 | mMode != IDBTransaction::Mode::Cleanup &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10259 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10259); __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)) | ||||
| 10259 | mMode != IDBTransaction::Mode::VersionChange)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10259 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10259); __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))) { | ||||
| 10260 | return false; | ||||
| 10261 | } | ||||
| 10262 | |||||
| 10263 | const ObjectStoreDeleteParams& params = | ||||
| 10264 | aParams.get_ObjectStoreDeleteParams(); | ||||
| 10265 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10266 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10267 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10267); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10267 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10268 | return false; | ||||
| 10269 | } | ||||
| 10270 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10270); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence (__null, 10270); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | ||||
| 10271 | return false; | ||||
| 10272 | } | ||||
| 10273 | break; | ||||
| 10274 | } | ||||
| 10275 | |||||
| 10276 | case RequestParams::TObjectStoreClearParams: { | ||||
| 10277 | if (NS_AUUF_OR_WARN_IF(mMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10280 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10280); __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)) | ||||
| 10278 | mMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10280 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10280); __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)) | ||||
| 10279 | mMode != IDBTransaction::Mode::Cleanup &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10280 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10280); __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)) | ||||
| 10280 | mMode != IDBTransaction::Mode::VersionChange)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10280 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10280); __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))) { | ||||
| 10281 | return false; | ||||
| 10282 | } | ||||
| 10283 | |||||
| 10284 | const ObjectStoreClearParams& params = | ||||
| 10285 | aParams.get_ObjectStoreClearParams(); | ||||
| 10286 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10287 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10288 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10288); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10288 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10289 | return false; | ||||
| 10290 | } | ||||
| 10291 | break; | ||||
| 10292 | } | ||||
| 10293 | |||||
| 10294 | case RequestParams::TObjectStoreCountParams: { | ||||
| 10295 | const ObjectStoreCountParams& params = | ||||
| 10296 | aParams.get_ObjectStoreCountParams(); | ||||
| 10297 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10298 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10299 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10299); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10299 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10300 | return false; | ||||
| 10301 | } | ||||
| 10302 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10302 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10302); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.optionalKeyRange())))) { | ||||
| 10303 | return false; | ||||
| 10304 | } | ||||
| 10305 | break; | ||||
| 10306 | } | ||||
| 10307 | |||||
| 10308 | case RequestParams::TIndexGetParams: { | ||||
| 10309 | const IndexGetParams& params = aParams.get_IndexGetParams(); | ||||
| 10310 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10311 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10312 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10312 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10313 | return false; | ||||
| 10314 | } | ||||
| 10315 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10316 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | ||||
| 10317 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10317); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10317) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10318 | return false; | ||||
| 10319 | } | ||||
| 10320 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence (__null, 10320); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | ||||
| 10321 | return false; | ||||
| 10322 | } | ||||
| 10323 | break; | ||||
| 10324 | } | ||||
| 10325 | |||||
| 10326 | case RequestParams::TIndexGetKeyParams: { | ||||
| 10327 | const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams(); | ||||
| 10328 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10329 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10330 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10330); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10330 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10331 | return false; | ||||
| 10332 | } | ||||
| 10333 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10334 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | ||||
| 10335 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10335); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10335) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10336 | return false; | ||||
| 10337 | } | ||||
| 10338 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10338); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence (__null, 10338); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | ||||
| 10339 | return false; | ||||
| 10340 | } | ||||
| 10341 | break; | ||||
| 10342 | } | ||||
| 10343 | |||||
| 10344 | case RequestParams::TIndexGetAllParams: { | ||||
| 10345 | const IndexGetAllParams& params = aParams.get_IndexGetAllParams(); | ||||
| 10346 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10347 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10348 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10348); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10348 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10349 | return false; | ||||
| 10350 | } | ||||
| 10351 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10352 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | ||||
| 10353 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10353) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10354 | return false; | ||||
| 10355 | } | ||||
| 10356 | if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10357 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10357); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ()))) | ||||
| 10357 | !VerifyRequestParams(params.options().optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10357 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10357); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ())))) { | ||||
| 10358 | return false; | ||||
| 10359 | } | ||||
| 10360 | break; | ||||
| 10361 | } | ||||
| 10362 | |||||
| 10363 | case RequestParams::TIndexGetAllKeysParams: { | ||||
| 10364 | const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams(); | ||||
| 10365 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10366 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10367 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10367); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10367 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10368 | return false; | ||||
| 10369 | } | ||||
| 10370 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10371 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | ||||
| 10372 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10372); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10372) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10373 | return false; | ||||
| 10374 | } | ||||
| 10375 | if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10376 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10376); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ()))) | ||||
| 10376 | !VerifyRequestParams(params.options().optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10376 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10376); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ())))) { | ||||
| 10377 | return false; | ||||
| 10378 | } | ||||
| 10379 | break; | ||||
| 10380 | } | ||||
| 10381 | |||||
| 10382 | case RequestParams::TIndexGetAllRecordsParams: { | ||||
| 10383 | const IndexGetAllRecordsParams& params = | ||||
| 10384 | aParams.get_IndexGetAllRecordsParams(); | ||||
| 10385 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10386 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10387 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10387); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10387 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10388 | return false; | ||||
| 10389 | } | ||||
| 10390 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10391 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | ||||
| 10392 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10392); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10392) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10393 | return false; | ||||
| 10394 | } | ||||
| 10395 | if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10396 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10396); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ()))) | ||||
| 10396 | !VerifyRequestParams(params.options().optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10396 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10396); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ())))) { | ||||
| 10397 | return false; | ||||
| 10398 | } | ||||
| 10399 | break; | ||||
| 10400 | } | ||||
| 10401 | |||||
| 10402 | case RequestParams::TIndexCountParams: { | ||||
| 10403 | const IndexCountParams& params = aParams.get_IndexCountParams(); | ||||
| 10404 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10405 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10406 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10406); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10406 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10407 | return false; | ||||
| 10408 | } | ||||
| 10409 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10410 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | ||||
| 10411 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10411); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10411) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10412 | return false; | ||||
| 10413 | } | ||||
| 10414 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10414 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10414); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.optionalKeyRange())))) { | ||||
| 10415 | return false; | ||||
| 10416 | } | ||||
| 10417 | break; | ||||
| 10418 | } | ||||
| 10419 | |||||
| 10420 | default: | ||||
| 10421 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10421 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 10421); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 10422 | } | ||||
| 10423 | |||||
| 10424 | return true; | ||||
| 10425 | } | ||||
| 10426 | |||||
| 10427 | bool TransactionBase::VerifyRequestParams( | ||||
| 10428 | const SerializedKeyRange& aParams) const { | ||||
| 10429 | AssertIsOnBackgroundThread(); | ||||
| 10430 | |||||
| 10431 | // XXX Check more here? | ||||
| 10432 | |||||
| 10433 | if (aParams.isOnly()) { | ||||
| 10434 | if (NS_AUUF_OR_WARN_IF(aParams.lower().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aParams.lower().IsUnset()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10434); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lower().IsUnset()" ")"); do { MOZ_CrashSequence(__null , 10434); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((aParams.lower().IsUnset ()))) { | ||||
| 10435 | return false; | ||||
| 10436 | } | ||||
| 10437 | if (NS_AUUF_OR_WARN_IF(!aParams.upper().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!aParams.upper().IsUnset()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10437); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aParams.upper().IsUnset()" ")"); do { MOZ_CrashSequence(__null , 10437); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((!aParams.upper().IsUnset ()))) { | ||||
| 10438 | return false; | ||||
| 10439 | } | ||||
| 10440 | if (NS_AUUF_OR_WARN_IF(aParams.lowerOpen())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aParams.lowerOpen()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10440); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lowerOpen()" ")"); do { MOZ_CrashSequence(__null, 10440 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aParams.lowerOpen()))) { | ||||
| 10441 | return false; | ||||
| 10442 | } | ||||
| 10443 | if (NS_AUUF_OR_WARN_IF(aParams.upperOpen())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aParams.upperOpen()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10443); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.upperOpen()" ")"); do { MOZ_CrashSequence(__null, 10443 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aParams.upperOpen()))) { | ||||
| 10444 | return false; | ||||
| 10445 | } | ||||
| 10446 | } else if (NS_AUUF_OR_WARN_IF(aParams.lower().IsUnset() &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10447 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()" ")"); do { MOZ_CrashSequence(__null, 10447); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aParams.lower().IsUnset() && aParams.upper ().IsUnset())) | ||||
| 10447 | aParams.upper().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10447 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()" ")"); do { MOZ_CrashSequence(__null, 10447); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aParams.lower().IsUnset() && aParams.upper ().IsUnset()))) { | ||||
| 10448 | return false; | ||||
| 10449 | } | ||||
| 10450 | |||||
| 10451 | return true; | ||||
| 10452 | } | ||||
| 10453 | |||||
| 10454 | bool TransactionBase::VerifyRequestParams( | ||||
| 10455 | const ObjectStoreAddPutParams& aParams) const { | ||||
| 10456 | AssertIsOnBackgroundThread(); | ||||
| 10457 | |||||
| 10458 | if (NS_AUUF_OR_WARN_IF(mMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10460 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10460); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange)) | ||||
| 10459 | mMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10460 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10460); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange)) | ||||
| 10460 | mMode != IDBTransaction::Mode::VersionChange)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10460 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10460); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange))) { | ||||
| 10461 | return false; | ||||
| 10462 | } | ||||
| 10463 | |||||
| 10464 | SafeRefPtr<FullObjectStoreMetadata> objMetadata = | ||||
| 10465 | GetMetadataForObjectStoreId(aParams.objectStoreId()); | ||||
| 10466 | if (NS_AUUF_OR_WARN_IF(!objMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objMetadata" ")"); do { MOZ_CrashSequence(__null, 10466); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objMetadata))) { | ||||
| 10467 | return false; | ||||
| 10468 | } | ||||
| 10469 | |||||
| 10470 | if (NS_AUUF_OR_WARN_IF(!aParams.cloneInfo().data().data.Size())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!aParams.cloneInfo().data().data.Size()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aParams.cloneInfo().data().data.Size()" ")"); do { MOZ_CrashSequence (__null, 10470); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!aParams.cloneInfo ().data().data.Size()))) { | ||||
| 10471 | return false; | ||||
| 10472 | } | ||||
| 10473 | |||||
| 10474 | if (objMetadata->mCommonMetadata.autoIncrement() && | ||||
| 10475 | objMetadata->mCommonMetadata.keyPath().IsValid() && | ||||
| 10476 | aParams.key().IsUnset()) { | ||||
| 10477 | const SerializedStructuredCloneWriteInfo& cloneInfo = aParams.cloneInfo(); | ||||
| 10478 | |||||
| 10479 | if (NS_AUUF_OR_WARN_IF(!cloneInfo.offsetToKeyProp())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!cloneInfo.offsetToKeyProp()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10479); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!cloneInfo.offsetToKeyProp()" ")"); do { MOZ_CrashSequence( __null, 10479); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!cloneInfo.offsetToKeyProp ()))) { | ||||
| 10480 | return false; | ||||
| 10481 | } | ||||
| 10482 | |||||
| 10483 | if (NS_AUUF_OR_WARN_IF(cloneInfo.data().data.Size() < sizeof(uint64_t))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cloneInfo.data().data.Size() < sizeof(uint64_t)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10483 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.data().data.Size() < sizeof(uint64_t)" ")"); do { MOZ_CrashSequence(__null, 10483); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cloneInfo.data().data.Size() < sizeof(uint64_t) ))) { | ||||
| 10484 | return false; | ||||
| 10485 | } | ||||
| 10486 | |||||
| 10487 | if (NS_AUUF_OR_WARN_IF(cloneInfo.offsetToKeyProp() >[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10488 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))" ")"); do { MOZ_CrashSequence(__null, 10488); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data() .data.Size() - sizeof(uint64_t)))) | ||||
| 10488 | (cloneInfo.data().data.Size() - sizeof(uint64_t)))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10488 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))" ")"); do { MOZ_CrashSequence(__null, 10488); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data() .data.Size() - sizeof(uint64_t))))) { | ||||
| 10489 | return false; | ||||
| 10490 | } | ||||
| 10491 | } else if (NS_AUUF_OR_WARN_IF(aParams.cloneInfo().offsetToKeyProp())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aParams.cloneInfo().offsetToKeyProp()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.cloneInfo().offsetToKeyProp()" ")"); do { MOZ_CrashSequence (__null, 10491); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((aParams.cloneInfo ().offsetToKeyProp()))) { | ||||
| 10492 | return false; | ||||
| 10493 | } | ||||
| 10494 | |||||
| 10495 | for (const auto& updateInfo : aParams.indexUpdateInfos()) { | ||||
| 10496 | SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10497 | GetMetadataForIndexId(*objMetadata, updateInfo.indexId()); | ||||
| 10498 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10498); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10498) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10499 | return false; | ||||
| 10500 | } | ||||
| 10501 | |||||
| 10502 | if (NS_AUUF_OR_WARN_IF(updateInfo.value().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "updateInfo.value().IsUnset()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10502); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "updateInfo.value().IsUnset()" ")"); do { MOZ_CrashSequence( __null, 10502); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((updateInfo.value ().IsUnset()))) { | ||||
| 10503 | return false; | ||||
| 10504 | } | ||||
| 10505 | |||||
| 10506 | MOZ_ASSERT(!updateInfo.value().GetBuffer().IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!updateInfo.value().GetBuffer().IsEmpty())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!updateInfo.value().GetBuffer().IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!updateInfo.value().GetBuffer().IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10506 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!updateInfo.value().GetBuffer().IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 10506); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10507 | } | ||||
| 10508 | |||||
| 10509 | for (const FileAddInfo& fileAddInfo : aParams.fileAddInfos()) { | ||||
| 10510 | const PBackgroundIDBDatabaseFileParent* file = | ||||
| 10511 | fileAddInfo.file().AsParent(); | ||||
| 10512 | |||||
| 10513 | switch (fileAddInfo.type()) { | ||||
| 10514 | case StructuredCloneFileBase::eBlob: | ||||
| 10515 | if (NS_AUUF_OR_WARN_IF(!file)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!file" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!file" ")"); do { MOZ_CrashSequence(__null, 10515); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!file))) { | ||||
| 10516 | return false; | ||||
| 10517 | } | ||||
| 10518 | |||||
| 10519 | // Reject actors managed by a different Database | ||||
| 10520 | if (NS_AUUF_OR_WARN_IF(file->Manager() !=[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10522 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())" ")"); do { MOZ_CrashSequence(__null, 10522); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((file->Manager() != static_cast<const PBackgroundIDBDatabaseParent *>( &GetDatabase()))) | ||||
| 10521 | static_cast<const PBackgroundIDBDatabaseParent*>([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10522 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())" ")"); do { MOZ_CrashSequence(__null, 10522); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((file->Manager() != static_cast<const PBackgroundIDBDatabaseParent *>( &GetDatabase()))) | ||||
| 10522 | &GetDatabase()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10522 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())" ")"); do { MOZ_CrashSequence(__null, 10522); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((file->Manager() != static_cast<const PBackgroundIDBDatabaseParent *>( &GetDatabase())))) { | ||||
| 10523 | return false; | ||||
| 10524 | } | ||||
| 10525 | break; | ||||
| 10526 | |||||
| 10527 | case StructuredCloneFileBase::eMutableFile: { | ||||
| 10528 | return false; | ||||
| 10529 | } | ||||
| 10530 | |||||
| 10531 | case StructuredCloneFileBase::eStructuredClone: | ||||
| 10532 | case StructuredCloneFileBase::eWasmBytecode: | ||||
| 10533 | case StructuredCloneFileBase::eWasmCompiled: | ||||
| 10534 | case StructuredCloneFileBase::eEndGuard: | ||||
| 10535 | MOZ_ASSERT_UNLESS_FUZZING(false, "Unsupported.")do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "Unsupported." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10535 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Unsupported." ")"); do { MOZ_CrashSequence(__null, 10535); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10536 | return false; | ||||
| 10537 | |||||
| 10538 | default: | ||||
| 10539 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10539 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 10539); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 10540 | } | ||||
| 10541 | } | ||||
| 10542 | |||||
| 10543 | return true; | ||||
| 10544 | } | ||||
| 10545 | |||||
| 10546 | bool TransactionBase::VerifyRequestParams( | ||||
| 10547 | const Maybe<SerializedKeyRange>& aParams) const { | ||||
| 10548 | AssertIsOnBackgroundThread(); | ||||
| 10549 | |||||
| 10550 | if (aParams.isSome()) { | ||||
| 10551 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(aParams.ref()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(aParams.ref())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10551); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(aParams.ref())" ")"); do { MOZ_CrashSequence (__null, 10551); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (aParams.ref())))) { | ||||
| 10552 | return false; | ||||
| 10553 | } | ||||
| 10554 | } | ||||
| 10555 | |||||
| 10556 | return true; | ||||
| 10557 | } | ||||
| 10558 | |||||
| 10559 | void TransactionBase::NoteActiveRequest() { | ||||
| 10560 | AssertIsOnBackgroundThread(); | ||||
| 10561 | MOZ_ASSERT(mActiveRequestCount < UINT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mActiveRequestCount < (18446744073709551615UL))> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mActiveRequestCount < (18446744073709551615UL)))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActiveRequestCount < (18446744073709551615UL)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10561 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount < (18446744073709551615UL)" ")"); do { MOZ_CrashSequence(__null, 10561); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10562 | |||||
| 10563 | mActiveRequestCount++; | ||||
| 10564 | } | ||||
| 10565 | |||||
| 10566 | void TransactionBase::NoteFinishedRequest(const int64_t aRequestId, | ||||
| 10567 | const nsresult aResultCode) { | ||||
| 10568 | AssertIsOnBackgroundThread(); | ||||
| 10569 | MOZ_ASSERT(mActiveRequestCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mActiveRequestCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mActiveRequestCount))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActiveRequestCount" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10569 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount" ")"); do { MOZ_CrashSequence(__null, 10569); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10570 | |||||
| 10571 | mActiveRequestCount--; | ||||
| 10572 | |||||
| 10573 | if (NS_FAILED(aResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)) )) { | ||||
| 10574 | mLastFailedRequest = Some(aRequestId); | ||||
| 10575 | } | ||||
| 10576 | |||||
| 10577 | MaybeCommitOrAbort(); | ||||
| 10578 | } | ||||
| 10579 | |||||
| 10580 | void TransactionBase::Invalidate() { | ||||
| 10581 | AssertIsOnBackgroundThread(); | ||||
| 10582 | MOZ_ASSERT(mInvalidated == mInvalidatedOnAnyThread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInvalidated == mInvalidatedOnAnyThread)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInvalidated == mInvalidatedOnAnyThread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInvalidated == mInvalidatedOnAnyThread" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10582 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated == mInvalidatedOnAnyThread" ")"); do { MOZ_CrashSequence(__null, 10582); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10583 | |||||
| 10584 | if (!mInvalidated) { | ||||
| 10585 | mInvalidated.Flip(); | ||||
| 10586 | mInvalidatedOnAnyThread = true; | ||||
| 10587 | |||||
| 10588 | Abort(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR, /* aForce */ false); | ||||
| 10589 | } | ||||
| 10590 | } | ||||
| 10591 | |||||
| 10592 | PBackgroundIDBRequestParent* TransactionBase::AllocRequest( | ||||
| 10593 | const int64_t aRequestId, RequestParams&& aParams, bool aTrustParams) { | ||||
| 10594 | AssertIsOnBackgroundThread(); | ||||
| 10595 | MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != RequestParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != RequestParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10595 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10595); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10596 | |||||
| 10597 | #ifdef DEBUG1 | ||||
| 10598 | // Always verify parameters in DEBUG builds! | ||||
| 10599 | aTrustParams = false; | ||||
| 10600 | #endif | ||||
| 10601 | |||||
| 10602 | if (NS_AUUF_OR_WARN_IF(!aTrustParams && !VerifyRequestParams(aParams))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!aTrustParams && !VerifyRequestParams(aParams)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10602 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aTrustParams && !VerifyRequestParams(aParams)" ")"); do { MOZ_CrashSequence(__null, 10602); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!aTrustParams && !VerifyRequestParams(aParams )))) { | ||||
| 10603 | return nullptr; | ||||
| 10604 | } | ||||
| 10605 | |||||
| 10606 | if (NS_AUUF_OR_WARN_IF(mCommitOrAbortReceived)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mCommitOrAbortReceived" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10606); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mCommitOrAbortReceived" ")"); do { MOZ_CrashSequence(__null , 10606); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((mCommitOrAbortReceived ))) { | ||||
| 10607 | return nullptr; | ||||
| 10608 | } | ||||
| 10609 | |||||
| 10610 | RefPtr<NormalTransactionOp> actor; | ||||
| 10611 | |||||
| 10612 | switch (aParams.type()) { | ||||
| 10613 | case RequestParams::TObjectStoreAddParams: | ||||
| 10614 | case RequestParams::TObjectStorePutParams: | ||||
| 10615 | actor = new ObjectStoreAddOrPutRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10616 | std::move(aParams)); | ||||
| 10617 | break; | ||||
| 10618 | |||||
| 10619 | case RequestParams::TObjectStoreGetParams: | ||||
| 10620 | actor = | ||||
| 10621 | new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | ||||
| 10622 | /* aGetAll */ false); | ||||
| 10623 | break; | ||||
| 10624 | |||||
| 10625 | case RequestParams::TObjectStoreGetAllParams: | ||||
| 10626 | actor = | ||||
| 10627 | new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | ||||
| 10628 | /* aGetAll */ true); | ||||
| 10629 | break; | ||||
| 10630 | |||||
| 10631 | case RequestParams::TObjectStoreGetKeyParams: | ||||
| 10632 | actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10633 | aParams, | ||||
| 10634 | /* aGetAll */ false); | ||||
| 10635 | break; | ||||
| 10636 | |||||
| 10637 | case RequestParams::TObjectStoreGetAllKeysParams: | ||||
| 10638 | actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10639 | aParams, | ||||
| 10640 | /* aGetAll */ true); | ||||
| 10641 | break; | ||||
| 10642 | |||||
| 10643 | case RequestParams::TObjectStoreGetAllRecordsParams: | ||||
| 10644 | actor = new ObjectStoreGetAllRecordsRequestOp(SafeRefPtrFromThis(), | ||||
| 10645 | aRequestId, aParams); | ||||
| 10646 | break; | ||||
| 10647 | |||||
| 10648 | case RequestParams::TObjectStoreDeleteParams: | ||||
| 10649 | actor = | ||||
| 10650 | new ObjectStoreDeleteRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10651 | aParams.get_ObjectStoreDeleteParams()); | ||||
| 10652 | break; | ||||
| 10653 | |||||
| 10654 | case RequestParams::TObjectStoreClearParams: | ||||
| 10655 | actor = | ||||
| 10656 | new ObjectStoreClearRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10657 | aParams.get_ObjectStoreClearParams()); | ||||
| 10658 | break; | ||||
| 10659 | |||||
| 10660 | case RequestParams::TObjectStoreCountParams: | ||||
| 10661 | actor = | ||||
| 10662 | new ObjectStoreCountRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10663 | aParams.get_ObjectStoreCountParams()); | ||||
| 10664 | break; | ||||
| 10665 | |||||
| 10666 | case RequestParams::TIndexGetParams: | ||||
| 10667 | actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | ||||
| 10668 | /* aGetAll */ false); | ||||
| 10669 | break; | ||||
| 10670 | |||||
| 10671 | case RequestParams::TIndexGetKeyParams: | ||||
| 10672 | actor = | ||||
| 10673 | new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | ||||
| 10674 | /* aGetAll */ false); | ||||
| 10675 | break; | ||||
| 10676 | |||||
| 10677 | case RequestParams::TIndexGetAllParams: | ||||
| 10678 | actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | ||||
| 10679 | /* aGetAll */ true); | ||||
| 10680 | break; | ||||
| 10681 | |||||
| 10682 | case RequestParams::TIndexGetAllKeysParams: | ||||
| 10683 | actor = | ||||
| 10684 | new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | ||||
| 10685 | /* aGetAll */ true); | ||||
| 10686 | break; | ||||
| 10687 | |||||
| 10688 | case RequestParams::TIndexGetAllRecordsParams: | ||||
| 10689 | actor = new IndexGetAllRecordsRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10690 | aParams); | ||||
| 10691 | break; | ||||
| 10692 | |||||
| 10693 | case RequestParams::TIndexCountParams: | ||||
| 10694 | actor = | ||||
| 10695 | new IndexCountRequestOp(SafeRefPtrFromThis(), aRequestId, aParams); | ||||
| 10696 | break; | ||||
| 10697 | |||||
| 10698 | default: | ||||
| 10699 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10699 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 10699); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 10700 | } | ||||
| 10701 | |||||
| 10702 | MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(actor)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10702); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")" ); do { MOZ_CrashSequence(__null, 10702); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10703 | |||||
| 10704 | // Transfer ownership to IPDL. | ||||
| 10705 | return actor.forget().take(); | ||||
| 10706 | } | ||||
| 10707 | |||||
| 10708 | bool TransactionBase::StartRequest(PBackgroundIDBRequestParent* aActor) { | ||||
| 10709 | AssertIsOnBackgroundThread(); | ||||
| 10710 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 10710); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10711 | |||||
| 10712 | auto* op = static_cast<NormalTransactionOp*>(aActor); | ||||
| 10713 | |||||
| 10714 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10714)) { | ||||
| 10715 | op->Cleanup(); | ||||
| 10716 | return false; | ||||
| 10717 | } | ||||
| 10718 | |||||
| 10719 | op->DispatchToConnectionPool(); | ||||
| 10720 | return true; | ||||
| 10721 | } | ||||
| 10722 | |||||
| 10723 | bool TransactionBase::DeallocRequest( | ||||
| 10724 | PBackgroundIDBRequestParent* const aActor) { | ||||
| 10725 | AssertIsOnBackgroundThread(); | ||||
| 10726 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10726); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 10726); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10727 | |||||
| 10728 | // Transfer ownership back from IPDL. | ||||
| 10729 | const RefPtr<NormalTransactionOp> actor = | ||||
| 10730 | dont_AddRef(static_cast<NormalTransactionOp*>(aActor)); | ||||
| 10731 | return true; | ||||
| 10732 | } | ||||
| 10733 | |||||
| 10734 | already_AddRefed<PBackgroundIDBCursorParent> TransactionBase::AllocCursor( | ||||
| 10735 | const OpenCursorParams& aParams, bool aTrustParams) { | ||||
| 10736 | AssertIsOnBackgroundThread(); | ||||
| 10737 | MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != OpenCursorParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != OpenCursorParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10737 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10737); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10738 | |||||
| 10739 | #ifdef DEBUG1 | ||||
| 10740 | // Always verify parameters in DEBUG builds! | ||||
| 10741 | aTrustParams = false; | ||||
| 10742 | #endif | ||||
| 10743 | |||||
| 10744 | const OpenCursorParams::Type type = aParams.type(); | ||||
| 10745 | SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata; | ||||
| 10746 | SafeRefPtr<FullIndexMetadata> indexMetadata; | ||||
| 10747 | CursorBase::Direction direction; | ||||
| 10748 | |||||
| 10749 | // First extract the parameters common to all open cursor variants. | ||||
| 10750 | const auto& commonParams = GetCommonOpenCursorParams(aParams); | ||||
| 10751 | objectStoreMetadata = | ||||
| 10752 | GetMetadataForObjectStoreId(commonParams.objectStoreId()); | ||||
| 10753 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10753); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10753 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10754 | return nullptr; | ||||
| 10755 | } | ||||
| 10756 | if (!aTrustParams && NS_AUUF_OR_WARN_IF(!VerifyRequestParams([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams( commonParams.optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10757 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams( commonParams.optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10757); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams( commonParams.optionalKeyRange ()))) | ||||
| 10757 | commonParams.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams( commonParams.optionalKeyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10757 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams( commonParams.optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10757); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams( commonParams.optionalKeyRange ())))) { | ||||
| 10758 | return nullptr; | ||||
| 10759 | } | ||||
| 10760 | direction = commonParams.direction(); | ||||
| 10761 | |||||
| 10762 | // Now, for the index open cursor variants, extract the additional parameter. | ||||
| 10763 | if (type == OpenCursorParams::TIndexOpenCursorParams || | ||||
| 10764 | type == OpenCursorParams::TIndexOpenKeyCursorParams) { | ||||
| 10765 | const auto& commonIndexParams = GetCommonIndexOpenCursorParams(aParams); | ||||
| 10766 | indexMetadata = GetMetadataForIndexId(*objectStoreMetadata, | ||||
| 10767 | commonIndexParams.indexId()); | ||||
| 10768 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10768); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10768) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10769 | return nullptr; | ||||
| 10770 | } | ||||
| 10771 | } | ||||
| 10772 | |||||
| 10773 | if (NS_AUUF_OR_WARN_IF(mCommitOrAbortReceived)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mCommitOrAbortReceived" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10773); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mCommitOrAbortReceived" ")"); do { MOZ_CrashSequence(__null , 10773); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((mCommitOrAbortReceived ))) { | ||||
| 10774 | return nullptr; | ||||
| 10775 | } | ||||
| 10776 | |||||
| 10777 | // Create Cursor and transfer ownership to IPDL. | ||||
| 10778 | switch (type) { | ||||
| 10779 | case OpenCursorParams::TObjectStoreOpenCursorParams: | ||||
| 10780 | MOZ_ASSERT(!indexMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!indexMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!indexMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10780 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata" ")" ); do { MOZ_CrashSequence(__null, 10780); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10781 | return MakeAndAddRef<Cursor<IDBCursorType::ObjectStore>>( | ||||
| 10782 | SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction, | ||||
| 10783 | CursorBase::ConstructFromTransactionBase{}); | ||||
| 10784 | case OpenCursorParams::TObjectStoreOpenKeyCursorParams: | ||||
| 10785 | MOZ_ASSERT(!indexMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!indexMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!indexMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10785 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata" ")" ); do { MOZ_CrashSequence(__null, 10785); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10786 | return MakeAndAddRef<Cursor<IDBCursorType::ObjectStoreKey>>( | ||||
| 10787 | SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction, | ||||
| 10788 | CursorBase::ConstructFromTransactionBase{}); | ||||
| 10789 | case OpenCursorParams::TIndexOpenCursorParams: | ||||
| 10790 | return MakeAndAddRef<Cursor<IDBCursorType::Index>>( | ||||
| 10791 | SafeRefPtrFromThis(), std::move(objectStoreMetadata), | ||||
| 10792 | std::move(indexMetadata), direction, | ||||
| 10793 | CursorBase::ConstructFromTransactionBase{}); | ||||
| 10794 | case OpenCursorParams::TIndexOpenKeyCursorParams: | ||||
| 10795 | return MakeAndAddRef<Cursor<IDBCursorType::IndexKey>>( | ||||
| 10796 | SafeRefPtrFromThis(), std::move(objectStoreMetadata), | ||||
| 10797 | std::move(indexMetadata), direction, | ||||
| 10798 | CursorBase::ConstructFromTransactionBase{}); | ||||
| 10799 | default: | ||||
| 10800 | MOZ_CRASH("Cannot get here.")do { do { } while (false); MOZ_ReportCrash("" "Cannot get here." , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10800 ); AnnotateMozCrashReason("MOZ_CRASH(" "Cannot get here." ")" ); do { MOZ_CrashSequence(__null, 10800); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 10801 | } | ||||
| 10802 | } | ||||
| 10803 | |||||
| 10804 | bool TransactionBase::StartCursor(PBackgroundIDBCursorParent* const aActor, | ||||
| 10805 | const int64_t aRequestId, | ||||
| 10806 | const OpenCursorParams& aParams) { | ||||
| 10807 | AssertIsOnBackgroundThread(); | ||||
| 10808 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10808); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 10808); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10809 | MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != OpenCursorParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != OpenCursorParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10809 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10809); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10810 | |||||
| 10811 | auto* const op = static_cast<CursorBase*>(aActor); | ||||
| 10812 | |||||
| 10813 | if (NS_WARN_IF(!op->Start(aRequestId, aParams))NS_warn_if_impl(!op->Start(aRequestId, aParams), "!op->Start(aRequestId, aParams)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10813 )) { | ||||
| 10814 | return false; | ||||
| 10815 | } | ||||
| 10816 | |||||
| 10817 | return true; | ||||
| 10818 | } | ||||
| 10819 | |||||
| 10820 | /******************************************************************************* | ||||
| 10821 | * NormalTransaction | ||||
| 10822 | ******************************************************************************/ | ||||
| 10823 | |||||
| 10824 | NormalTransaction::NormalTransaction( | ||||
| 10825 | SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode, | ||||
| 10826 | TransactionBase::Durability aDurability, | ||||
| 10827 | nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores) | ||||
| 10828 | : TransactionBase(std::move(aDatabase), aMode, aDurability), | ||||
| 10829 | mObjectStores{std::move(aObjectStores)} { | ||||
| 10830 | AssertIsOnBackgroundThread(); | ||||
| 10831 | MOZ_ASSERT(!mObjectStores.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mObjectStores.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mObjectStores.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mObjectStores.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10831 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStores.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 10831); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10832 | } | ||||
| 10833 | |||||
| 10834 | bool NormalTransaction::IsSameProcessActor() { | ||||
| 10835 | AssertIsOnBackgroundThread(); | ||||
| 10836 | |||||
| 10837 | PBackgroundParent* const actor = Manager()->Manager()->Manager(); | ||||
| 10838 | MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(actor)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10838); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")" ); do { MOZ_CrashSequence(__null, 10838); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10839 | |||||
| 10840 | return !BackgroundParent::IsOtherProcessActor(actor); | ||||
| 10841 | } | ||||
| 10842 | |||||
| 10843 | void NormalTransaction::SendCompleteNotification(nsresult aResult) { | ||||
| 10844 | AssertIsOnBackgroundThread(); | ||||
| 10845 | |||||
| 10846 | if (!IsActorDestroyed()) { | ||||
| 10847 | (void)SendComplete(aResult); | ||||
| 10848 | } | ||||
| 10849 | } | ||||
| 10850 | |||||
| 10851 | void NormalTransaction::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 10852 | AssertIsOnBackgroundThread(); | ||||
| 10853 | |||||
| 10854 | NoteActorDestroyed(); | ||||
| 10855 | |||||
| 10856 | if (!mCommittedOrAborted) { | ||||
| 10857 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 10858 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10858, idbInternalErrMsg.get()); } while (0); | ||||
| 10859 | mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 10860 | } | ||||
| 10861 | |||||
| 10862 | mForceAborted.EnsureFlipped(); | ||||
| 10863 | |||||
| 10864 | MaybeCommitOrAbort(); | ||||
| 10865 | } | ||||
| 10866 | } | ||||
| 10867 | |||||
| 10868 | mozilla::ipc::IPCResult NormalTransaction::RecvDeleteMe() { | ||||
| 10869 | AssertIsOnBackgroundThread(); | ||||
| 10870 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10870 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 10870); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10871 | |||||
| 10872 | QM_WARNONLY_TRY(OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))){auto tryResult1003 = (OkIf(PBackgroundIDBTransactionParent:: Send__delete__(this))); static_assert(std::is_empty_v<typename decltype(tryResult1003)::ok_type>); if ((__builtin_expect (!!(tryResult1003.isErr()), 0))) { mozilla::dom::quota::HandleError ("OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))" , tryResult1003.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10872, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 10873 | |||||
| 10874 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 10875 | } | ||||
| 10876 | |||||
| 10877 | mozilla::ipc::IPCResult NormalTransaction::RecvCommit( | ||||
| 10878 | const Maybe<int64_t>& aLastRequest) { | ||||
| 10879 | AssertIsOnBackgroundThread(); | ||||
| 10880 | |||||
| 10881 | return TransactionBase::RecvCommit(this, aLastRequest); | ||||
| 10882 | } | ||||
| 10883 | |||||
| 10884 | mozilla::ipc::IPCResult NormalTransaction::RecvAbort( | ||||
| 10885 | const nsresult& aResultCode) { | ||||
| 10886 | AssertIsOnBackgroundThread(); | ||||
| 10887 | |||||
| 10888 | return TransactionBase::RecvAbort(this, aResultCode); | ||||
| 10889 | } | ||||
| 10890 | |||||
| 10891 | PBackgroundIDBRequestParent* | ||||
| 10892 | NormalTransaction::AllocPBackgroundIDBRequestParent( | ||||
| 10893 | const int64_t& aRequestId, const RequestParams& aParams) { | ||||
| 10894 | AssertIsOnBackgroundThread(); | ||||
| 10895 | MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != RequestParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != RequestParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10895 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10895); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10896 | |||||
| 10897 | return AllocRequest(aRequestId, | ||||
| 10898 | std::move(const_cast<RequestParams&>(aParams)), | ||||
| 10899 | IsSameProcessActor()); | ||||
| 10900 | } | ||||
| 10901 | |||||
| 10902 | mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBRequestConstructor( | ||||
| 10903 | PBackgroundIDBRequestParent* const aActor, const int64_t& aRequestId, | ||||
| 10904 | const RequestParams& aParams) { | ||||
| 10905 | AssertIsOnBackgroundThread(); | ||||
| 10906 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10906); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 10906); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10907 | MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != RequestParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != RequestParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10907 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10907); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10908 | |||||
| 10909 | if (!StartRequest(aActor)) { | ||||
| 10910 | return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!" )); | ||||
| 10911 | } | ||||
| 10912 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 10913 | } | ||||
| 10914 | |||||
| 10915 | bool NormalTransaction::DeallocPBackgroundIDBRequestParent( | ||||
| 10916 | PBackgroundIDBRequestParent* const aActor) { | ||||
| 10917 | AssertIsOnBackgroundThread(); | ||||
| 10918 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10918); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 10918); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10919 | |||||
| 10920 | return DeallocRequest(aActor); | ||||
| 10921 | } | ||||
| 10922 | |||||
| 10923 | already_AddRefed<PBackgroundIDBCursorParent> | ||||
| 10924 | NormalTransaction::AllocPBackgroundIDBCursorParent( | ||||
| 10925 | const int64_t& aRequestId, const OpenCursorParams& aParams) { | ||||
| 10926 | AssertIsOnBackgroundThread(); | ||||
| 10927 | |||||
| 10928 | return AllocCursor(aParams, IsSameProcessActor()); | ||||
| 10929 | } | ||||
| 10930 | |||||
| 10931 | mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBCursorConstructor( | ||||
| 10932 | PBackgroundIDBCursorParent* const aActor, const int64_t& aRequestId, | ||||
| 10933 | const OpenCursorParams& aParams) { | ||||
| 10934 | AssertIsOnBackgroundThread(); | ||||
| 10935 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10935); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 10935); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10936 | MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != OpenCursorParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != OpenCursorParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10936 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10936); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10937 | |||||
| 10938 | if (!StartCursor(aActor, aRequestId, aParams)) { | ||||
| 10939 | return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!" )); | ||||
| 10940 | } | ||||
| 10941 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 10942 | } | ||||
| 10943 | |||||
| 10944 | /******************************************************************************* | ||||
| 10945 | * VersionChangeTransaction | ||||
| 10946 | ******************************************************************************/ | ||||
| 10947 | |||||
| 10948 | VersionChangeTransaction::VersionChangeTransaction( | ||||
| 10949 | OpenDatabaseOp* aOpenDatabaseOp) | ||||
| 10950 | : TransactionBase(aOpenDatabaseOp->mDatabase.clonePtr(), | ||||
| 10951 | IDBTransaction::Mode::VersionChange, | ||||
| 10952 | // VersionChange must not change durability. | ||||
| 10953 | IDBTransaction::Durability::Default), // Not used. | ||||
| 10954 | mOpenDatabaseOp(aOpenDatabaseOp) { | ||||
| 10955 | AssertIsOnBackgroundThread(); | ||||
| 10956 | MOZ_ASSERT(aOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aOpenDatabaseOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10956 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 10956); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10957 | } | ||||
| 10958 | |||||
| 10959 | VersionChangeTransaction::~VersionChangeTransaction() { | ||||
| 10960 | #ifdef DEBUG1 | ||||
| 10961 | // Silence the base class' destructor assertion if we never made this actor | ||||
| 10962 | // live. | ||||
| 10963 | FakeActorDestroyed(); | ||||
| 10964 | #endif | ||||
| 10965 | } | ||||
| 10966 | |||||
| 10967 | bool VersionChangeTransaction::IsSameProcessActor() { | ||||
| 10968 | AssertIsOnBackgroundThread(); | ||||
| 10969 | |||||
| 10970 | PBackgroundParent* actor = Manager()->Manager()->Manager(); | ||||
| 10971 | MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(actor)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10971); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")" ); do { MOZ_CrashSequence(__null, 10971); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10972 | |||||
| 10973 | return !BackgroundParent::IsOtherProcessActor(actor); | ||||
| 10974 | } | ||||
| 10975 | |||||
| 10976 | void VersionChangeTransaction::SetActorAlive() { | ||||
| 10977 | AssertIsOnBackgroundThread(); | ||||
| 10978 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10978 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 10978); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10979 | |||||
| 10980 | mActorWasAlive.Flip(); | ||||
| 10981 | } | ||||
| 10982 | |||||
| 10983 | bool VersionChangeTransaction::CopyDatabaseMetadata() { | ||||
| 10984 | AssertIsOnBackgroundThread(); | ||||
| 10985 | MOZ_ASSERT(!mOldMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOldMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mOldMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mOldMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10985) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOldMetadata" ")" ); do { MOZ_CrashSequence(__null, 10985); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10986 | |||||
| 10987 | const auto& origMetadata = GetDatabase().Metadata(); | ||||
| 10988 | |||||
| 10989 | SafeRefPtr<FullDatabaseMetadata> newMetadata = origMetadata.Duplicate(); | ||||
| 10990 | if (NS_WARN_IF(!newMetadata)NS_warn_if_impl(!newMetadata, "!newMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10990)) { | ||||
| 10991 | return false; | ||||
| 10992 | } | ||||
| 10993 | |||||
| 10994 | // Replace the live metadata with the new mutable copy. | ||||
| 10995 | DatabaseActorInfo* info; | ||||
| 10996 | MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get( origMetadata.mDatabaseId, &info)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10996 ); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info)" ")"); do { MOZ_CrashSequence(__null, 10996); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 10997 | MOZ_ASSERT(!info->mLiveDatabases.isEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mLiveDatabases.isEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mLiveDatabases.isEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!info->mLiveDatabases.isEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10997); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.isEmpty()" ")"); do { MOZ_CrashSequence(__null, 10997); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10998 | MOZ_ASSERT(info->mMetadata == &origMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mMetadata == &origMetadata)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(info->mMetadata == &origMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("info->mMetadata == &origMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10998 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == &origMetadata" ")"); do { MOZ_CrashSequence(__null, 10998); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10999 | |||||
| 11000 | mOldMetadata = std::move(info->mMetadata); | ||||
| 11001 | info->mMetadata = std::move(newMetadata); | ||||
| 11002 | |||||
| 11003 | // Replace metadata pointers for all live databases. | ||||
| 11004 | for (Database* const liveDatabase : info->mLiveDatabases) { | ||||
| 11005 | liveDatabase->mMetadata = info->mMetadata.clonePtr(); | ||||
| 11006 | } | ||||
| 11007 | |||||
| 11008 | return true; | ||||
| 11009 | } | ||||
| 11010 | |||||
| 11011 | void VersionChangeTransaction::UpdateMetadata(nsresult aResult) { | ||||
| 11012 | AssertIsOnBackgroundThread(); | ||||
| 11013 | MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11013 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 11013); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11014 | MOZ_ASSERT(!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11014 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase" ")"); do { MOZ_CrashSequence(__null, 11014); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11015 | MOZ_ASSERT_IF(mActorWasAlive, !mOpenDatabaseOp->mDatabaseId.ref().IsEmpty())do { if (mActorWasAlive) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!mOpenDatabaseOp->mDatabaseId .ref().IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mOpenDatabaseOp->mDatabaseId .ref().IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mOpenDatabaseOp->mDatabaseId.ref().IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11015); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp->mDatabaseId.ref().IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11015); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11016 | |||||
| 11017 | if (IsActorDestroyed() || !mActorWasAlive) { | ||||
| 11018 | return; | ||||
| 11019 | } | ||||
| 11020 | |||||
| 11021 | SafeRefPtr<FullDatabaseMetadata> oldMetadata = std::move(mOldMetadata); | ||||
| 11022 | |||||
| 11023 | DatabaseActorInfo* info; | ||||
| 11024 | if (!gLiveDatabaseHashtable->Get(oldMetadata->mDatabaseId, &info)) { | ||||
| 11025 | return; | ||||
| 11026 | } | ||||
| 11027 | |||||
| 11028 | MOZ_ASSERT(!info->mLiveDatabases.isEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mLiveDatabases.isEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mLiveDatabases.isEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!info->mLiveDatabases.isEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.isEmpty()" ")"); do { MOZ_CrashSequence(__null, 11028); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11029 | |||||
| 11030 | if (NS_SUCCEEDED(aResult)((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResult)), 1)))) { | ||||
| 11031 | // Remove all deleted objectStores and indexes, then mark immutable. | ||||
| 11032 | info->mMetadata->mObjectStores.RemoveIf([](const auto& objectStoreIter) { | ||||
| 11033 | MOZ_ASSERT(objectStoreIter.Key())do { static_assert( mozilla::detail::AssertionConditionType< decltype(objectStoreIter.Key())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(objectStoreIter.Key()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreIter.Key()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11033 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreIter.Key()" ")"); do { MOZ_CrashSequence(__null, 11033); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11034 | const SafeRefPtr<FullObjectStoreMetadata>& metadata = | ||||
| 11035 | objectStoreIter.Data(); | ||||
| 11036 | MOZ_ASSERT(metadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(metadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 11036); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11037 | |||||
| 11038 | if (metadata->mDeleted) { | ||||
| 11039 | return true; | ||||
| 11040 | } | ||||
| 11041 | |||||
| 11042 | metadata->mIndexes.RemoveIf([](const auto& indexIter) -> bool { | ||||
| 11043 | MOZ_ASSERT(indexIter.Key())do { static_assert( mozilla::detail::AssertionConditionType< decltype(indexIter.Key())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(indexIter.Key()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexIter.Key()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11043 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexIter.Key()" ")" ); do { MOZ_CrashSequence(__null, 11043); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11044 | const SafeRefPtr<FullIndexMetadata>& index = indexIter.Data(); | ||||
| 11045 | MOZ_ASSERT(index)do { static_assert( mozilla::detail::AssertionConditionType< decltype(index)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(index))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("index", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11045); AnnotateMozCrashReason("MOZ_ASSERT" "(" "index" ")" ); do { MOZ_CrashSequence(__null, 11045); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11046 | |||||
| 11047 | return index->mDeleted; | ||||
| 11048 | }); | ||||
| 11049 | metadata->mIndexes.MarkImmutable(); | ||||
| 11050 | |||||
| 11051 | return false; | ||||
| 11052 | }); | ||||
| 11053 | |||||
| 11054 | info->mMetadata->mObjectStores.MarkImmutable(); | ||||
| 11055 | } else { | ||||
| 11056 | // Replace metadata pointers for all live databases. | ||||
| 11057 | info->mMetadata = std::move(oldMetadata); | ||||
| 11058 | |||||
| 11059 | for (Database* const liveDatabase : info->mLiveDatabases) { | ||||
| 11060 | liveDatabase->mMetadata = info->mMetadata.clonePtr(); | ||||
| 11061 | } | ||||
| 11062 | } | ||||
| 11063 | } | ||||
| 11064 | |||||
| 11065 | void VersionChangeTransaction::SendCompleteNotification(nsresult aResult) { | ||||
| 11066 | AssertIsOnBackgroundThread(); | ||||
| 11067 | MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11067 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 11067); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11068 | MOZ_ASSERT(!mOpenDatabaseOp->mCompleteCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOpenDatabaseOp->mCompleteCallback)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mOpenDatabaseOp->mCompleteCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mOpenDatabaseOp->mCompleteCallback" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11068 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp->mCompleteCallback" ")"); do { MOZ_CrashSequence(__null, 11068); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11069 | MOZ_ASSERT_IF(!mActorWasAlive, mOpenDatabaseOp->HasFailed())do { if (!mActorWasAlive) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(mOpenDatabaseOp->HasFailed ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mOpenDatabaseOp->HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->HasFailed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11069 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->HasFailed()" ")"); do { MOZ_CrashSequence(__null, 11069); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11070 | MOZ_ASSERT_IF(!mActorWasAlive, mOpenDatabaseOp->mState >do { if (!mActorWasAlive) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11071 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 11071); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11071 | OpenDatabaseOp::State::SendingResults)do { if (!mActorWasAlive) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11071 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 11071); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11072 | |||||
| 11073 | const RefPtr<OpenDatabaseOp> openDatabaseOp = std::move(mOpenDatabaseOp); | ||||
| 11074 | |||||
| 11075 | if (!mActorWasAlive) { | ||||
| 11076 | return; | ||||
| 11077 | } | ||||
| 11078 | |||||
| 11079 | openDatabaseOp->mCompleteCallback = | ||||
| 11080 | [self = SafeRefPtr{this, AcquireStrongRefFromRawPtr{}}, aResult]() { | ||||
| 11081 | if (!self->IsActorDestroyed()) { | ||||
| 11082 | (void)self->SendComplete(aResult); | ||||
| 11083 | } | ||||
| 11084 | }; | ||||
| 11085 | |||||
| 11086 | auto handleError = [openDatabaseOp](const nsresult rv) { | ||||
| 11087 | openDatabaseOp->SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); | ||||
| 11088 | |||||
| 11089 | openDatabaseOp->mState = OpenDatabaseOp::State::SendingResults; | ||||
| 11090 | |||||
| 11091 | MOZ_ALWAYS_SUCCEEDS(openDatabaseOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (openDatabaseOp->Run())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(openDatabaseOp->Run())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11091 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(openDatabaseOp->Run())" ")"); do { MOZ_CrashSequence(__null, 11091); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 11092 | }; | ||||
| 11093 | |||||
| 11094 | if (NS_FAILED(aResult)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult)), 0)))) { | ||||
| 11095 | // 3.3.1 Opening a database: | ||||
| 11096 | // "If the upgrade transaction was aborted, run the steps for closing a | ||||
| 11097 | // database connection with connection, create and return a new AbortError | ||||
| 11098 | // exception and abort these steps." | ||||
| 11099 | handleError(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); | ||||
| 11100 | return; | ||||
| 11101 | } | ||||
| 11102 | |||||
| 11103 | openDatabaseOp->mState = OpenDatabaseOp::State::DatabaseWorkVersionUpdate; | ||||
| 11104 | |||||
| 11105 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 11106 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11106); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 11106); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11107 | |||||
| 11108 | QM_TRY(MOZ_TO_RESULT(quotaManager->IOThread()->Dispatch(openDatabaseOp,{auto tryResult1004 = (ToResult(quotaManager->IOThread()-> Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr ( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })); static_assert(std::is_empty_v<typename decltype(tryResult1004 )::ok_type>); if ((__builtin_expect(!!(tryResult1004.isErr ()), 0))) { auto tryTempError = tryResult1004.unwrapErr(); mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11112, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }} | ||||
| 11109 | NS_DISPATCH_NORMAL)){auto tryResult1004 = (ToResult(quotaManager->IOThread()-> Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr ( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })); static_assert(std::is_empty_v<typename decltype(tryResult1004 )::ok_type>); if ((__builtin_expect(!!(tryResult1004.isErr ()), 0))) { auto tryTempError = tryResult1004.unwrapErr(); mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11112, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }} | ||||
| 11110 | .mapErr({auto tryResult1004 = (ToResult(quotaManager->IOThread()-> Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr ( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })); static_assert(std::is_empty_v<typename decltype(tryResult1004 )::ok_type>); if ((__builtin_expect(!!(tryResult1004.isErr ()), 0))) { auto tryTempError = tryResult1004.unwrapErr(); mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11112, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }} | ||||
| 11111 | [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; }),{auto tryResult1004 = (ToResult(quotaManager->IOThread()-> Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr ( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })); static_assert(std::is_empty_v<typename decltype(tryResult1004 )::ok_type>); if ((__builtin_expect(!!(tryResult1004.isErr ()), 0))) { auto tryTempError = tryResult1004.unwrapErr(); mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11112, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }} | ||||
| 11112 | QM_VOID, handleError){auto tryResult1004 = (ToResult(quotaManager->IOThread()-> Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr ( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })); static_assert(std::is_empty_v<typename decltype(tryResult1004 )::ok_type>); if ((__builtin_expect(!!(tryResult1004.isErr ()), 0))) { auto tryTempError = tryResult1004.unwrapErr(); mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11112, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }}; | ||||
| 11113 | } | ||||
| 11114 | |||||
| 11115 | void VersionChangeTransaction::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 11116 | AssertIsOnBackgroundThread(); | ||||
| 11117 | |||||
| 11118 | NoteActorDestroyed(); | ||||
| 11119 | |||||
| 11120 | if (!mCommittedOrAborted) { | ||||
| 11121 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 11122 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11122, idbInternalErrMsg.get()); } while (0); | ||||
| 11123 | mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 11124 | } | ||||
| 11125 | |||||
| 11126 | mForceAborted.EnsureFlipped(); | ||||
| 11127 | |||||
| 11128 | MaybeCommitOrAbort(); | ||||
| 11129 | } | ||||
| 11130 | } | ||||
| 11131 | |||||
| 11132 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteMe() { | ||||
| 11133 | AssertIsOnBackgroundThread(); | ||||
| 11134 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11134 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 11134); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11135 | |||||
| 11136 | QM_WARNONLY_TRY({auto tryResult1005 = (OkIf(PBackgroundIDBVersionChangeTransactionParent ::Send__delete__(this))); static_assert(std::is_empty_v<typename decltype(tryResult1005)::ok_type>); if ((__builtin_expect (!!(tryResult1005.isErr()), 0))) { mozilla::dom::quota::HandleError ("OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))" , tryResult1005.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11137, mozilla::dom::quota::Severity::Warning); }} | ||||
| 11137 | OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))){auto tryResult1005 = (OkIf(PBackgroundIDBVersionChangeTransactionParent ::Send__delete__(this))); static_assert(std::is_empty_v<typename decltype(tryResult1005)::ok_type>); if ((__builtin_expect (!!(tryResult1005.isErr()), 0))) { mozilla::dom::quota::HandleError ("OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))" , tryResult1005.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11137, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 11138 | |||||
| 11139 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11140 | } | ||||
| 11141 | |||||
| 11142 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvCommit( | ||||
| 11143 | const Maybe<int64_t>& aLastRequest) { | ||||
| 11144 | AssertIsOnBackgroundThread(); | ||||
| 11145 | |||||
| 11146 | return TransactionBase::RecvCommit(this, aLastRequest); | ||||
| 11147 | } | ||||
| 11148 | |||||
| 11149 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvAbort( | ||||
| 11150 | const nsresult& aResultCode) { | ||||
| 11151 | AssertIsOnBackgroundThread(); | ||||
| 11152 | |||||
| 11153 | return TransactionBase::RecvAbort(this, aResultCode); | ||||
| 11154 | } | ||||
| 11155 | |||||
| 11156 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateObjectStore( | ||||
| 11157 | const ObjectStoreMetadata& aMetadata) { | ||||
| 11158 | AssertIsOnBackgroundThread(); | ||||
| 11159 | |||||
| 11160 | if (NS_WARN_IF(!aMetadata.id())NS_warn_if_impl(!aMetadata.id(), "!aMetadata.id()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11160)) { | ||||
| 11161 | return IPC_FAIL(this, "No metadata ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata ID!" )); | ||||
| 11162 | } | ||||
| 11163 | |||||
| 11164 | const SafeRefPtr<FullDatabaseMetadata> dbMetadata = | ||||
| 11165 | GetDatabase().MetadataPtr(); | ||||
| 11166 | |||||
| 11167 | if (NS_WARN_IF(aMetadata.id() != dbMetadata->mNextObjectStoreId)NS_warn_if_impl(aMetadata.id() != dbMetadata->mNextObjectStoreId , "aMetadata.id() != dbMetadata->mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11167)) { | ||||
| 11168 | 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!" )); | ||||
| 11169 | } | ||||
| 11170 | |||||
| 11171 | if (NS_WARN_IF(NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores , aMetadata.id(), SomeRef<const nsAString&>(aMetadata .name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11174 ) | ||||
| 11172 | MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(),NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores , aMetadata.id(), SomeRef<const nsAString&>(aMetadata .name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11174 ) | ||||
| 11173 | SomeRef<const nsAString&>(aMetadata.name()))NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores , aMetadata.id(), SomeRef<const nsAString&>(aMetadata .name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11174 ) | ||||
| 11174 | .isSome())NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores , aMetadata.id(), SomeRef<const nsAString&>(aMetadata .name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11174 )) { | ||||
| 11175 | return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!" )); | ||||
| 11176 | } | ||||
| 11177 | |||||
| 11178 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11178 )) { | ||||
| 11179 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11180 | } | ||||
| 11181 | |||||
| 11182 | const int64_t initialAutoIncrementId = aMetadata.autoIncrement() ? 1 : 0; | ||||
| 11183 | auto newMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>( | ||||
| 11184 | aMetadata, FullObjectStoreMetadata::AutoIncrementIds{ | ||||
| 11185 | initialAutoIncrementId, initialAutoIncrementId}); | ||||
| 11186 | |||||
| 11187 | if (NS_WARN_IF(!dbMetadata->mObjectStores.InsertOrUpdate(NS_warn_if_impl(!dbMetadata->mObjectStores.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible), "!dbMetadata->mObjectStores.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11188 ) | ||||
| 11188 | aMetadata.id(), std::move(newMetadata), fallible))NS_warn_if_impl(!dbMetadata->mObjectStores.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible), "!dbMetadata->mObjectStores.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11188 )) { | ||||
| 11189 | return IPC_FAIL(this, "mObjectStores.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mObjectStores.InsertOrUpdate failed!" )); | ||||
| 11190 | } | ||||
| 11191 | |||||
| 11192 | dbMetadata->mNextObjectStoreId++; | ||||
| 11193 | |||||
| 11194 | RefPtr<CreateObjectStoreOp> op = new CreateObjectStoreOp( | ||||
| 11195 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aMetadata); | ||||
| 11196 | |||||
| 11197 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11197)) { | ||||
| 11198 | op->Cleanup(); | ||||
| 11199 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | ||||
| 11200 | } | ||||
| 11201 | |||||
| 11202 | op->DispatchToConnectionPool(); | ||||
| 11203 | |||||
| 11204 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11205 | } | ||||
| 11206 | |||||
| 11207 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteObjectStore( | ||||
| 11208 | const IndexOrObjectStoreId& aObjectStoreId) { | ||||
| 11209 | AssertIsOnBackgroundThread(); | ||||
| 11210 | |||||
| 11211 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11211)) { | ||||
| 11212 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | ||||
| 11213 | } | ||||
| 11214 | |||||
| 11215 | const auto& dbMetadata = GetDatabase().Metadata(); | ||||
| 11216 | MOZ_ASSERT(dbMetadata.mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata.mNextObjectStoreId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextObjectStoreId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbMetadata.mNextObjectStoreId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11216); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0" ")"); do { MOZ_CrashSequence(__null, 11216); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11217 | |||||
| 11218 | if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId , "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11218)) { | ||||
| 11219 | return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!" )); | ||||
| 11220 | } | ||||
| 11221 | |||||
| 11222 | SafeRefPtr<FullObjectStoreMetadata> foundMetadata = | ||||
| 11223 | GetMetadataForObjectStoreId(aObjectStoreId); | ||||
| 11224 | |||||
| 11225 | if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11225)) { | ||||
| 11226 | return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!" )); | ||||
| 11227 | } | ||||
| 11228 | |||||
| 11229 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11229 )) { | ||||
| 11230 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11231 | } | ||||
| 11232 | |||||
| 11233 | foundMetadata->mDeleted.Flip(); | ||||
| 11234 | |||||
| 11235 | DebugOnly<bool> foundTargetId = false; | ||||
| 11236 | const bool isLastObjectStore = std::all_of( | ||||
| 11237 | dbMetadata.mObjectStores.begin(), dbMetadata.mObjectStores.end(), | ||||
| 11238 | [&foundTargetId, aObjectStoreId](const auto& objectStoreEntry) -> bool { | ||||
| 11239 | if (uint64_t(aObjectStoreId) == objectStoreEntry.GetKey()) { | ||||
| 11240 | foundTargetId = true; | ||||
| 11241 | return true; | ||||
| 11242 | } | ||||
| 11243 | |||||
| 11244 | return objectStoreEntry.GetData()->mDeleted; | ||||
| 11245 | }); | ||||
| 11246 | MOZ_ASSERT_IF(isLastObjectStore, foundTargetId)do { if (isLastObjectStore) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(foundTargetId)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(foundTargetId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("foundTargetId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11246); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId" ")"); do { MOZ_CrashSequence(__null, 11246); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11247 | |||||
| 11248 | RefPtr<DeleteObjectStoreOp> op = new DeleteObjectStoreOp( | ||||
| 11249 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), | ||||
| 11250 | std::move(foundMetadata), isLastObjectStore); | ||||
| 11251 | |||||
| 11252 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11252)) { | ||||
| 11253 | op->Cleanup(); | ||||
| 11254 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | ||||
| 11255 | } | ||||
| 11256 | |||||
| 11257 | op->DispatchToConnectionPool(); | ||||
| 11258 | |||||
| 11259 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11260 | } | ||||
| 11261 | |||||
| 11262 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameObjectStore( | ||||
| 11263 | const IndexOrObjectStoreId& aObjectStoreId, const nsAString& aName) { | ||||
| 11264 | AssertIsOnBackgroundThread(); | ||||
| 11265 | |||||
| 11266 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11266)) { | ||||
| 11267 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | ||||
| 11268 | } | ||||
| 11269 | |||||
| 11270 | { | ||||
| 11271 | const auto& dbMetadata = GetDatabase().Metadata(); | ||||
| 11272 | MOZ_ASSERT(dbMetadata.mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata.mNextObjectStoreId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextObjectStoreId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbMetadata.mNextObjectStoreId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11272); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0" ")"); do { MOZ_CrashSequence(__null, 11272); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11273 | |||||
| 11274 | if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId , "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11274)) { | ||||
| 11275 | return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!" )); | ||||
| 11276 | } | ||||
| 11277 | } | ||||
| 11278 | |||||
| 11279 | SafeRefPtr<FullObjectStoreMetadata> foundMetadata = | ||||
| 11280 | GetMetadataForObjectStoreId(aObjectStoreId); | ||||
| 11281 | |||||
| 11282 | if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11282)) { | ||||
| 11283 | return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!" )); | ||||
| 11284 | } | ||||
| 11285 | |||||
| 11286 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11286 )) { | ||||
| 11287 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11288 | } | ||||
| 11289 | |||||
| 11290 | foundMetadata->mCommonMetadata.name() = aName; | ||||
| 11291 | |||||
| 11292 | RefPtr<RenameObjectStoreOp> renameOp = new RenameObjectStoreOp( | ||||
| 11293 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), | ||||
| 11294 | *foundMetadata); | ||||
| 11295 | |||||
| 11296 | if (NS_WARN_IF(!renameOp->Init(*this))NS_warn_if_impl(!renameOp->Init(*this), "!renameOp->Init(*this)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11296 )) { | ||||
| 11297 | renameOp->Cleanup(); | ||||
| 11298 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | ||||
| 11299 | } | ||||
| 11300 | |||||
| 11301 | renameOp->DispatchToConnectionPool(); | ||||
| 11302 | |||||
| 11303 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11304 | } | ||||
| 11305 | |||||
| 11306 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateIndex( | ||||
| 11307 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 11308 | const IndexMetadata& aMetadata) { | ||||
| 11309 | AssertIsOnBackgroundThread(); | ||||
| 11310 | |||||
| 11311 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11311)) { | ||||
| 11312 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | ||||
| 11313 | } | ||||
| 11314 | |||||
| 11315 | if (NS_WARN_IF(!aMetadata.id())NS_warn_if_impl(!aMetadata.id(), "!aMetadata.id()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11315)) { | ||||
| 11316 | return IPC_FAIL(this, "No Metadata id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Metadata id!" )); | ||||
| 11317 | } | ||||
| 11318 | |||||
| 11319 | const auto dbMetadata = GetDatabase().MetadataPtr(); | ||||
| 11320 | |||||
| 11321 | if (NS_WARN_IF(aMetadata.id() != dbMetadata->mNextIndexId)NS_warn_if_impl(aMetadata.id() != dbMetadata->mNextIndexId , "aMetadata.id() != dbMetadata->mNextIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11321)) { | ||||
| 11322 | 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!" )); | ||||
| 11323 | } | ||||
| 11324 | |||||
| 11325 | SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata = | ||||
| 11326 | GetMetadataForObjectStoreId(aObjectStoreId); | ||||
| 11327 | |||||
| 11328 | if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11328 )) { | ||||
| 11329 | return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!" )); | ||||
| 11330 | } | ||||
| 11331 | |||||
| 11332 | if (NS_WARN_IF(MatchMetadataNameOrId(NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata ->mIndexes, aMetadata.id(), SomeRef<const nsAString& >(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11335 ) | ||||
| 11333 | foundObjectStoreMetadata->mIndexes, aMetadata.id(),NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata ->mIndexes, aMetadata.id(), SomeRef<const nsAString& >(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11335 ) | ||||
| 11334 | SomeRef<const nsAString&>(aMetadata.name()))NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata ->mIndexes, aMetadata.id(), SomeRef<const nsAString& >(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11335 ) | ||||
| 11335 | .isSome())NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata ->mIndexes, aMetadata.id(), SomeRef<const nsAString& >(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11335 )) { | ||||
| 11336 | return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!" )); | ||||
| 11337 | } | ||||
| 11338 | |||||
| 11339 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11339 )) { | ||||
| 11340 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11341 | } | ||||
| 11342 | |||||
| 11343 | auto newMetadata = MakeSafeRefPtr<FullIndexMetadata>(); | ||||
| 11344 | newMetadata->mCommonMetadata = aMetadata; | ||||
| 11345 | |||||
| 11346 | if (NS_WARN_IF(!foundObjectStoreMetadata->mIndexes.InsertOrUpdate(NS_warn_if_impl(!foundObjectStoreMetadata->mIndexes.InsertOrUpdate ( aMetadata.id(), std::move(newMetadata), fallible), "!foundObjectStoreMetadata->mIndexes.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11347 ) | ||||
| 11347 | aMetadata.id(), std::move(newMetadata), fallible))NS_warn_if_impl(!foundObjectStoreMetadata->mIndexes.InsertOrUpdate ( aMetadata.id(), std::move(newMetadata), fallible), "!foundObjectStoreMetadata->mIndexes.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11347 )) { | ||||
| 11348 | return IPC_FAIL(this, "mIndexes.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mIndexes.InsertOrUpdate failed!" )); | ||||
| 11349 | } | ||||
| 11350 | |||||
| 11351 | dbMetadata->mNextIndexId++; | ||||
| 11352 | |||||
| 11353 | RefPtr<CreateIndexOp> op = new CreateIndexOp( | ||||
| 11354 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId, | ||||
| 11355 | aMetadata); | ||||
| 11356 | |||||
| 11357 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11357)) { | ||||
| 11358 | op->Cleanup(); | ||||
| 11359 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | ||||
| 11360 | } | ||||
| 11361 | |||||
| 11362 | op->DispatchToConnectionPool(); | ||||
| 11363 | |||||
| 11364 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11365 | } | ||||
| 11366 | |||||
| 11367 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteIndex( | ||||
| 11368 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 11369 | const IndexOrObjectStoreId& aIndexId) { | ||||
| 11370 | AssertIsOnBackgroundThread(); | ||||
| 11371 | |||||
| 11372 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11372)) { | ||||
| 11373 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | ||||
| 11374 | } | ||||
| 11375 | |||||
| 11376 | if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11376)) { | ||||
| 11377 | return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!" )); | ||||
| 11378 | } | ||||
| 11379 | { | ||||
| 11380 | const auto& dbMetadata = GetDatabase().Metadata(); | ||||
| 11381 | MOZ_ASSERT(dbMetadata.mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata.mNextObjectStoreId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextObjectStoreId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbMetadata.mNextObjectStoreId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11381); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0" ")"); do { MOZ_CrashSequence(__null, 11381); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11382 | MOZ_ASSERT(dbMetadata.mNextIndexId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata.mNextIndexId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextIndexId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbMetadata.mNextIndexId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11382); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextIndexId > 0" ")"); do { MOZ_CrashSequence(__null, 11382); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11383 | |||||
| 11384 | if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId , "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11384)) { | ||||
| 11385 | 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!" )); | ||||
| 11386 | } | ||||
| 11387 | |||||
| 11388 | if (NS_WARN_IF(aIndexId >= dbMetadata.mNextIndexId)NS_warn_if_impl(aIndexId >= dbMetadata.mNextIndexId, "aIndexId >= dbMetadata.mNextIndexId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11388 )) { | ||||
| 11389 | 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!" )); | ||||
| 11390 | } | ||||
| 11391 | } | ||||
| 11392 | |||||
| 11393 | SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata = | ||||
| 11394 | GetMetadataForObjectStoreId(aObjectStoreId); | ||||
| 11395 | |||||
| 11396 | if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11396 )) { | ||||
| 11397 | return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!" )); | ||||
| 11398 | } | ||||
| 11399 | |||||
| 11400 | SafeRefPtr<FullIndexMetadata> foundIndexMetadata = | ||||
| 11401 | GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId); | ||||
| 11402 | |||||
| 11403 | if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11403)) { | ||||
| 11404 | return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!" )); | ||||
| 11405 | } | ||||
| 11406 | |||||
| 11407 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11407 )) { | ||||
| 11408 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11409 | } | ||||
| 11410 | |||||
| 11411 | foundIndexMetadata->mDeleted.Flip(); | ||||
| 11412 | |||||
| 11413 | DebugOnly<bool> foundTargetId = false; | ||||
| 11414 | const bool isLastIndex = | ||||
| 11415 | std::all_of(foundObjectStoreMetadata->mIndexes.cbegin(), | ||||
| 11416 | foundObjectStoreMetadata->mIndexes.cend(), | ||||
| 11417 | [&foundTargetId, aIndexId](const auto& indexEntry) -> bool { | ||||
| 11418 | if (uint64_t(aIndexId) == indexEntry.GetKey()) { | ||||
| 11419 | foundTargetId = true; | ||||
| 11420 | return true; | ||||
| 11421 | } | ||||
| 11422 | |||||
| 11423 | return indexEntry.GetData()->mDeleted; | ||||
| 11424 | }); | ||||
| 11425 | MOZ_ASSERT_IF(isLastIndex, foundTargetId)do { if (isLastIndex) { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(foundTargetId)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(foundTargetId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("foundTargetId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11425); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId" ")"); do { MOZ_CrashSequence(__null, 11425); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11426 | |||||
| 11427 | RefPtr<DeleteIndexOp> op = new DeleteIndexOp( | ||||
| 11428 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId, | ||||
| 11429 | aIndexId, foundIndexMetadata->mCommonMetadata.unique(), isLastIndex); | ||||
| 11430 | |||||
| 11431 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11431)) { | ||||
| 11432 | op->Cleanup(); | ||||
| 11433 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | ||||
| 11434 | } | ||||
| 11435 | |||||
| 11436 | op->DispatchToConnectionPool(); | ||||
| 11437 | |||||
| 11438 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11439 | } | ||||
| 11440 | |||||
| 11441 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameIndex( | ||||
| 11442 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 11443 | const IndexOrObjectStoreId& aIndexId, const nsAString& aName) { | ||||
| 11444 | AssertIsOnBackgroundThread(); | ||||
| 11445 | |||||
| 11446 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11446)) { | ||||
| 11447 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | ||||
| 11448 | } | ||||
| 11449 | |||||
| 11450 | if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11450)) { | ||||
| 11451 | return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!" )); | ||||
| 11452 | } | ||||
| 11453 | |||||
| 11454 | const SafeRefPtr<FullDatabaseMetadata> dbMetadata = | ||||
| 11455 | GetDatabase().MetadataPtr(); | ||||
| 11456 | MOZ_ASSERT(dbMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11456); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata" ")"); do { MOZ_CrashSequence(__null, 11456); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11457 | MOZ_ASSERT(dbMetadata->mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata->mNextObjectStoreId > 0)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(dbMetadata->mNextObjectStoreId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbMetadata->mNextObjectStoreId > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11457 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextObjectStoreId > 0" ")"); do { MOZ_CrashSequence(__null, 11457); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11458 | MOZ_ASSERT(dbMetadata->mNextIndexId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata->mNextIndexId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbMetadata->mNextIndexId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbMetadata->mNextIndexId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11458); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextIndexId > 0" ")"); do { MOZ_CrashSequence(__null, 11458); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11459 | |||||
| 11460 | if (NS_WARN_IF(aObjectStoreId >= dbMetadata->mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata->mNextObjectStoreId , "aObjectStoreId >= dbMetadata->mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11460)) { | ||||
| 11461 | 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!" )); | ||||
| 11462 | } | ||||
| 11463 | |||||
| 11464 | if (NS_WARN_IF(aIndexId >= dbMetadata->mNextIndexId)NS_warn_if_impl(aIndexId >= dbMetadata->mNextIndexId, "aIndexId >= dbMetadata->mNextIndexId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11464 )) { | ||||
| 11465 | 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!" )); | ||||
| 11466 | } | ||||
| 11467 | |||||
| 11468 | SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata = | ||||
| 11469 | GetMetadataForObjectStoreId(aObjectStoreId); | ||||
| 11470 | |||||
| 11471 | if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11471 )) { | ||||
| 11472 | return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!" )); | ||||
| 11473 | } | ||||
| 11474 | |||||
| 11475 | SafeRefPtr<FullIndexMetadata> foundIndexMetadata = | ||||
| 11476 | GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId); | ||||
| 11477 | |||||
| 11478 | if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11478)) { | ||||
| 11479 | return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!" )); | ||||
| 11480 | } | ||||
| 11481 | |||||
| 11482 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11482 )) { | ||||
| 11483 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11484 | } | ||||
| 11485 | |||||
| 11486 | foundIndexMetadata->mCommonMetadata.name() = aName; | ||||
| 11487 | |||||
| 11488 | RefPtr<RenameIndexOp> renameOp = new RenameIndexOp( | ||||
| 11489 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), | ||||
| 11490 | *foundIndexMetadata, aObjectStoreId); | ||||
| 11491 | |||||
| 11492 | if (NS_WARN_IF(!renameOp->Init(*this))NS_warn_if_impl(!renameOp->Init(*this), "!renameOp->Init(*this)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11492 )) { | ||||
| 11493 | renameOp->Cleanup(); | ||||
| 11494 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | ||||
| 11495 | } | ||||
| 11496 | |||||
| 11497 | renameOp->DispatchToConnectionPool(); | ||||
| 11498 | |||||
| 11499 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11500 | } | ||||
| 11501 | |||||
| 11502 | PBackgroundIDBRequestParent* | ||||
| 11503 | VersionChangeTransaction::AllocPBackgroundIDBRequestParent( | ||||
| 11504 | const int64_t& aRequestId, const RequestParams& aParams) { | ||||
| 11505 | AssertIsOnBackgroundThread(); | ||||
| 11506 | MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != RequestParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != RequestParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11506 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 11506); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11507 | |||||
| 11508 | return AllocRequest(aRequestId, | ||||
| 11509 | std::move(const_cast<RequestParams&>(aParams)), | ||||
| 11510 | IsSameProcessActor()); | ||||
| 11511 | } | ||||
| 11512 | |||||
| 11513 | mozilla::ipc::IPCResult | ||||
| 11514 | VersionChangeTransaction::RecvPBackgroundIDBRequestConstructor( | ||||
| 11515 | PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId, | ||||
| 11516 | const RequestParams& aParams) { | ||||
| 11517 | AssertIsOnBackgroundThread(); | ||||
| 11518 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11518); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 11518); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11519 | MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != RequestParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != RequestParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11519 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 11519); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11520 | |||||
| 11521 | if (!StartRequest(aActor)) { | ||||
| 11522 | return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!" )); | ||||
| 11523 | } | ||||
| 11524 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11525 | } | ||||
| 11526 | |||||
| 11527 | bool VersionChangeTransaction::DeallocPBackgroundIDBRequestParent( | ||||
| 11528 | PBackgroundIDBRequestParent* aActor) { | ||||
| 11529 | AssertIsOnBackgroundThread(); | ||||
| 11530 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11530); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 11530); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11531 | |||||
| 11532 | return DeallocRequest(aActor); | ||||
| 11533 | } | ||||
| 11534 | |||||
| 11535 | already_AddRefed<PBackgroundIDBCursorParent> | ||||
| 11536 | VersionChangeTransaction::AllocPBackgroundIDBCursorParent( | ||||
| 11537 | const int64_t& aRequestId, const OpenCursorParams& aParams) { | ||||
| 11538 | AssertIsOnBackgroundThread(); | ||||
| 11539 | |||||
| 11540 | return AllocCursor(aParams, IsSameProcessActor()); | ||||
| 11541 | } | ||||
| 11542 | |||||
| 11543 | mozilla::ipc::IPCResult | ||||
| 11544 | VersionChangeTransaction::RecvPBackgroundIDBCursorConstructor( | ||||
| 11545 | PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId, | ||||
| 11546 | const OpenCursorParams& aParams) { | ||||
| 11547 | AssertIsOnBackgroundThread(); | ||||
| 11548 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11548); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 11548); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11549 | MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != OpenCursorParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != OpenCursorParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11549 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None" ")"); do { MOZ_CrashSequence(__null, 11549); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11550 | |||||
| 11551 | if (!StartCursor(aActor, aRequestId, aParams)) { | ||||
| 11552 | return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!" )); | ||||
| 11553 | } | ||||
| 11554 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11555 | } | ||||
| 11556 | |||||
| 11557 | /******************************************************************************* | ||||
| 11558 | * CursorBase | ||||
| 11559 | ******************************************************************************/ | ||||
| 11560 | |||||
| 11561 | CursorBase::CursorBase(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 11562 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | ||||
| 11563 | const Direction aDirection, | ||||
| 11564 | const ConstructFromTransactionBase /*aConstructionTag*/) | ||||
| 11565 | : mTransaction(std::move(aTransaction)), | ||||
| 11566 | mObjectStoreMetadata(WrapNotNull(std::move(aObjectStoreMetadata))), | ||||
| 11567 | mObjectStoreId((*mObjectStoreMetadata)->mCommonMetadata.id()), | ||||
| 11568 | mDirection(aDirection), | ||||
| 11569 | mMaxExtraCount(IndexedDatabaseManager::MaxPreloadExtraRecords()), | ||||
| 11570 | mIsSameProcessActor(!BackgroundParent::IsOtherProcessActor( | ||||
| 11571 | mTransaction->GetBackgroundParent())) { | ||||
| 11572 | AssertIsOnBackgroundThread(); | ||||
| 11573 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 11573); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11574 | |||||
| 11575 | static_assert( | ||||
| 11576 | OpenCursorParams::T__None == 0 && OpenCursorParams::T__Last == 4, | ||||
| 11577 | "Lots of code here assumes only four types of cursors!"); | ||||
| 11578 | } | ||||
| 11579 | |||||
| 11580 | template <IDBCursorType CursorType> | ||||
| 11581 | bool Cursor<CursorType>::VerifyRequestParams( | ||||
| 11582 | const CursorRequestParams& aParams, | ||||
| 11583 | const CursorPosition<CursorType>& aPosition) const { | ||||
| 11584 | AssertIsOnBackgroundThread(); | ||||
| 11585 | MOZ_ASSERT(aParams.type() != CursorRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != CursorRequestParams::T__None)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() != CursorRequestParams::T__None))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != CursorRequestParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11585 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 11585); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11586 | MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11586); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 11586); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11587 | if constexpr (IsIndexCursor) { | ||||
| 11588 | MOZ_ASSERT(this->mIndexMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mIndexMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mIndexMetadata))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("this->mIndexMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11588 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata" ")"); do { MOZ_CrashSequence(__null, 11588); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11589 | } | ||||
| 11590 | |||||
| 11591 | #ifdef DEBUG1 | ||||
| 11592 | { | ||||
| 11593 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 11594 | mTransaction->GetMetadataForObjectStoreId(mObjectStoreId); | ||||
| 11595 | if (objectStoreMetadata) { | ||||
| 11596 | MOZ_ASSERT(objectStoreMetadata == (*this->mObjectStoreMetadata))do { static_assert( mozilla::detail::AssertionConditionType< decltype(objectStoreMetadata == (*this->mObjectStoreMetadata ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(objectStoreMetadata == (*this->mObjectStoreMetadata )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("objectStoreMetadata == (*this->mObjectStoreMetadata)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11596); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata == (*this->mObjectStoreMetadata)" ")"); do { MOZ_CrashSequence(__null, 11596); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11597 | } else { | ||||
| 11598 | MOZ_ASSERT((*this->mObjectStoreMetadata)->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype((*this->mObjectStoreMetadata)->mDeleted)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!((*this->mObjectStoreMetadata)->mDeleted))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("(*this->mObjectStoreMetadata)->mDeleted" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11598 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mObjectStoreMetadata)->mDeleted" ")"); do { MOZ_CrashSequence(__null, 11598); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11599 | } | ||||
| 11600 | |||||
| 11601 | if constexpr (IsIndexCursor) { | ||||
| 11602 | if (objectStoreMetadata) { | ||||
| 11603 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 11604 | mTransaction->GetMetadataForIndexId(*objectStoreMetadata, | ||||
| 11605 | this->mIndexId); | ||||
| 11606 | if (indexMetadata) { | ||||
| 11607 | MOZ_ASSERT(indexMetadata == *this->mIndexMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(indexMetadata == *this->mIndexMetadata)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(indexMetadata == *this->mIndexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata == *this->mIndexMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11607 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata == *this->mIndexMetadata" ")"); do { MOZ_CrashSequence(__null, 11607); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11608 | } else { | ||||
| 11609 | MOZ_ASSERT((*this->mIndexMetadata)->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype((*this->mIndexMetadata)->mDeleted)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!((*this->mIndexMetadata)->mDeleted))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("(*this->mIndexMetadata)->mDeleted" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11609 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mIndexMetadata)->mDeleted" ")"); do { MOZ_CrashSequence(__null, 11609); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11610 | } | ||||
| 11611 | } | ||||
| 11612 | } | ||||
| 11613 | } | ||||
| 11614 | #endif | ||||
| 11615 | |||||
| 11616 | if (NS_AUUF_OR_WARN_IF((*this->mObjectStoreMetadata)->mDeleted)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "(*this->mObjectStoreMetadata)->mDeleted" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11616 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "(*this->mObjectStoreMetadata)->mDeleted" ")"); do { MOZ_CrashSequence(__null, 11616); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }(((*this->mObjectStoreMetadata)->mDeleted))) { | ||||
| 11617 | return false; | ||||
| 11618 | } | ||||
| 11619 | |||||
| 11620 | if constexpr (IsIndexCursor) { | ||||
| 11621 | if (NS_AUUF_OR_WARN_IF(this->mIndexMetadata &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11622 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted" ")"); do { MOZ_CrashSequence(__null, 11622); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((this->mIndexMetadata && (*this->mIndexMetadata )->mDeleted)) | ||||
| 11622 | (*this->mIndexMetadata)->mDeleted)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11622 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted" ")"); do { MOZ_CrashSequence(__null, 11622); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((this->mIndexMetadata && (*this->mIndexMetadata )->mDeleted))) { | ||||
| 11623 | return false; | ||||
| 11624 | } | ||||
| 11625 | } | ||||
| 11626 | |||||
| 11627 | const Key& sortKey = aPosition.GetSortKey(this->IsLocaleAware()); | ||||
| 11628 | |||||
| 11629 | switch (aParams.type()) { | ||||
| 11630 | case CursorRequestParams::TContinueParams: { | ||||
| 11631 | const Key& key = aParams.get_ContinueParams().key(); | ||||
| 11632 | if (!key.IsUnset()) { | ||||
| 11633 | switch (mDirection) { | ||||
| 11634 | case IDBCursorDirection::Next: | ||||
| 11635 | case IDBCursorDirection::Nextunique: | ||||
| 11636 | if (NS_AUUF_OR_WARN_IF(key <= sortKey)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key <= sortKey" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11636); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key <= sortKey" ")"); do { MOZ_CrashSequence(__null, 11636 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key <= sortKey))) { | ||||
| 11637 | return false; | ||||
| 11638 | } | ||||
| 11639 | break; | ||||
| 11640 | |||||
| 11641 | case IDBCursorDirection::Prev: | ||||
| 11642 | case IDBCursorDirection::Prevunique: | ||||
| 11643 | if (NS_AUUF_OR_WARN_IF(key >= sortKey)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key >= sortKey" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key >= sortKey" ")"); do { MOZ_CrashSequence(__null, 11643 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key >= sortKey))) { | ||||
| 11644 | return false; | ||||
| 11645 | } | ||||
| 11646 | break; | ||||
| 11647 | |||||
| 11648 | default: | ||||
| 11649 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11649 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 11649); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 11650 | } | ||||
| 11651 | } | ||||
| 11652 | break; | ||||
| 11653 | } | ||||
| 11654 | |||||
| 11655 | case CursorRequestParams::TContinuePrimaryKeyParams: { | ||||
| 11656 | if constexpr (IsIndexCursor) { | ||||
| 11657 | const Key& key = aParams.get_ContinuePrimaryKeyParams().key(); | ||||
| 11658 | const Key& primaryKey = | ||||
| 11659 | aParams.get_ContinuePrimaryKeyParams().primaryKey(); | ||||
| 11660 | MOZ_ASSERT(!key.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!key.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!key.IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!key.IsUnset()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11660 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!key.IsUnset()" ")" ); do { MOZ_CrashSequence(__null, 11660); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11661 | MOZ_ASSERT(!primaryKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!primaryKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!primaryKey.IsUnset()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!primaryKey.IsUnset()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11661 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!primaryKey.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 11661); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11662 | switch (mDirection) { | ||||
| 11663 | case IDBCursorDirection::Next: | ||||
| 11664 | if (NS_AUUF_OR_WARN_IF(key < sortKey ||[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11666 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")"); do { MOZ_CrashSequence(__null, 11666); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey))) | ||||
| 11665 | (key == sortKey &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11666 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")"); do { MOZ_CrashSequence(__null, 11666); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey))) | ||||
| 11666 | primaryKey <= aPosition.mObjectStoreKey))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11666 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")"); do { MOZ_CrashSequence(__null, 11666); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)))) { | ||||
| 11667 | return false; | ||||
| 11668 | } | ||||
| 11669 | break; | ||||
| 11670 | |||||
| 11671 | case IDBCursorDirection::Prev: | ||||
| 11672 | if (NS_AUUF_OR_WARN_IF(key > sortKey ||[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11674 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")"); do { MOZ_CrashSequence(__null, 11674); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey))) | ||||
| 11673 | (key == sortKey &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11674 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")"); do { MOZ_CrashSequence(__null, 11674); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey))) | ||||
| 11674 | primaryKey >= aPosition.mObjectStoreKey))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11674 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")"); do { MOZ_CrashSequence(__null, 11674); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)))) { | ||||
| 11675 | return false; | ||||
| 11676 | } | ||||
| 11677 | break; | ||||
| 11678 | |||||
| 11679 | default: | ||||
| 11680 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11680 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 11680); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 11681 | } | ||||
| 11682 | } | ||||
| 11683 | break; | ||||
| 11684 | } | ||||
| 11685 | |||||
| 11686 | case CursorRequestParams::TAdvanceParams: | ||||
| 11687 | if (NS_AUUF_OR_WARN_IF(!aParams.get_AdvanceParams().count())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!aParams.get_AdvanceParams().count()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11687); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aParams.get_AdvanceParams().count()" ")"); do { MOZ_CrashSequence (__null, 11687); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!aParams.get_AdvanceParams ().count()))) { | ||||
| 11688 | return false; | ||||
| 11689 | } | ||||
| 11690 | break; | ||||
| 11691 | |||||
| 11692 | default: | ||||
| 11693 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11693 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 11693); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 11694 | } | ||||
| 11695 | |||||
| 11696 | return true; | ||||
| 11697 | } | ||||
| 11698 | |||||
| 11699 | template <IDBCursorType CursorType> | ||||
| 11700 | bool Cursor<CursorType>::Start(const int64_t aRequestId, | ||||
| 11701 | const OpenCursorParams& aParams) { | ||||
| 11702 | AssertIsOnBackgroundThread(); | ||||
| 11703 | MOZ_ASSERT(aParams.type() == ToOpenCursorParamsType(CursorType))do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == ToOpenCursorParamsType(CursorType) )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == ToOpenCursorParamsType(CursorType) ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == ToOpenCursorParamsType(CursorType)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == ToOpenCursorParamsType(CursorType)" ")"); do { MOZ_CrashSequence(__null, 11703); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11704 | MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 11704); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11705 | |||||
| 11706 | if (NS_AUUF_OR_WARN_IF(mCurrentlyRunningOp)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mCurrentlyRunningOp" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mCurrentlyRunningOp" ")"); do { MOZ_CrashSequence(__null, 11706 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mCurrentlyRunningOp))) { | ||||
| 11707 | return false; | ||||
| 11708 | } | ||||
| 11709 | |||||
| 11710 | const Maybe<SerializedKeyRange>& optionalKeyRange = | ||||
| 11711 | GetCommonOpenCursorParams(aParams).optionalKeyRange(); | ||||
| 11712 | |||||
| 11713 | const RefPtr<OpenOp> openOp = new OpenOp(this, aRequestId, optionalKeyRange); | ||||
| 11714 | |||||
| 11715 | if (NS_WARN_IF(!openOp->Init(*mTransaction))NS_warn_if_impl(!openOp->Init(*mTransaction), "!openOp->Init(*mTransaction)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11715 )) { | ||||
| 11716 | openOp->Cleanup(); | ||||
| 11717 | return false; | ||||
| 11718 | } | ||||
| 11719 | |||||
| 11720 | openOp->DispatchToConnectionPool(); | ||||
| 11721 | mCurrentlyRunningOp = openOp; | ||||
| 11722 | |||||
| 11723 | return true; | ||||
| 11724 | } | ||||
| 11725 | |||||
| 11726 | void ValueCursorBase::ProcessFiles(CursorResponse& aResponse, | ||||
| 11727 | const FilesArray& aFiles) { | ||||
| 11728 | MOZ_ASSERT_IF(do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11734); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11734); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11729 | aResponse.type() == CursorResponse::Tnsresult ||do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11734); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11734); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11730 | aResponse.type() == CursorResponse::Tvoid_t ||do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11734); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11734); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11731 | aResponse.type() ==do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11734); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11734); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11732 | CursorResponse::TArrayOfObjectStoreKeyCursorResponse ||do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11734); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11734); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11733 | aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse,do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11734); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11734); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11734 | aFiles.IsEmpty())do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11734); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11734); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11735 | |||||
| 11736 | for (size_t i = 0; i < aFiles.Length(); ++i) { | ||||
| 11737 | const auto& files = aFiles[i]; | ||||
| 11738 | if (!files.IsEmpty()) { | ||||
| 11739 | // TODO: Replace this assertion by one that checks if the response type | ||||
| 11740 | // matches the cursor type, at a more generic location. | ||||
| 11741 | MOZ_ASSERT(aResponse.type() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11744 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" ")"); do { MOZ_CrashSequence(__null, 11744); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 11742 | CursorResponse::TArrayOfObjectStoreCursorResponse ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11744 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" ")"); do { MOZ_CrashSequence(__null, 11744); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 11743 | aResponse.type() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11744 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" ")"); do { MOZ_CrashSequence(__null, 11744); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 11744 | CursorResponse::TArrayOfIndexCursorResponse)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11744 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" ")"); do { MOZ_CrashSequence(__null, 11744); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11745 | |||||
| 11746 | SerializedStructuredCloneReadInfo* serializedInfo = nullptr; | ||||
| 11747 | switch (aResponse.type()) { | ||||
| 11748 | case CursorResponse::TArrayOfObjectStoreCursorResponse: { | ||||
| 11749 | auto& responses = aResponse.get_ArrayOfObjectStoreCursorResponse(); | ||||
| 11750 | MOZ_ASSERT(i < responses.Length())do { static_assert( mozilla::detail::AssertionConditionType< decltype(i < responses.Length())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(i < responses.Length()))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("i < responses.Length()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11750 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()" ")"); do { MOZ_CrashSequence(__null, 11750); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11751 | serializedInfo = &responses[i].cloneInfo(); | ||||
| 11752 | break; | ||||
| 11753 | } | ||||
| 11754 | |||||
| 11755 | case CursorResponse::TArrayOfIndexCursorResponse: { | ||||
| 11756 | auto& responses = aResponse.get_ArrayOfIndexCursorResponse(); | ||||
| 11757 | MOZ_ASSERT(i < responses.Length())do { static_assert( mozilla::detail::AssertionConditionType< decltype(i < responses.Length())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(i < responses.Length()))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("i < responses.Length()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11757 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()" ")"); do { MOZ_CrashSequence(__null, 11757); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11758 | serializedInfo = &responses[i].cloneInfo(); | ||||
| 11759 | break; | ||||
| 11760 | } | ||||
| 11761 | |||||
| 11762 | default: | ||||
| 11763 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11763 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 11763); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 11764 | } | ||||
| 11765 | |||||
| 11766 | MOZ_ASSERT(serializedInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(serializedInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(serializedInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("serializedInfo" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11766 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo" ")" ); do { MOZ_CrashSequence(__null, 11766); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11767 | MOZ_ASSERT(serializedInfo->files().IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(serializedInfo->files().IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(serializedInfo->files().IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("serializedInfo->files().IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo->files().IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11767); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11768 | MOZ_ASSERT(this->mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("this->mDatabase" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11768 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mDatabase" ")"); do { MOZ_CrashSequence(__null, 11768); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11769 | |||||
| 11770 | QM_TRY_UNWRAP(serializedInfo->files(),auto tryResult1006 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1006 .isErr()), 0))) { auto tryTempError = tryResult1006.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11775, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo->files() = tryResult1006 .unwrap(); | ||||
| 11771 | SerializeStructuredCloneFiles(this->mDatabase, files,auto tryResult1006 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1006 .isErr()), 0))) { auto tryTempError = tryResult1006.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11775, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo->files() = tryResult1006 .unwrap(); | ||||
| 11772 | /* aForPreprocess */ false),auto tryResult1006 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1006 .isErr()), 0))) { auto tryTempError = tryResult1006.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11775, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo->files() = tryResult1006 .unwrap(); | ||||
| 11773 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1006 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1006 .isErr()), 0))) { auto tryTempError = tryResult1006.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11775, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo->files() = tryResult1006 .unwrap(); | ||||
| 11774 | aResponse = ClampResultCode(result);auto tryResult1006 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1006 .isErr()), 0))) { auto tryTempError = tryResult1006.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11775, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo->files() = tryResult1006 .unwrap(); | ||||
| 11775 | })auto tryResult1006 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1006 .isErr()), 0))) { auto tryTempError = tryResult1006.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11775, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo->files() = tryResult1006 .unwrap();; | ||||
| 11776 | } | ||||
| 11777 | } | ||||
| 11778 | } | ||||
| 11779 | |||||
| 11780 | template <IDBCursorType CursorType> | ||||
| 11781 | void Cursor<CursorType>::SendResponseInternal( | ||||
| 11782 | CursorResponse& aResponse, const FilesArrayT<CursorType>& aFiles) { | ||||
| 11783 | AssertIsOnBackgroundThread(); | ||||
| 11784 | MOZ_ASSERT(aResponse.type() != CursorResponse::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResponse.type() != CursorResponse::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aResponse.type() != CursorResponse::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aResponse.type() != CursorResponse::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11784 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() != CursorResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 11784); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11785 | MOZ_ASSERT_IF(aResponse.type() == CursorResponse::Tnsresult,do { if (aResponse.type() == CursorResponse::Tnsresult) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult ())), 0))))>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl (aResponse.get_nsresult())), 0)))))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11786 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))" ")"); do { MOZ_CrashSequence(__null, 11786); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11786 | NS_FAILED(aResponse.get_nsresult()))do { if (aResponse.type() == CursorResponse::Tnsresult) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult ())), 0))))>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl (aResponse.get_nsresult())), 0)))))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11786 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))" ")"); do { MOZ_CrashSequence(__null, 11786); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11787 | MOZ_ASSERT_IF(aResponse.type() == CursorResponse::Tnsresult,do { if (aResponse.type() == CursorResponse::Tnsresult) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11789 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" ")"); do { MOZ_CrashSequence(__null, 11789); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11788 | NS_ERROR_GET_MODULE(aResponse.get_nsresult()) ==do { if (aResponse.type() == CursorResponse::Tnsresult) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11789 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" ")"); do { MOZ_CrashSequence(__null, 11789); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11789 | NS_ERROR_MODULE_DOM_INDEXEDDB)do { if (aResponse.type() == CursorResponse::Tnsresult) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11789 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" ")"); do { MOZ_CrashSequence(__null, 11789); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11790 | MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11790); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 11790); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11791 | MOZ_ASSERT(mCurrentlyRunningOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCurrentlyRunningOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCurrentlyRunningOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCurrentlyRunningOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11791 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentlyRunningOp" ")"); do { MOZ_CrashSequence(__null, 11791); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11792 | |||||
| 11793 | KeyValueBase::ProcessFiles(aResponse, aFiles); | ||||
| 11794 | |||||
| 11795 | // Work around the deleted function by casting to the base class. | ||||
| 11796 | QM_WARNONLY_TRY(OkIf({auto tryResult1007 = (OkIf( static_cast<PBackgroundIDBCursorParent *>(this)->SendResponse(aResponse))); static_assert(std:: is_empty_v<typename decltype(tryResult1007)::ok_type>); if ((__builtin_expect(!!(tryResult1007.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf( static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))" , tryResult1007.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11797, mozilla::dom::quota::Severity::Warning); }} | ||||
| 11797 | static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))){auto tryResult1007 = (OkIf( static_cast<PBackgroundIDBCursorParent *>(this)->SendResponse(aResponse))); static_assert(std:: is_empty_v<typename decltype(tryResult1007)::ok_type>); if ((__builtin_expect(!!(tryResult1007.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf( static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))" , tryResult1007.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11797, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 11798 | |||||
| 11799 | mCurrentlyRunningOp = nullptr; | ||||
| 11800 | } | ||||
| 11801 | |||||
| 11802 | template <IDBCursorType CursorType> | ||||
| 11803 | void Cursor<CursorType>::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 11804 | AssertIsOnBackgroundThread(); | ||||
| 11805 | |||||
| 11806 | if (mCurrentlyRunningOp) { | ||||
| 11807 | mCurrentlyRunningOp->NoteActorDestroyed(); | ||||
| 11808 | } | ||||
| 11809 | |||||
| 11810 | if constexpr (IsValueCursor) { | ||||
| 11811 | this->mBackgroundParent.destroy(); | ||||
| 11812 | } | ||||
| 11813 | this->mObjectStoreMetadata.destroy(); | ||||
| 11814 | if constexpr (IsIndexCursor) { | ||||
| 11815 | this->mIndexMetadata.destroy(); | ||||
| 11816 | } | ||||
| 11817 | } | ||||
| 11818 | |||||
| 11819 | template <IDBCursorType CursorType> | ||||
| 11820 | mozilla::ipc::IPCResult Cursor<CursorType>::RecvDeleteMe() { | ||||
| 11821 | AssertIsOnBackgroundThread(); | ||||
| 11822 | MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11822); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 11822); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11823 | |||||
| 11824 | if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11824)) { | ||||
| 11825 | return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!" )) | ||||
| 11826 | this,mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!" )) | ||||
| 11827 | "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!" )); | ||||
| 11828 | } | ||||
| 11829 | |||||
| 11830 | QM_WARNONLY_TRY(OkIf(PBackgroundIDBCursorParent::Send__delete__(this))){auto tryResult1008 = (OkIf(PBackgroundIDBCursorParent::Send__delete__ (this))); static_assert(std::is_empty_v<typename decltype( tryResult1008)::ok_type>); if ((__builtin_expect(!!(tryResult1008 .isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBCursorParent::Send__delete__(this))" , tryResult1008.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11830, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 11831 | |||||
| 11832 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11833 | } | ||||
| 11834 | |||||
| 11835 | template <IDBCursorType CursorType> | ||||
| 11836 | mozilla::ipc::IPCResult Cursor<CursorType>::RecvContinue( | ||||
| 11837 | const int64_t& aRequestId, const CursorRequestParams& aParams, | ||||
| 11838 | const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) { | ||||
| 11839 | AssertIsOnBackgroundThread(); | ||||
| 11840 | MOZ_ASSERT(aParams.type() != CursorRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != CursorRequestParams::T__None)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() != CursorRequestParams::T__None))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != CursorRequestParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11840 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 11840); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11841 | MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11841); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 11841); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11842 | if constexpr (IsIndexCursor) { | ||||
| 11843 | MOZ_ASSERT(this->mIndexMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mIndexMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mIndexMetadata))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("this->mIndexMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11843 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata" ")"); do { MOZ_CrashSequence(__null, 11843); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11844 | } | ||||
| 11845 | |||||
| 11846 | const bool trustParams = | ||||
| 11847 | #ifdef DEBUG1 | ||||
| 11848 | // Always verify parameters in DEBUG builds! | ||||
| 11849 | false | ||||
| 11850 | #else | ||||
| 11851 | this->mIsSameProcessActor | ||||
| 11852 | #endif | ||||
| 11853 | ; | ||||
| 11854 | |||||
| 11855 | MOZ_ASSERT(!aCurrentKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aCurrentKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aCurrentKey.IsUnset()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aCurrentKey.IsUnset()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11855 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCurrentKey.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 11855); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11856 | |||||
| 11857 | QM_TRY_UNWRAP(auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11858 | auto position,auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11859 | ([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> {auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11860 | if constexpr (IsIndexCursor) {auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11861 | auto localeAwarePosition = Key{};auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11862 | if (this->IsLocaleAware()) {auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11863 | QM_TRY_UNWRAP(auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11864 | localeAwarePosition,auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11865 | aCurrentKey.ToLocaleAwareKey(this->mLocale),auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11866 | Err(IPC_FAIL(this, "aCurrentKey.ToLocaleAwareKey failed!")));auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11867 | }auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11868 | return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition,auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11869 | aCurrentObjectStoreKey};auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11870 | } else {auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11871 | return CursorPosition<CursorType>{aCurrentKey};auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11872 | }auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap(); | ||||
| 11873 | }()))auto tryResult1010 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1010.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1009 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1009.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1010.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11873, mozilla::dom::quota::Severity::Error); return tryResult1010 .propagateErr(); } auto position = tryResult1010.unwrap();; | ||||
| 11874 | |||||
| 11875 | if (!trustParams && !VerifyRequestParams(aParams, position)) { | ||||
| 11876 | return IPC_FAIL(this, "VerifyRequestParams failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("VerifyRequestParams failed!" )); | ||||
| 11877 | } | ||||
| 11878 | |||||
| 11879 | if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11879)) { | ||||
| 11880 | return IPC_FAIL(this, "Cursor is CurrentlyRunningOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Cursor is CurrentlyRunningOp!" )); | ||||
| 11881 | } | ||||
| 11882 | |||||
| 11883 | if (NS_WARN_IF(mTransaction->mCommitOrAbortReceived)NS_warn_if_impl(mTransaction->mCommitOrAbortReceived, "mTransaction->mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11883 )) { | ||||
| 11884 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11885 | } | ||||
| 11886 | |||||
| 11887 | const RefPtr<ContinueOp> continueOp = | ||||
| 11888 | new ContinueOp(this, aRequestId, aParams, std::move(position)); | ||||
| 11889 | if (NS_WARN_IF(!continueOp->Init(*mTransaction))NS_warn_if_impl(!continueOp->Init(*mTransaction), "!continueOp->Init(*mTransaction)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11889 )) { | ||||
| 11890 | continueOp->Cleanup(); | ||||
| 11891 | return IPC_FAIL(this, "ContinueOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ContinueOp initialization failed!" )); | ||||
| 11892 | } | ||||
| 11893 | |||||
| 11894 | continueOp->DispatchToConnectionPool(); | ||||
| 11895 | mCurrentlyRunningOp = continueOp; | ||||
| 11896 | |||||
| 11897 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11898 | } | ||||
| 11899 | |||||
| 11900 | /******************************************************************************* | ||||
| 11901 | * DatabaseFileManager | ||||
| 11902 | ******************************************************************************/ | ||||
| 11903 | |||||
| 11904 | DatabaseFileManager::MutexType DatabaseFileManager::sMutex; | ||||
| 11905 | |||||
| 11906 | DatabaseFileManager::DatabaseFileManager( | ||||
| 11907 | PersistenceType aPersistenceType, | ||||
| 11908 | const quota::OriginMetadata& aOriginMetadata, | ||||
| 11909 | const nsAString& aDatabaseName, const nsCString& aDatabaseID, | ||||
| 11910 | const nsAString& aDatabaseFilePath, bool aEnforcingQuota, | ||||
| 11911 | bool aIsInPrivateBrowsingMode) | ||||
| 11912 | : mPersistenceType(aPersistenceType), | ||||
| 11913 | mOriginMetadata(aOriginMetadata), | ||||
| 11914 | mDatabaseName(aDatabaseName), | ||||
| 11915 | mDatabaseID(aDatabaseID), | ||||
| 11916 | mDatabaseFilePath(aDatabaseFilePath), | ||||
| 11917 | mCipherKeyManager( | ||||
| 11918 | aIsInPrivateBrowsingMode | ||||
| 11919 | ? new IndexedDBCipherKeyManager("IndexedDBCipherKeyManager") | ||||
| 11920 | : nullptr), | ||||
| 11921 | mDatabaseVersion(0), | ||||
| 11922 | mEnforcingQuota(aEnforcingQuota), | ||||
| 11923 | mIsInPrivateBrowsingMode(aIsInPrivateBrowsingMode) {} | ||||
| 11924 | |||||
| 11925 | uint64_t DatabaseFileManager::DatabaseVersion() const { | ||||
| 11926 | AssertIsOnIOThread(); | ||||
| 11927 | |||||
| 11928 | return mDatabaseVersion; | ||||
| 11929 | } | ||||
| 11930 | |||||
| 11931 | void DatabaseFileManager::UpdateDatabaseVersion(uint64_t aDatabaseVersion) { | ||||
| 11932 | AssertIsOnIOThread(); | ||||
| 11933 | |||||
| 11934 | mDatabaseVersion = aDatabaseVersion; | ||||
| 11935 | } | ||||
| 11936 | |||||
| 11937 | nsresult DatabaseFileManager::Init(nsIFile* aDirectory, | ||||
| 11938 | const uint64_t aDatabaseVersion, | ||||
| 11939 | mozIStorageConnection& aConnection) { | ||||
| 11940 | AssertIsOnIOThread(); | ||||
| 11941 | MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11941); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { MOZ_CrashSequence(__null, 11941); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11942 | |||||
| 11943 | { | ||||
| 11944 | QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult1011 = (ExistsAsDirectory(*aDirectory)); if ((__builtin_expect (!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError ("ExistsAsDirectory(*aDirectory)", tryResult1011.inspectErr() , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11945 , mozilla::dom::quota::Severity::Error); return tryResult1011 .propagateErr(); } const bool& existsAsDirectory = tryResult1011 .inspect(); | ||||
| 11945 | ExistsAsDirectory(*aDirectory))auto tryResult1011 = (ExistsAsDirectory(*aDirectory)); if ((__builtin_expect (!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError ("ExistsAsDirectory(*aDirectory)", tryResult1011.inspectErr() , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11945 , mozilla::dom::quota::Severity::Error); return tryResult1011 .propagateErr(); } const bool& existsAsDirectory = tryResult1011 .inspect();; | ||||
| 11946 | |||||
| 11947 | if (!existsAsDirectory) { | ||||
| 11948 | QM_TRY(MOZ_TO_RESULT(aDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))){auto tryResult1012 = (ToResult(aDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect (!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11948, mozilla::dom::quota::Severity::Error); return tryResult1012 .propagateErr(); }}; | ||||
| 11949 | } | ||||
| 11950 | |||||
| 11951 | QM_TRY_UNWRAP(auto path, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1013 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (aDirectory)>::GetPath), (aDirectory) )); if ((__builtin_expect (!!(tryResult1013.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetPath), (aDirectory) )" , tryResult1013.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11952, mozilla::dom::quota::Severity::Error); return tryResult1013 .propagateErr(); } auto path = tryResult1013.unwrap(); | ||||
| 11952 | nsString, aDirectory, GetPath))auto tryResult1013 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (aDirectory)>::GetPath), (aDirectory) )); if ((__builtin_expect (!!(tryResult1013.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetPath), (aDirectory) )" , tryResult1013.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11952, mozilla::dom::quota::Severity::Error); return tryResult1013 .propagateErr(); } auto path = tryResult1013.unwrap();; | ||||
| 11953 | |||||
| 11954 | mDirectoryPath.init(std::move(path)); | ||||
| 11955 | } | ||||
| 11956 | |||||
| 11957 | QM_TRY_INSPECT(const auto& journalDirectory,auto tryResult1014 = (CloneFileAndAppend(*aDirectory, kJournalDirectoryName )); if ((__builtin_expect(!!(tryResult1014.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, kJournalDirectoryName)" , tryResult1014.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11958, mozilla::dom::quota::Severity::Error); return tryResult1014 .propagateErr(); } const auto& journalDirectory = tryResult1014 .inspect(); | ||||
| 11958 | CloneFileAndAppend(*aDirectory, kJournalDirectoryName))auto tryResult1014 = (CloneFileAndAppend(*aDirectory, kJournalDirectoryName )); if ((__builtin_expect(!!(tryResult1014.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, kJournalDirectoryName)" , tryResult1014.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11958, mozilla::dom::quota::Severity::Error); return tryResult1014 .propagateErr(); } const auto& journalDirectory = tryResult1014 .inspect();; | ||||
| 11959 | |||||
| 11960 | // We don't care if it doesn't exist at all, but if it does exist, make sure | ||||
| 11961 | // it's a directory. | ||||
| 11962 | QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult1015 = (ExistsAsDirectory(*journalDirectory)); if ((__builtin_expect(!!(tryResult1015.isErr()), 0))) { mozilla ::dom::quota::HandleError("ExistsAsDirectory(*journalDirectory)" , tryResult1015.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11963, mozilla::dom::quota::Severity::Error); return tryResult1015 .propagateErr(); } const bool& existsAsDirectory = tryResult1015 .inspect(); | ||||
| 11963 | ExistsAsDirectory(*journalDirectory))auto tryResult1015 = (ExistsAsDirectory(*journalDirectory)); if ((__builtin_expect(!!(tryResult1015.isErr()), 0))) { mozilla ::dom::quota::HandleError("ExistsAsDirectory(*journalDirectory)" , tryResult1015.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11963, mozilla::dom::quota::Severity::Error); return tryResult1015 .propagateErr(); } const bool& existsAsDirectory = tryResult1015 .inspect();; | ||||
| 11964 | (void)existsAsDirectory; | ||||
| 11965 | |||||
| 11966 | { | ||||
| 11967 | QM_TRY_UNWRAP(auto path, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1016 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory) )); if ( (__builtin_expect(!!(tryResult1016.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )" , tryResult1016.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11968, mozilla::dom::quota::Severity::Error); return tryResult1016 .propagateErr(); } auto path = tryResult1016.unwrap(); | ||||
| 11968 | nsString, journalDirectory, GetPath))auto tryResult1016 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory) )); if ( (__builtin_expect(!!(tryResult1016.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )" , tryResult1016.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11968, mozilla::dom::quota::Severity::Error); return tryResult1016 .propagateErr(); } auto path = tryResult1016.unwrap();; | ||||
| 11969 | |||||
| 11970 | mJournalDirectoryPath.init(std::move(path)); | ||||
| 11971 | } | ||||
| 11972 | |||||
| 11973 | mDatabaseVersion = aDatabaseVersion; | ||||
| 11974 | |||||
| 11975 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1017 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, refcount FROM file"_ns)); if (( __builtin_expect(!!(tryResult1017.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)" , tryResult1017.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11978, mozilla::dom::quota::Severity::Error); return tryResult1017 .propagateErr(); } const auto& stmt = tryResult1017.inspect (); | ||||
| 11976 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1017 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, refcount FROM file"_ns)); if (( __builtin_expect(!!(tryResult1017.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)" , tryResult1017.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11978, mozilla::dom::quota::Severity::Error); return tryResult1017 .propagateErr(); } const auto& stmt = tryResult1017.inspect (); | ||||
| 11977 | nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1017 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, refcount FROM file"_ns)); if (( __builtin_expect(!!(tryResult1017.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)" , tryResult1017.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11978, mozilla::dom::quota::Severity::Error); return tryResult1017 .propagateErr(); } const auto& stmt = tryResult1017.inspect (); | ||||
| 11978 | CreateStatement, "SELECT id, refcount FROM file"_ns))auto tryResult1017 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, refcount FROM file"_ns)); if (( __builtin_expect(!!(tryResult1017.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)" , tryResult1017.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11978, mozilla::dom::quota::Severity::Error); return tryResult1017 .propagateErr(); } const auto& stmt = tryResult1017.inspect ();; | ||||
| 11979 | |||||
| 11980 | QM_TRY({auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }} | ||||
| 11981 | CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }} | ||||
| 11982 | QM_TRY_INSPECT(const int64_t& id,{auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }} | ||||
| 11983 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 0));{auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }} | ||||
| 11984 | QM_TRY_INSPECT(const int32_t& dbRefCnt,{auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }} | ||||
| 11985 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt32, 1));{auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }} | ||||
| 11986 | |||||
| 11987 | // We put a raw pointer into the hash table, so the memory refcount will{auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }} | ||||
| 11988 | // be 0, but the dbRefCnt is non-zero, which will keep the{auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }} | ||||
| 11989 | // DatabaseFileInfo object alive.{auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }} | ||||
| 11990 | MOZ_ASSERT(dbRefCnt > 0);{auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }} | ||||
| 11991 | DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt));{auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }} | ||||
| 11992 | MOZ_ASSERT(ok);{auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }} | ||||
| 11993 | |||||
| 11994 | return Ok{};{auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }} | ||||
| 11995 | })){auto tryResult1020 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); return tryResult1018 .propagateErr(); } const int64_t& id = tryResult1018.inspect ();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11985, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } const int32_t& dbRefCnt = tryResult1019 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11990 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt) ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(ok)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); 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, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1018 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1018.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11983, mozilla::dom::quota::Severity::Error); return tryResult1018.propagateErr(); } const int64_t& id = tryResult1018.inspect();; auto tryResult1019 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11985, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); } const int32_t& dbRefCnt = tryResult1019.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11990); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11990); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11992); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11992); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11995, mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); }}; | ||||
| 11996 | |||||
| 11997 | mInitialized.Flip(); | ||||
| 11998 | |||||
| 11999 | return NS_OK; | ||||
| 12000 | } | ||||
| 12001 | |||||
| 12002 | nsCOMPtr<nsIFile> DatabaseFileManager::GetDirectory() { | ||||
| 12003 | if (!this->AssertValid()) { | ||||
| 12004 | return nullptr; | ||||
| 12005 | } | ||||
| 12006 | |||||
| 12007 | return GetFileForPath(*mDirectoryPath); | ||||
| 12008 | } | ||||
| 12009 | |||||
| 12010 | nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedDirectory() { | ||||
| 12011 | auto directory = GetDirectory(); | ||||
| 12012 | if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12012)) { | ||||
| 12013 | return nullptr; | ||||
| 12014 | } | ||||
| 12015 | |||||
| 12016 | DebugOnly<bool> exists; | ||||
| 12017 | MOZ_ASSERT(NS_SUCCEEDED(directory->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory ->Exists(&exists))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(directory->Exists(&exists))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->Exists(&exists))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12017 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->Exists(&exists))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12017); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12018 | MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType< decltype(exists)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("exists", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12018); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")" ); do { MOZ_CrashSequence(__null, 12018); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 12019 | |||||
| 12020 | DebugOnly<bool> isDirectory; | ||||
| 12021 | MOZ_ASSERT(NS_SUCCEEDED(directory->IsDirectory(&isDirectory)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory ->IsDirectory(&isDirectory))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(directory->IsDirectory(&isDirectory))) , 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12021 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12021); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12022 | MOZ_ASSERT(isDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(isDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12022); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12022); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12023 | |||||
| 12024 | return directory; | ||||
| 12025 | } | ||||
| 12026 | |||||
| 12027 | nsCOMPtr<nsIFile> DatabaseFileManager::GetJournalDirectory() { | ||||
| 12028 | if (!this->AssertValid()) { | ||||
| 12029 | return nullptr; | ||||
| 12030 | } | ||||
| 12031 | |||||
| 12032 | return GetFileForPath(*mJournalDirectoryPath); | ||||
| 12033 | } | ||||
| 12034 | |||||
| 12035 | nsCOMPtr<nsIFile> DatabaseFileManager::EnsureJournalDirectory() { | ||||
| 12036 | // This can happen on the IO or on a transaction thread. | ||||
| 12037 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12037 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 12037); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12038 | |||||
| 12039 | auto journalDirectory = GetFileForPath(*mJournalDirectoryPath); | ||||
| 12040 | QM_TRY(OkIf(journalDirectory), nullptr){auto tryResult1021 = (OkIf(journalDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1021)::ok_type >); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1021.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(journalDirectory)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12040, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)" , tryTempError, nullptr); }}; | ||||
| 12041 | |||||
| 12042 | QM_TRY_INSPECT(const bool& exists,auto tryResult1022 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1022.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1022 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12044, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )" , tryTempError, nullptr); } const bool& exists = tryResult1022 .inspect(); | ||||
| 12043 | MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, Exists),auto tryResult1022 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1022.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1022 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12044, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )" , tryTempError, nullptr); } const bool& exists = tryResult1022 .inspect(); | ||||
| 12044 | nullptr)auto tryResult1022 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1022.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1022 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12044, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )" , tryTempError, nullptr); } const bool& exists = tryResult1022 .inspect();; | ||||
| 12045 | |||||
| 12046 | if (exists) { | ||||
| 12047 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1023 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1023 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1023 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12049, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )" , tryTempError, nullptr); } const bool& isDirectory = tryResult1023 .inspect(); | ||||
| 12048 | MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, IsDirectory),auto tryResult1023 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1023 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1023 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12049, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )" , tryTempError, nullptr); } const bool& isDirectory = tryResult1023 .inspect(); | ||||
| 12049 | nullptr)auto tryResult1023 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1023 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1023 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12049, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )" , tryTempError, nullptr); } const bool& isDirectory = tryResult1023 .inspect();; | ||||
| 12050 | |||||
| 12051 | QM_TRY(OkIf(isDirectory), nullptr){auto tryResult1024 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult1024)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1024.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12051, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError , nullptr); }}; | ||||
| 12052 | } else { | ||||
| 12053 | QM_TRY({auto tryResult1025 = (ToResult(journalDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult1025)::ok_type>); if ((__builtin_expect (!!(tryResult1025.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1025.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12055, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, nullptr); }} | ||||
| 12054 | MOZ_TO_RESULT(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755)),{auto tryResult1025 = (ToResult(journalDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult1025)::ok_type>); if ((__builtin_expect (!!(tryResult1025.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1025.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12055, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, nullptr); }} | ||||
| 12055 | nullptr){auto tryResult1025 = (ToResult(journalDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult1025)::ok_type>); if ((__builtin_expect (!!(tryResult1025.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1025.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12055, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, nullptr); }}; | ||||
| 12056 | } | ||||
| 12057 | |||||
| 12058 | return journalDirectory; | ||||
| 12059 | } | ||||
| 12060 | |||||
| 12061 | // static | ||||
| 12062 | nsCOMPtr<nsIFile> DatabaseFileManager::GetFileForId(nsIFile* aDirectory, | ||||
| 12063 | int64_t aId) { | ||||
| 12064 | MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12064); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { MOZ_CrashSequence(__null, 12064); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12065 | MOZ_ASSERT(aId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId > 0" ")"); do { MOZ_CrashSequence(__null, 12065); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12066 | |||||
| 12067 | QM_TRY_RETURN(CloneFileAndAppend(*aDirectory, IntToString(aId)), nullptr){auto tryResult1026 = (CloneFileAndAppend(*aDirectory, IntToString (aId))); if ((__builtin_expect(!!(tryResult1026.isErr()), 0)) ) { [[maybe_unused]] auto tryTempError = tryResult1026.unwrapErr (); mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, IntToString(aId))" , tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12067, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CloneFileAndAppend(*aDirectory, IntToString(aId))" , tryTempError, nullptr); } return tryResult1026.unwrap();}; | ||||
| 12068 | } | ||||
| 12069 | |||||
| 12070 | // static | ||||
| 12071 | nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedFileForId(nsIFile* aDirectory, | ||||
| 12072 | int64_t aId) { | ||||
| 12073 | auto file = GetFileForId(aDirectory, aId); | ||||
| 12074 | if (NS_WARN_IF(!file)NS_warn_if_impl(!file, "!file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12074)) { | ||||
| 12075 | return nullptr; | ||||
| 12076 | } | ||||
| 12077 | |||||
| 12078 | DebugOnly<bool> exists; | ||||
| 12079 | MOZ_ASSERT(NS_SUCCEEDED(file->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(file-> Exists(&exists))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(file->Exists(&exists))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->Exists(&exists))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12079 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->Exists(&exists))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12079); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12080 | MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType< decltype(exists)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("exists", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12080); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")" ); do { MOZ_CrashSequence(__null, 12080); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 12081 | |||||
| 12082 | DebugOnly<bool> isFile; | ||||
| 12083 | MOZ_ASSERT(NS_SUCCEEDED(file->IsFile(&isFile)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(file-> IsFile(&isFile))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(file->IsFile(&isFile))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->IsFile(&isFile))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12083 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->IsFile(&isFile))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12083); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12084 | MOZ_ASSERT(isFile)do { static_assert( mozilla::detail::AssertionConditionType< decltype(isFile)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(isFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12084); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isFile" ")" ); do { MOZ_CrashSequence(__null, 12084); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 12085 | |||||
| 12086 | return file; | ||||
| 12087 | } | ||||
| 12088 | |||||
| 12089 | // static | ||||
| 12090 | nsresult DatabaseFileManager::InitDirectory(nsIFile& aDirectory, | ||||
| 12091 | nsIFile& aDatabaseFile, | ||||
| 12092 | const nsACString& aOrigin, | ||||
| 12093 | uint32_t aTelemetryId) { | ||||
| 12094 | AssertIsOnIOThread(); | ||||
| 12095 | |||||
| 12096 | { | ||||
| 12097 | QM_TRY_INSPECT(const bool& exists,auto tryResult1027 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1027.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists )" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12098, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const bool& exists = tryResult1027.inspect (); | ||||
| 12098 | MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, Exists))auto tryResult1027 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1027.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists )" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12098, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const bool& exists = tryResult1027.inspect ();; | ||||
| 12099 | |||||
| 12100 | if (!exists) { | ||||
| 12101 | return NS_OK; | ||||
| 12102 | } | ||||
| 12103 | |||||
| 12104 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1028 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1028 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory )" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12105, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const bool& isDirectory = tryResult1028 .inspect(); | ||||
| 12105 | MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, IsDirectory))auto tryResult1028 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1028 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory )" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12105, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const bool& isDirectory = tryResult1028 .inspect();; | ||||
| 12106 | QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1029 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult1029)::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1029.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12106, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 12107 | } | ||||
| 12108 | |||||
| 12109 | QM_TRY_INSPECT(const auto& journalDirectory,auto tryResult1030 = (CloneFileAndAppend(aDirectory, kJournalDirectoryName )); if ((__builtin_expect(!!(tryResult1030.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(aDirectory, kJournalDirectoryName)" , tryResult1030.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12110, mozilla::dom::quota::Severity::Error); return tryResult1030 .propagateErr(); } const auto& journalDirectory = tryResult1030 .inspect(); | ||||
| 12110 | CloneFileAndAppend(aDirectory, kJournalDirectoryName))auto tryResult1030 = (CloneFileAndAppend(aDirectory, kJournalDirectoryName )); if ((__builtin_expect(!!(tryResult1030.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(aDirectory, kJournalDirectoryName)" , tryResult1030.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12110, mozilla::dom::quota::Severity::Error); return tryResult1030 .propagateErr(); } const auto& journalDirectory = tryResult1030 .inspect();; | ||||
| 12111 | |||||
| 12112 | QM_TRY_INSPECT(const bool& exists,auto tryResult1031 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1031.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )" , tryResult1031.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12113, mozilla::dom::quota::Severity::Error); return tryResult1031 .propagateErr(); } const bool& exists = tryResult1031.inspect (); | ||||
| 12113 | MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, Exists))auto tryResult1031 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1031.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )" , tryResult1031.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12113, mozilla::dom::quota::Severity::Error); return tryResult1031 .propagateErr(); } const bool& exists = tryResult1031.inspect ();; | ||||
| 12114 | |||||
| 12115 | if (exists) { | ||||
| 12116 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1032 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1032 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )" , tryResult1032.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12117, mozilla::dom::quota::Severity::Error); return tryResult1032 .propagateErr(); } const bool& isDirectory = tryResult1032 .inspect(); | ||||
| 12117 | MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, IsDirectory))auto tryResult1032 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1032 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )" , tryResult1032.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12117, mozilla::dom::quota::Severity::Error); return tryResult1032 .propagateErr(); } const bool& isDirectory = tryResult1032 .inspect();; | ||||
| 12118 | QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1033 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult1033)::ok_type>); if ((__builtin_expect(!!(tryResult1033.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1033.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12118, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 12119 | |||||
| 12120 | bool hasJournals = false; | ||||
| 12121 | |||||
| 12122 | QM_TRY(CollectEachFile({auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12123 | *journalDirectory,{auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12124 | [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12125 | QM_TRY_INSPECT({auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12126 | const auto& leafName,{auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12127 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, file, GetLeafName));{auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12128 | |||||
| 12129 | nsresult rv;{auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12130 | leafName.ToInteger64(&rv);{auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12131 | if (NS_SUCCEEDED(rv)) {{auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12132 | hasJournals = true;{auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12133 | } else {{auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12134 | UNKNOWN_FILE_WARNING(leafName);{auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12135 | }{auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12136 | |||||
| 12137 | return Ok{};{auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }} | ||||
| 12138 | })){auto tryResult1035 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12127, mozilla::dom::quota::Severity::Error); return tryResult1034 .propagateErr(); } const auto& leafName = tryResult1034.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12134); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1035)::ok_type>); if ((__builtin_expect (!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1034 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1034.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12127, mozilla::dom::quota::Severity::Error); return tryResult1034.propagateErr(); } const auto& leafName = tryResult1034.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12134); } return Ok{}; })" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12138, mozilla::dom::quota::Severity::Error); return tryResult1035 .propagateErr(); }}; | ||||
| 12139 | |||||
| 12140 | if (hasJournals) { | ||||
| 12141 | QM_TRY_UNWRAP(const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1036 = (CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing {})); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})" , tryResult1036.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12144, mozilla::dom::quota::Severity::Error); return tryResult1036 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1036.unwrap(); | ||||
| 12142 | CreateStorageConnection(auto tryResult1036 = (CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing {})); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})" , tryResult1036.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12144, mozilla::dom::quota::Severity::Error); return tryResult1036 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1036.unwrap(); | ||||
| 12143 | aDatabaseFile, aDirectory, VoidString(), aOrigin,auto tryResult1036 = (CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing {})); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})" , tryResult1036.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12144, mozilla::dom::quota::Severity::Error); return tryResult1036 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1036.unwrap(); | ||||
| 12144 | /* aDirectoryLockId */ -1, aTelemetryId, Nothing{}))auto tryResult1036 = (CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing {})); if ((__builtin_expect(!!(tryResult1036.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})" , tryResult1036.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12144, mozilla::dom::quota::Severity::Error); return tryResult1036 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1036.unwrap();; | ||||
| 12145 | |||||
| 12146 | mozStorageTransaction transaction(connection.get(), false); | ||||
| 12147 | |||||
| 12148 | QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult1037 = (ToResult(transaction.Start())); static_assert (std::is_empty_v<typename decltype(tryResult1037)::ok_type >); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(transaction.Start())" , tryResult1037.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12148, mozilla::dom::quota::Severity::Error); return tryResult1037 .propagateErr(); }} | ||||
| 12149 | |||||
| 12150 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL({auto tryResult1038 = (ToResult(connection->ExecuteSimpleSQL ( "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))); static_assert (std::is_empty_v<typename decltype(tryResult1038)::ok_type >); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE fs USING filesystem;\"_ns))" , tryResult1038.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12151, mozilla::dom::quota::Severity::Error); return tryResult1038 .propagateErr(); }} | ||||
| 12151 | "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))){auto tryResult1038 = (ToResult(connection->ExecuteSimpleSQL ( "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))); static_assert (std::is_empty_v<typename decltype(tryResult1038)::ok_type >); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE fs USING filesystem;\"_ns))" , tryResult1038.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12151, mozilla::dom::quota::Severity::Error); return tryResult1038 .propagateErr(); }}; | ||||
| 12152 | |||||
| 12153 | // The parameter names are not used, parameters are bound by index only | ||||
| 12154 | // locally in the same function. | ||||
| 12155 | QM_TRY_INSPECT(auto tryResult1039 = (::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(!!(tryResult1039.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)" , tryResult1039.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12159, mozilla::dom::quota::Severity::Error); return tryResult1039 .propagateErr(); } const auto& stmt = tryResult1039.inspect (); | ||||
| 12156 | const auto& stmt,auto tryResult1039 = (::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(!!(tryResult1039.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)" , tryResult1039.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12159, mozilla::dom::quota::Severity::Error); return tryResult1039 .propagateErr(); } const auto& stmt = tryResult1039.inspect (); | ||||
| 12157 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1039 = (::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(!!(tryResult1039.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)" , tryResult1039.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12159, mozilla::dom::quota::Severity::Error); return tryResult1039 .propagateErr(); } const auto& stmt = tryResult1039.inspect (); | ||||
| 12158 | nsCOMPtr<mozIStorageStatement>, *connection, CreateStatement,auto tryResult1039 = (::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(!!(tryResult1039.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)" , tryResult1039.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12159, mozilla::dom::quota::Severity::Error); return tryResult1039 .propagateErr(); } const auto& stmt = tryResult1039.inspect (); | ||||
| 12159 | "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns))auto tryResult1039 = (::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(!!(tryResult1039.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)" , tryResult1039.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12159, mozilla::dom::quota::Severity::Error); return tryResult1039 .propagateErr(); } const auto& stmt = tryResult1039.inspect ();; | ||||
| 12160 | |||||
| 12161 | QM_TRY_INSPECT(const auto& path,auto tryResult1040 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory) )); if ( (__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )" , tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12163, mozilla::dom::quota::Severity::Error); return tryResult1040 .propagateErr(); } const auto& path = tryResult1040.inspect (); | ||||
| 12162 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1040 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory) )); if ( (__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )" , tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12163, mozilla::dom::quota::Severity::Error); return tryResult1040 .propagateErr(); } const auto& path = tryResult1040.inspect (); | ||||
| 12163 | nsString, journalDirectory, GetPath))auto tryResult1040 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory) )); if ( (__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )" , tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12163, mozilla::dom::quota::Severity::Error); return tryResult1040 .propagateErr(); } const auto& path = tryResult1040.inspect ();; | ||||
| 12164 | |||||
| 12165 | QM_TRY(MOZ_TO_RESULT(stmt->BindStringByIndex(0, path))){auto tryResult1041 = (ToResult(stmt->BindStringByIndex(0, path))); static_assert(std::is_empty_v<typename decltype( tryResult1041)::ok_type>); if ((__builtin_expect(!!(tryResult1041 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByIndex(0, path))" , tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12165, mozilla::dom::quota::Severity::Error); return tryResult1041 .propagateErr(); }}; | ||||
| 12166 | |||||
| 12167 | QM_TRY(CollectWhileHasResult({auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12168 | *stmt,{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12169 | [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12170 | nsString name;{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12171 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(0, name)));{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12172 | |||||
| 12173 | nsresult rv;{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12174 | name.ToInteger64(&rv);{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12175 | if (NS_FAILED(rv)) {{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12176 | return Ok{};{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12177 | }{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12178 | |||||
| 12179 | int32_t flag = stmt.AsInt32(1);{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12180 | |||||
| 12181 | if (!flag) {{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12182 | QM_TRY_INSPECT(const auto& file,{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12183 | CloneFileAndAppend(aDirectory, name));{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12184 | |||||
| 12185 | QM_SCOPED_CONTEXT("IDBFileManager::OrphanedFileCleanupFailed"_ns);{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12186 | |||||
| 12187 | QM_WARNONLY_TRY(MOZ_TO_RESULT(file->Remove(false)),{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12188 | [](const auto&) {{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12189 | NS_WARNING("Failed to remove orphaned file!");{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12190 | });{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12191 | }{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12192 | |||||
| 12193 | QM_TRY_INSPECT(const auto& journalFile,{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12194 | CloneFileAndAppend(*journalDirectory, name));{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12195 | |||||
| 12196 | if (NS_FAILED(journalFile->Remove(false))) {{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12197 | NS_WARNING("Failed to remove journal file!");{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12198 | }{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12199 | |||||
| 12200 | return Ok{};{auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12201 | })){auto tryResult1047 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12171, mozilla::dom::quota::Severity::Error); return tryResult1042 .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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1043.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183 , mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& file = tryResult1043.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect (!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Warning); [](const auto &) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12194, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); } const auto& journalFile = tryResult1046 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12197); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1047)::ok_type>); if ((__builtin_expect (!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1042 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12171, mozilla::dom::quota::Severity::Error); return tryResult1042.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 tryResult1043 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12183, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& file = tryResult1043.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1044 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1045 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { auto tryTempError = tryResult1045.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12189); }(tryTempError); }}; } auto tryResult1046 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12194, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& journalFile = tryResult1046.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12197); } return Ok{}; })" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }}; | ||||
| 12202 | |||||
| 12203 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL("DROP TABLE fs;"_ns))){auto tryResult1048 = (ToResult(connection->ExecuteSimpleSQL ("DROP TABLE fs;"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect (!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"DROP TABLE fs;\"_ns))" , tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12203, mozilla::dom::quota::Severity::Error); return tryResult1048 .propagateErr(); }}; | ||||
| 12204 | QM_TRY(MOZ_TO_RESULT(transaction.Commit())){auto tryResult1049 = (ToResult(transaction.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1049)::ok_type >); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(transaction.Commit())" , tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1049 .propagateErr(); }}; | ||||
| 12205 | } | ||||
| 12206 | } | ||||
| 12207 | |||||
| 12208 | return NS_OK; | ||||
| 12209 | } | ||||
| 12210 | |||||
| 12211 | // static | ||||
| 12212 | Result<FileUsageType, nsresult> DatabaseFileManager::GetUsage( | ||||
| 12213 | nsIFile* aDirectory) { | ||||
| 12214 | AssertIsOnIOThread(); | ||||
| 12215 | MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12215); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { MOZ_CrashSequence(__null, 12215); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12216 | |||||
| 12217 | FileUsageType usage; | ||||
| 12218 | |||||
| 12219 | QM_TRY(TraverseFiles({auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12220 | *aDirectory,{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12221 | // KnownDirEntryOp{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12222 | [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12223 | if (isDirectory) {{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12224 | return Ok{};{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12225 | }{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12226 | |||||
| 12227 | // Usually we only use QM_OR_ELSE_LOG_VERBOSE(_IF) with Remove and{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12228 | // NS_ERROR_FILE_NOT_FOUND check, but the file was found by a directory{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12229 | // traversal and ToInteger on the name succeeded, so it should be our{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12230 | // file and if the file disappears, the use of QM_OR_ELSE_WARN_IF is ok{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12231 | // here.{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12232 | QM_TRY_INSPECT(const auto& thisUsage,{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12233 | QM_OR_ELSE_WARN_IF({auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12234 | // Expression.{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12235 | MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize){auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12236 | .map([](const int64_t fileSize) {{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12237 | return FileUsageType(Some(uint64_t(fileSize)));{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12238 | }),{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12239 | // Predicate.{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12240 | ([](const nsresult rv) {{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12241 | return rv == NS_ERROR_FILE_NOT_FOUND;{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12242 | }),{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12243 | // Fallback. If the file does no longer exist, treat{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12244 | // it as 0-sized.{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12245 | ErrToDefaultOk<FileUsageType>));{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12246 | |||||
| 12247 | usage += thisUsage;{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12248 | |||||
| 12249 | return Ok{};{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12250 | },{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12251 | // UnknownDirEntryOp{auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }} | ||||
| 12252 | [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })){auto tryResult1051 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); } const auto& thisUsage = tryResult1050. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1051 )::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1050 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1050.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12245, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1050.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12245, mozilla::dom::quota::Severity::Error); return tryResult1050.propagateErr(); } const auto& thisUsage = tryResult1050.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12252, mozilla::dom::quota::Severity::Error); return tryResult1051 .propagateErr(); }}; | ||||
| 12253 | |||||
| 12254 | return usage; | ||||
| 12255 | } | ||||
| 12256 | |||||
| 12257 | nsresult DatabaseFileManager::SyncDeleteFile(const int64_t aId) { | ||||
| 12258 | MOZ_ASSERT(!ContainsFileInfo(aId))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!ContainsFileInfo(aId))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!ContainsFileInfo(aId)))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!ContainsFileInfo(aId)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12258 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!ContainsFileInfo(aId)" ")"); do { MOZ_CrashSequence(__null, 12258); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12259 | |||||
| 12260 | if (!this->AssertValid()) { | ||||
| 12261 | return NS_ERROR_UNEXPECTED; | ||||
| 12262 | } | ||||
| 12263 | |||||
| 12264 | const auto directory = GetDirectory(); | ||||
| 12265 | QM_TRY(OkIf(directory), NS_ERROR_FAILURE){auto tryResult1052 = (OkIf(directory)); static_assert(std::is_empty_v <typename decltype(tryResult1052)::ok_type>); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1052.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(directory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12265, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(directory)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 12266 | |||||
| 12267 | const auto journalDirectory = GetJournalDirectory(); | ||||
| 12268 | QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult1053 = (OkIf(journalDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1053)::ok_type >); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1053.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(journalDirectory)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12268, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)" , tryTempError, NS_ERROR_FAILURE); }}; | ||||
| 12269 | |||||
| 12270 | const nsCOMPtr<nsIFile> file = GetFileForId(directory, aId); | ||||
| 12271 | QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult1054 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(file)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12271, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 12272 | |||||
| 12273 | const nsCOMPtr<nsIFile> journalFile = GetFileForId(journalDirectory, aId); | ||||
| 12274 | QM_TRY(OkIf(journalFile), NS_ERROR_FAILURE){auto tryResult1055 = (OkIf(journalFile)); static_assert(std:: is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1055.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(journalFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12274, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 12275 | |||||
| 12276 | return SyncDeleteFile(*file, *journalFile); | ||||
| 12277 | } | ||||
| 12278 | |||||
| 12279 | nsresult DatabaseFileManager::SyncDeleteFile(nsIFile& aFile, | ||||
| 12280 | nsIFile& aJournalFile) const { | ||||
| 12281 | QuotaManager* const quotaManager = | ||||
| 12282 | EnforcingQuota() ? QuotaManager::Get() : nullptr; | ||||
| 12283 | MOZ_ASSERT_IF(EnforcingQuota(), quotaManager)do { if (EnforcingQuota()) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(quotaManager)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12283); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 12283); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 12284 | |||||
| 12285 | QM_TRY(MOZ_TO_RESULT(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(),{auto tryResult1056 = (ToResult(DeleteFile(aFile, quotaManager , Type(), OriginMetadata(), Idempotency::No))); static_assert (std::is_empty_v<typename decltype(tryResult1056)::ok_type >); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(), Idempotency::No))" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12286, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12286 | Idempotency::No))){auto tryResult1056 = (ToResult(DeleteFile(aFile, quotaManager , Type(), OriginMetadata(), Idempotency::No))); static_assert (std::is_empty_v<typename decltype(tryResult1056)::ok_type >); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(), Idempotency::No))" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12286, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }}; | ||||
| 12287 | |||||
| 12288 | QM_TRY(MOZ_TO_RESULT(aJournalFile.Remove(false))){auto tryResult1057 = (ToResult(aJournalFile.Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1057 )::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(aJournalFile.Remove(false))" , tryResult1057.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12288, mozilla::dom::quota::Severity::Error); return tryResult1057 .propagateErr(); }}; | ||||
| 12289 | |||||
| 12290 | return NS_OK; | ||||
| 12291 | } | ||||
| 12292 | |||||
| 12293 | nsresult DatabaseFileManager::Invalidate() { | ||||
| 12294 | if (mCipherKeyManager) { | ||||
| 12295 | mCipherKeyManager->Invalidate(); | ||||
| 12296 | } | ||||
| 12297 | |||||
| 12298 | QM_TRY(MOZ_TO_RESULT(FileInfoManager::Invalidate())){auto tryResult1058 = (ToResult(FileInfoManager::Invalidate() )); static_assert(std::is_empty_v<typename decltype(tryResult1058 )::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(FileInfoManager::Invalidate())" , tryResult1058.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12298, mozilla::dom::quota::Severity::Error); return tryResult1058 .propagateErr(); }}; | ||||
| 12299 | |||||
| 12300 | return NS_OK; | ||||
| 12301 | } | ||||
| 12302 | |||||
| 12303 | /******************************************************************************* | ||||
| 12304 | * QuotaClient | ||||
| 12305 | ******************************************************************************/ | ||||
| 12306 | |||||
| 12307 | QuotaClient* QuotaClient::sInstance = nullptr; | ||||
| 12308 | |||||
| 12309 | QuotaClient::QuotaClient() : mDeleteTimer(NS_NewTimer()) { | ||||
| 12310 | AssertIsOnBackgroundThread(); | ||||
| 12311 | MOZ_ASSERT(!sInstance, "We expect this to be a singleton!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(!sInstance)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!sInstance))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!sInstance" " (" "We expect this to be a singleton!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12311 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!sInstance" ") (" "We expect this to be a singleton!" ")"); do { MOZ_CrashSequence (__null, 12311); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); | ||||
| 12312 | MOZ_ASSERT(!gTelemetryIdMutex)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!gTelemetryIdMutex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!gTelemetryIdMutex))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!gTelemetryIdMutex" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12312 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gTelemetryIdMutex" ")"); do { MOZ_CrashSequence(__null, 12312); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12313 | |||||
| 12314 | // Always create this so that later access to gTelemetryIdHashtable can be | ||||
| 12315 | // properly synchronized. | ||||
| 12316 | gTelemetryIdMutex = new Mutex("IndexedDB gTelemetryIdMutex"); | ||||
| 12317 | |||||
| 12318 | gStorageDatabaseNameMutex = new Mutex("IndexedDB gStorageDatabaseNameMutex"); | ||||
| 12319 | |||||
| 12320 | sInstance = this; | ||||
| 12321 | } | ||||
| 12322 | |||||
| 12323 | QuotaClient::~QuotaClient() { | ||||
| 12324 | AssertIsOnBackgroundThread(); | ||||
| 12325 | MOZ_ASSERT(sInstance == this, "We expect this to be a singleton!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(sInstance == this)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(sInstance == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("sInstance == this" " (" "We expect this to be a singleton!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12325); AnnotateMozCrashReason("MOZ_ASSERT" "(" "sInstance == this" ") (" "We expect this to be a singleton!" ")"); do { MOZ_CrashSequence (__null, 12325); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); | ||||
| 12326 | MOZ_ASSERT(gTelemetryIdMutex)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gTelemetryIdMutex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gTelemetryIdMutex))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gTelemetryIdMutex" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12326 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex" ")"); do { MOZ_CrashSequence(__null, 12326); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12327 | MOZ_ASSERT(!mMaintenanceThreadPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mMaintenanceThreadPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mMaintenanceThreadPool))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mMaintenanceThreadPool" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12327 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaintenanceThreadPool" ")"); do { MOZ_CrashSequence(__null, 12327); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12328 | |||||
| 12329 | // No one else should be able to touch gTelemetryIdHashtable now that the | ||||
| 12330 | // QuotaClient has gone away. | ||||
| 12331 | gTelemetryIdHashtable = nullptr; | ||||
| 12332 | gTelemetryIdMutex = nullptr; | ||||
| 12333 | |||||
| 12334 | gStorageDatabaseNameHashtable = nullptr; | ||||
| 12335 | gStorageDatabaseNameMutex = nullptr; | ||||
| 12336 | |||||
| 12337 | sInstance = nullptr; | ||||
| 12338 | } | ||||
| 12339 | |||||
| 12340 | nsresult QuotaClient::AsyncDeleteFile(DatabaseFileManager* aFileManager, | ||||
| 12341 | int64_t aFileId) { | ||||
| 12342 | AssertIsOnBackgroundThread(); | ||||
| 12343 | |||||
| 12344 | if (IsShuttingDownOnBackgroundThread()) { | ||||
| 12345 | // Whoops! We want to delete an IndexedDB disk-backed File but it's too late | ||||
| 12346 | // to actually delete the file! This means we're going to "leak" the file | ||||
| 12347 | // and leave it around when we shouldn't! (The file will stay around until | ||||
| 12348 | // next storage initialization is triggered when the app is started again). | ||||
| 12349 | // Fixing this is tracked by bug 1539377. | ||||
| 12350 | |||||
| 12351 | return NS_OK; | ||||
| 12352 | } | ||||
| 12353 | |||||
| 12354 | MOZ_ASSERT(mDeleteTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDeleteTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDeleteTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDeleteTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12354); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteTimer" ")"); do { MOZ_CrashSequence(__null, 12354); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12355 | MOZ_ALWAYS_SUCCEEDS(mDeleteTimer->Cancel())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mDeleteTimer->Cancel())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mDeleteTimer->Cancel())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12355 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDeleteTimer->Cancel())" ")"); do { MOZ_CrashSequence(__null, 12355); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 12356 | |||||
| 12357 | QM_TRY(MOZ_TO_RESULT(mDeleteTimer->InitWithNamedFuncCallback({auto tryResult1059 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback ( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT , "dom::indexeddb::QuotaClient::AsyncDeleteFile"_ns))); static_assert (std::is_empty_v<typename decltype(tryResult1059)::ok_type >); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"_ns))" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12359, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); }} | ||||
| 12358 | DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT,{auto tryResult1059 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback ( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT , "dom::indexeddb::QuotaClient::AsyncDeleteFile"_ns))); static_assert (std::is_empty_v<typename decltype(tryResult1059)::ok_type >); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"_ns))" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12359, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); }} | ||||
| 12359 | "dom::indexeddb::QuotaClient::AsyncDeleteFile"_ns))){auto tryResult1059 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback ( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT , "dom::indexeddb::QuotaClient::AsyncDeleteFile"_ns))); static_assert (std::is_empty_v<typename decltype(tryResult1059)::ok_type >); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"_ns))" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12359, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); }}; | ||||
| 12360 | |||||
| 12361 | mPendingDeleteInfos.GetOrInsertNew(aFileManager)->AppendElement(aFileId); | ||||
| 12362 | |||||
| 12363 | return NS_OK; | ||||
| 12364 | } | ||||
| 12365 | |||||
| 12366 | nsresult QuotaClient::FlushPendingFileDeletions() { | ||||
| 12367 | AssertIsOnBackgroundThread(); | ||||
| 12368 | |||||
| 12369 | QM_TRY(MOZ_TO_RESULT(mDeleteTimer->Cancel())){auto tryResult1060 = (ToResult(mDeleteTimer->Cancel())); static_assert (std::is_empty_v<typename decltype(tryResult1060)::ok_type >); if ((__builtin_expect(!!(tryResult1060.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->Cancel())" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12369, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }}; | ||||
| 12370 | |||||
| 12371 | DeleteTimerCallback(mDeleteTimer, this); | ||||
| 12372 | |||||
| 12373 | return NS_OK; | ||||
| 12374 | } | ||||
| 12375 | |||||
| 12376 | RefPtr<BoolPromise> QuotaClient::DoMaintenance() { | ||||
| 12377 | AssertIsOnBackgroundThread(); | ||||
| 12378 | MOZ_ASSERT(!IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsShuttingDownOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsShuttingDownOnBackgroundThread ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12378); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 12378); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12379 | |||||
| 12380 | if (!mBackgroundThread) { | ||||
| 12381 | mBackgroundThread = GetCurrentSerialEventTarget(); | ||||
| 12382 | } | ||||
| 12383 | |||||
| 12384 | auto maintenance = MakeRefPtr<Maintenance>(this); | ||||
| 12385 | |||||
| 12386 | mMaintenanceQueue.AppendElement(maintenance); | ||||
| 12387 | ProcessMaintenanceQueue(); | ||||
| 12388 | |||||
| 12389 | return maintenance->OnResults(); | ||||
| 12390 | } | ||||
| 12391 | |||||
| 12392 | nsThreadPool* QuotaClient::GetOrCreateThreadPool() { | ||||
| 12393 | AssertIsOnBackgroundThread(); | ||||
| 12394 | MOZ_ASSERT(!IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsShuttingDownOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsShuttingDownOnBackgroundThread ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12394); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 12394); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12395 | |||||
| 12396 | if (!mMaintenanceThreadPool) { | ||||
| 12397 | RefPtr<nsThreadPool> threadPool = new nsThreadPool(); | ||||
| 12398 | |||||
| 12399 | // PR_GetNumberOfProcessors() can return -1 on error, so make sure we | ||||
| 12400 | // don't set some huge number here. We add 2 in case some threads block on | ||||
| 12401 | // the disk I/O. | ||||
| 12402 | const uint32_t threadCount = | ||||
| 12403 | std::max(int32_t(PR_GetNumberOfProcessors()), int32_t(1)) + 2; | ||||
| 12404 | |||||
| 12405 | MOZ_ALWAYS_SUCCEEDS(threadPool->SetThreadLimit(threadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetThreadLimit(threadCount))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(threadPool->SetThreadLimit(threadCount))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12405 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetThreadLimit(threadCount))" ")"); do { MOZ_CrashSequence(__null, 12405); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 12406 | |||||
| 12407 | // Don't keep more than one idle thread. | ||||
| 12408 | MOZ_ALWAYS_SUCCEEDS(threadPool->SetIdleThreadLimit(1))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadLimit(1))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(1))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12408 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(1))" ")"); do { MOZ_CrashSequence(__null, 12408); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 12409 | |||||
| 12410 | // Don't keep idle threads alive very long. | ||||
| 12411 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))), 1)) )), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12412 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))" ")"); do { MOZ_CrashSequence(__null, 12412); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 12412 | threadPool->SetIdleThreadMaximumTimeout(5 * PR_MSEC_PER_SEC))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))), 1)) )), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12412 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))" ")"); do { MOZ_CrashSequence(__null, 12412); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 12413 | |||||
| 12414 | MOZ_ALWAYS_SUCCEEDS(threadPool->SetName("IndexedDB Mnt"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetName("IndexedDB Mnt"_ns))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB Mnt\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12414 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB Mnt\"_ns))" ")"); do { MOZ_CrashSequence(__null, 12414); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 12415 | |||||
| 12416 | mMaintenanceThreadPool = std::move(threadPool); | ||||
| 12417 | } | ||||
| 12418 | |||||
| 12419 | return mMaintenanceThreadPool; | ||||
| 12420 | } | ||||
| 12421 | |||||
| 12422 | mozilla::dom::quota::Client::Type QuotaClient::GetType() { | ||||
| 12423 | return QuotaClient::IDB; | ||||
| 12424 | } | ||||
| 12425 | |||||
| 12426 | nsresult QuotaClient::UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) { | ||||
| 12427 | AssertIsOnIOThread(); | ||||
| 12428 | MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12428); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { MOZ_CrashSequence(__null, 12428); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12429 | |||||
| 12430 | QM_TRY_INSPECT(const auto& databaseFilenamesInfo,auto tryResult1061 = (GetDatabaseFilenames(*aDirectory, AtomicBool {false})); if ((__builtin_expect(!!(tryResult1061.isErr()), 0 ))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})" , tryResult1061.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12432, mozilla::dom::quota::Severity::Error); return tryResult1061 .propagateErr(); } const auto& databaseFilenamesInfo = tryResult1061 .inspect(); | ||||
| 12431 | GetDatabaseFilenames(*aDirectory,auto tryResult1061 = (GetDatabaseFilenames(*aDirectory, AtomicBool {false})); if ((__builtin_expect(!!(tryResult1061.isErr()), 0 ))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})" , tryResult1061.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12432, mozilla::dom::quota::Severity::Error); return tryResult1061 .propagateErr(); } const auto& databaseFilenamesInfo = tryResult1061 .inspect(); | ||||
| 12432 | /* aCanceled */ AtomicBool{false}))auto tryResult1061 = (GetDatabaseFilenames(*aDirectory, AtomicBool {false})); if ((__builtin_expect(!!(tryResult1061.isErr()), 0 ))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})" , tryResult1061.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12432, mozilla::dom::quota::Severity::Error); return tryResult1061 .propagateErr(); } const auto& databaseFilenamesInfo = tryResult1061 .inspect();; | ||||
| 12433 | // FIXME: use structural binding once we support c++20. | ||||
| 12434 | const auto& subdirsToProcess = databaseFilenamesInfo.subdirsToProcess; | ||||
| 12435 | const auto& databaseFilenames = databaseFilenamesInfo.databaseFilenames; | ||||
| 12436 | |||||
| 12437 | QM_TRY(CollectEachInRange({auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12438 | subdirsToProcess,{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12439 | [&databaseFilenames = databaseFilenames,{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12440 | aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> {{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12441 | // If the directory has the correct suffix then it should exist in{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12442 | // databaseFilenames.{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12443 | nsDependentSubstring subdirNameBase;{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12444 | if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix,{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12445 | subdirNameBase)) {{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12446 | QM_WARNONLY_TRY(OkIf(databaseFilenames.Contains(subdirNameBase)));{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12447 | return Ok{};{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12448 | }{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12449 | |||||
| 12450 | // The directory didn't have the right suffix but we might need to{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12451 | // rename it. Check to see if we have a database that references this{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12452 | // directory.{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12453 | QM_TRY_INSPECT({auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12454 | const auto& subdirNameWithSuffix,{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12455 | ([&databaseFilenames,{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12456 | &subdirName]() -> Result<nsAutoString, NotOk> {{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12457 | if (databaseFilenames.Contains(subdirName)) {{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12458 | return nsAutoString{subdirName +{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12459 | kFileManagerDirectoryNameSuffix};{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12460 | }{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12461 | |||||
| 12462 | // Windows doesn't allow a directory to end with a dot ('.'), so{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12463 | // we have to check that possibility here too. We do this on all{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12464 | // platforms, because the origin directory may have been created{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12465 | // on Windows and now accessed on different OS.{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12466 | const nsAutoString subdirNameWithDot = subdirName + u"."_ns;{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12467 | QM_TRY(OkIf(databaseFilenames.Contains(subdirNameWithDot)),{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12468 | Err(NotOk{}));{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12469 | |||||
| 12470 | return nsAutoString{subdirNameWithDot +{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12471 | kFileManagerDirectoryNameSuffix};{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12472 | }()),{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12473 | Ok{});{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12474 | |||||
| 12475 | // We do have a database that uses this subdir so we should rename it{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12476 | // now.{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12477 | QM_TRY_INSPECT(const auto& subdir,{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12478 | CloneFileAndAppend(*aDirectory, subdirName));{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12479 | |||||
| 12480 | DebugOnly<bool> isDirectory;{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12481 | MOZ_ASSERT(NS_SUCCEEDED(subdir->IsDirectory(&isDirectory)));{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12482 | MOZ_ASSERT(isDirectory);{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12483 | |||||
| 12484 | // Check if the subdir with suffix already exists before renaming.{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12485 | QM_TRY_INSPECT(const auto& subdirWithSuffix,{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12486 | CloneFileAndAppend(*aDirectory, subdirNameWithSuffix));{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12487 | |||||
| 12488 | QM_TRY_INSPECT(const bool& exists,{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12489 | MOZ_TO_RESULT_INVOKE_MEMBER(subdirWithSuffix, Exists));{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12490 | |||||
| 12491 | if (exists) {{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12492 | IDB_WARNING("Deleting old %s files directory!",{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12493 | NS_ConvertUTF16toUTF8(subdirName).get());{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12494 | |||||
| 12495 | QM_TRY(MOZ_TO_RESULT(subdir->Remove(/* aRecursive */ true)));{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12496 | |||||
| 12497 | return Ok{};{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12498 | }{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12499 | |||||
| 12500 | // Finally, rename the subdir.{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12501 | QM_TRY(MOZ_TO_RESULT(subdir->RenameTo(nullptr, subdirNameWithSuffix)));{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12502 | |||||
| 12503 | return Ok{};{auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }} | ||||
| 12504 | })){auto tryResult1070 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1062.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1064 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1063 )::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12478, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); } const auto& subdir = tryResult1065.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12486, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); } const auto& subdirWithSuffix = tryResult1066 .inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12489, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); } const bool& exists = tryResult1067.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12493 ); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12495, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12501, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1070)::ok_type>); if ((__builtin_expect (!!(tryResult1070.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 tryResult1062 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1062)::ok_type>); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1062.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1064 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1063 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12468, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1064.inspect();; auto tryResult1065 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1065.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12478, mozilla::dom::quota::Severity::Error); return tryResult1065.propagateErr(); } const auto& subdir = tryResult1065.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1066 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1066.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12486, mozilla::dom::quota::Severity::Error); return tryResult1066.propagateErr(); } const auto& subdirWithSuffix = tryResult1066.inspect();; auto tryResult1067 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1067.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489, mozilla::dom::quota::Severity::Error); return tryResult1067.propagateErr(); } const bool& exists = tryResult1067.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493); } while (0); {auto tryResult1068 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1068)::ok_type>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1068.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); return tryResult1068.propagateErr(); }}; return Ok{}; } {auto tryResult1069 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1069)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1069.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12501, mozilla::dom::quota::Severity::Error); return tryResult1069.propagateErr(); }}; return Ok{}; })" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12504, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); }}; | ||||
| 12505 | |||||
| 12506 | return NS_OK; | ||||
| 12507 | } | ||||
| 12508 | |||||
| 12509 | nsresult QuotaClient::UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) { | ||||
| 12510 | AssertIsOnIOThread(); | ||||
| 12511 | MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12511); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { MOZ_CrashSequence(__null, 12511); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12512 | |||||
| 12513 | QM_TRY(CollectEachFile({auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12514 | *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12515 | QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*file));{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12516 | |||||
| 12517 | switch (dirEntryKind) {{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12518 | case nsIFileKind::ExistsAsDirectory:{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12519 | break;{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12520 | |||||
| 12521 | case nsIFileKind::ExistsAsFile: {{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12522 | QM_TRY_INSPECT({auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12523 | const auto& leafName,{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12524 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, file, GetLeafName));{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12525 | |||||
| 12526 | // It's reported that files ending with ".tmp" somehow live in the{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12527 | // indexedDB directories in Bug 1503883. Such files shouldn't exist{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12528 | // in the indexedDB directory so remove them in this upgrade.{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12529 | if (StringEndsWith(leafName, u".tmp"_ns)) {{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12530 | IDB_WARNING("Deleting unknown temporary file!");{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12531 | |||||
| 12532 | QM_TRY(MOZ_TO_RESULT(file->Remove(false)));{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12533 | }{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12534 | |||||
| 12535 | break;{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12536 | }{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12537 | |||||
| 12538 | case nsIFileKind::DoesNotExist:{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12539 | // Ignore files that got removed externally while iterating.{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12540 | break;{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12541 | }{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12542 | |||||
| 12543 | return Ok{};{auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }} | ||||
| 12544 | })){auto tryResult1074 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12515, mozilla::dom::quota::Severity::Error); return tryResult1071 .propagateErr(); } const auto& dirEntryKind = tryResult1071 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12524, mozilla::dom::quota::Severity::Error); return tryResult1072 .propagateErr(); } const auto& leafName = tryResult1072.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12530 ); } while (0); {auto tryResult1073 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1073.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12532, mozilla::dom::quota::Severity::Error); return tryResult1073 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1074)::ok_type>); if ((__builtin_expect (!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12515, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1072 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12524, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); } const auto& leafName = tryResult1072.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12530); } while (0); {auto tryResult1073 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1073)::ok_type>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12544, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); }}; | ||||
| 12545 | |||||
| 12546 | return NS_OK; | ||||
| 12547 | } | ||||
| 12548 | |||||
| 12549 | Result<UsageInfo, nsresult> QuotaClient::InitOrigin( | ||||
| 12550 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | ||||
| 12551 | const AtomicBool& aCanceled) { | ||||
| 12552 | AssertIsOnIOThread(); | ||||
| 12553 | |||||
| 12554 | QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(this, GetUsageForOriginInternal,{auto tryResult1075 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, true)); if ((__builtin_expect(!!(tryResult1075.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, true)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12557, mozilla::dom::quota::Severity::Error); } return tryResult1075 ;} | ||||
| 12555 | aPersistenceType, aOriginMetadata,{auto tryResult1075 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, true)); if ((__builtin_expect(!!(tryResult1075.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, true)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12557, mozilla::dom::quota::Severity::Error); } return tryResult1075 ;} | ||||
| 12556 | aCanceled,{auto tryResult1075 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, true)); if ((__builtin_expect(!!(tryResult1075.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, true)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12557, mozilla::dom::quota::Severity::Error); } return tryResult1075 ;} | ||||
| 12557 | /* aInitializing*/ true)){auto tryResult1075 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, true)); if ((__builtin_expect(!!(tryResult1075.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, true)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12557, mozilla::dom::quota::Severity::Error); } return tryResult1075 ;}; | ||||
| 12558 | } | ||||
| 12559 | |||||
| 12560 | nsresult QuotaClient::InitOriginWithoutTracking( | ||||
| 12561 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | ||||
| 12562 | const AtomicBool& aCanceled) { | ||||
| 12563 | AssertIsOnIOThread(); | ||||
| 12564 | |||||
| 12565 | return GetUsageForOriginInternal(aPersistenceType, aOriginMetadata, aCanceled, | ||||
| 12566 | /* aInitializing*/ true, nullptr); | ||||
| 12567 | } | ||||
| 12568 | |||||
| 12569 | Result<UsageInfo, nsresult> QuotaClient::GetUsageForOrigin( | ||||
| 12570 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | ||||
| 12571 | const AtomicBool& aCanceled) { | ||||
| 12572 | AssertIsOnIOThread(); | ||||
| 12573 | |||||
| 12574 | QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(this, GetUsageForOriginInternal,{auto tryResult1076 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, false)); if ((__builtin_expect(!!(tryResult1076. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, false)" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12577, mozilla::dom::quota::Severity::Error); } return tryResult1076 ;} | ||||
| 12575 | aPersistenceType, aOriginMetadata,{auto tryResult1076 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, false)); if ((__builtin_expect(!!(tryResult1076. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, false)" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12577, mozilla::dom::quota::Severity::Error); } return tryResult1076 ;} | ||||
| 12576 | aCanceled,{auto tryResult1076 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, false)); if ((__builtin_expect(!!(tryResult1076. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, false)" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12577, mozilla::dom::quota::Severity::Error); } return tryResult1076 ;} | ||||
| 12577 | /* aInitializing*/ false)){auto tryResult1076 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, false)); if ((__builtin_expect(!!(tryResult1076. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, false)" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12577, mozilla::dom::quota::Severity::Error); } return tryResult1076 ;}; | ||||
| 12578 | } | ||||
| 12579 | |||||
| 12580 | nsresult QuotaClient::GetUsageForOriginInternal( | ||||
| 12581 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | ||||
| 12582 | const AtomicBool& aCanceled, const bool aInitializing, | ||||
| 12583 | UsageInfo* aUsageInfo) { | ||||
| 12584 | GECKO_TRACE_SCOPE("dom::indexedDB", "QuotaClient::GetUsageForOriginInternal")auto GECKO_TRACE_SCOPE___COUNTER__ = mozilla::gecko_trace::TracerProvider ::GetTracer("dom::indexedDB") ->StartSpan("QuotaClient::GetUsageForOriginInternal" ) ->Enter();; | ||||
| 12585 | |||||
| 12586 | AssertIsOnIOThread(); | ||||
| 12587 | MOZ_ASSERT(aOriginMetadata.mPersistenceType == aPersistenceType)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOriginMetadata.mPersistenceType == aPersistenceType )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aOriginMetadata.mPersistenceType == aPersistenceType ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aOriginMetadata.mPersistenceType == aPersistenceType", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12587); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOriginMetadata.mPersistenceType == aPersistenceType" ")"); do { MOZ_CrashSequence(__null, 12587); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12588 | |||||
| 12589 | QM_TRY_INSPECT(const nsCOMPtr<nsIFile>& directory,auto tryResult1077 = (GetDirectory(aOriginMetadata)); if ((__builtin_expect (!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirectory(aOriginMetadata)", tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12590, mozilla::dom::quota::Severity::Error); return tryResult1077. propagateErr(); } const nsCOMPtr<nsIFile>& directory = tryResult1077.inspect(); | ||||
| 12590 | GetDirectory(aOriginMetadata))auto tryResult1077 = (GetDirectory(aOriginMetadata)); if ((__builtin_expect (!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirectory(aOriginMetadata)", tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12590, mozilla::dom::quota::Severity::Error); return tryResult1077. propagateErr(); } const nsCOMPtr<nsIFile>& directory = tryResult1077.inspect();; | ||||
| 12591 | |||||
| 12592 | // We need to see if there are any files in the directory already. If they | ||||
| 12593 | // are database files then we need to cleanup stored files (if it's needed) | ||||
| 12594 | // and also get the usage. | ||||
| 12595 | |||||
| 12596 | // XXX Can we avoid unwrapping into non-const variables here? (Only | ||||
| 12597 | // databaseFilenames is currently modified below) | ||||
| 12598 | QM_TRY_UNWRAP((auto [subdirsToProcess, databaseFilenames, obsoleteFilenames]),auto tryResult1078 = (GetDatabaseFilenames<ObsoleteFilenamesHandling ::Include>( *directory, aCanceled)); if ((__builtin_expect (!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12600, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); } auto [subdirsToProcess, databaseFilenames, obsoleteFilenames] = tryResult1078.unwrap(); | ||||
| 12599 | GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>(auto tryResult1078 = (GetDatabaseFilenames<ObsoleteFilenamesHandling ::Include>( *directory, aCanceled)); if ((__builtin_expect (!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12600, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); } auto [subdirsToProcess, databaseFilenames, obsoleteFilenames] = tryResult1078.unwrap(); | ||||
| 12600 | *directory, aCanceled))auto tryResult1078 = (GetDatabaseFilenames<ObsoleteFilenamesHandling ::Include>( *directory, aCanceled)); if ((__builtin_expect (!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12600, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); } auto [subdirsToProcess, databaseFilenames, obsoleteFilenames] = tryResult1078.unwrap();; | ||||
| 12601 | |||||
| 12602 | if (aInitializing) { | ||||
| 12603 | QM_TRY(CollectEachInRange({auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12604 | subdirsToProcess,{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12605 | [&directory, &obsoleteFilenames = obsoleteFilenames,{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12606 | &databaseFilenames = databaseFilenames, aPersistenceType,{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12607 | &aOriginMetadata]({auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12608 | const nsAString& subdirName) -> Result<Ok, nsresult> {{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12609 | // The directory must have the correct suffix.{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12610 | nsDependentSubstring subdirNameBase;{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12611 | QM_TRY(QM_OR_ELSE_WARN({auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12612 | // Expression.{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12613 | ([&subdirName, &subdirNameBase] {{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12614 | QM_TRY_RETURN(OkIf(GetFilenameBase({auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12615 | subdirName, kFileManagerDirectoryNameSuffix,{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12616 | subdirNameBase)));{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12617 | }()),{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12618 | // Fallback.{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12619 | ([&directory,{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12620 | &subdirName](const NotOk) -> Result<Ok, nsresult> {{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12621 | // If there is an unexpected directory in the idb{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12622 | // directory, trying to delete at first instead of{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12623 | // breaking the whole initialization.{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12624 | QM_TRY(MOZ_TO_RESULT({auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12625 | DeleteFilesNoQuota(directory, subdirName)),{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12626 | Err(NS_ERROR_UNEXPECTED));{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12627 | |||||
| 12628 | return Ok{};{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12629 | })),{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12630 | Ok{});{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12631 | |||||
| 12632 | if (obsoleteFilenames.Contains(subdirNameBase)) {{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12633 | // If this fails, it probably means we are in a serious situation.{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12634 | // e.g. Filesystem corruption. Will handle this in bug 1521541.{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12635 | QM_TRY(MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory({auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12636 | *directory, subdirNameBase, /* aQuotaManager */ nullptr,{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12637 | aPersistenceType, aOriginMetadata,{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12638 | /* aDatabaseName */ u""_ns)),{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12639 | Err(NS_ERROR_UNEXPECTED));{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12640 | |||||
| 12641 | databaseFilenames.Remove(subdirNameBase);{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12642 | return Ok{};{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12643 | }{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12644 | |||||
| 12645 | // The directory base must exist in databaseFilenames.{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12646 | // If there is an unexpected directory in the idb directory, trying to{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12647 | // delete at first instead of breaking the whole initialization.{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12648 | |||||
| 12649 | // XXX This is still somewhat quirky. It would be nice to make it{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12650 | // clear that the warning handler is infallible, which would also{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12651 | // remove the need for the error type conversion.{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12652 | QM_WARNONLY_TRY(QM_OR_ELSE_WARN({auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12653 | // Expression.{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12654 | OkIf(databaseFilenames.Contains(subdirNameBase)){auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12655 | .mapErr([](const NotOk) { return NS_ERROR_FAILURE; }),{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12656 | // Fallback.{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12657 | ([&directory,{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12658 | &subdirName](const nsresult) -> Result<Ok, nsresult> {{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12659 | // XXX It seems if we really got here, we can fail the{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12660 | // MOZ_ASSERT(!quotaManager->IsTemporaryStorageInitializedInternal());{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12661 | // assertion in DeleteFilesNoQuota.{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12662 | QM_TRY(MOZ_TO_RESULT(DeleteFilesNoQuota(directory, subdirName)),{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12663 | Err(NS_ERROR_UNEXPECTED));{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12664 | |||||
| 12665 | return Ok{};{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12666 | })));{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12667 | |||||
| 12668 | return Ok{};{auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }} | ||||
| 12669 | })){auto tryResult1085 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult1081 = ((([&subdirName, &subdirNameBase ] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12629, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12663 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1084.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1085 )::ok_type>); if ((__builtin_expect(!!(tryResult1085.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1081 = ((([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1079.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1079.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1081)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1081.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1079.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1079 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1079.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12616, mozilla::dom::quota::Severity::Error); } return tryResult1079;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12629, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1080 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1080)::ok_type>); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1080.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12626, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1082 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12639, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __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 tryResult1084 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12666, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1083 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12663, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1084.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12666, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1085 .propagateErr(); }}; | ||||
| 12670 | } | ||||
| 12671 | |||||
| 12672 | for (const auto& databaseFilename : databaseFilenames) { | ||||
| 12673 | if (aCanceled) { | ||||
| 12674 | break; | ||||
| 12675 | } | ||||
| 12676 | |||||
| 12677 | QM_TRY_INSPECT(auto tryResult1086 = (CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12680, mozilla::dom::quota::Severity::Error); return tryResult1086 .propagateErr(); } const auto& fmDirectory = tryResult1086 .inspect(); | ||||
| 12678 | const auto& fmDirectory,auto tryResult1086 = (CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12680, mozilla::dom::quota::Severity::Error); return tryResult1086 .propagateErr(); } const auto& fmDirectory = tryResult1086 .inspect(); | ||||
| 12679 | CloneFileAndAppend(*directory,auto tryResult1086 = (CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12680, mozilla::dom::quota::Severity::Error); return tryResult1086 .propagateErr(); } const auto& fmDirectory = tryResult1086 .inspect(); | ||||
| 12680 | databaseFilename + kFileManagerDirectoryNameSuffix))auto tryResult1086 = (CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12680, mozilla::dom::quota::Severity::Error); return tryResult1086 .propagateErr(); } const auto& fmDirectory = tryResult1086 .inspect();; | ||||
| 12681 | |||||
| 12682 | QM_TRY_INSPECT(auto tryResult1087 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1087.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)" , tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12684, mozilla::dom::quota::Severity::Error); return tryResult1087 .propagateErr(); } const auto& databaseFile = tryResult1087 .inspect(); | ||||
| 12683 | const auto& databaseFile,auto tryResult1087 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1087.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)" , tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12684, mozilla::dom::quota::Severity::Error); return tryResult1087 .propagateErr(); } const auto& databaseFile = tryResult1087 .inspect(); | ||||
| 12684 | CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix))auto tryResult1087 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1087.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)" , tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12684, mozilla::dom::quota::Severity::Error); return tryResult1087 .propagateErr(); } const auto& databaseFile = tryResult1087 .inspect();; | ||||
| 12685 | |||||
| 12686 | if (aInitializing) { | ||||
| 12687 | QM_TRY(MOZ_TO_RESULT(DatabaseFileManager::InitDirectory({auto tryResult1088 = (ToResult(DatabaseFileManager::InitDirectory ( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile (databaseFile)))); static_assert(std::is_empty_v<typename decltype (tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult1088 .propagateErr(); }} | ||||
| 12688 | *fmDirectory, *databaseFile, aOriginMetadata.mOrigin,{auto tryResult1088 = (ToResult(DatabaseFileManager::InitDirectory ( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile (databaseFile)))); static_assert(std::is_empty_v<typename decltype (tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult1088 .propagateErr(); }} | ||||
| 12689 | TelemetryIdForFile(databaseFile)))){auto tryResult1088 = (ToResult(DatabaseFileManager::InitDirectory ( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile (databaseFile)))); static_assert(std::is_empty_v<typename decltype (tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult1088 .propagateErr(); }}; | ||||
| 12690 | } | ||||
| 12691 | |||||
| 12692 | if (aUsageInfo) { | ||||
| 12693 | { | ||||
| 12694 | QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult1089 = (::mozilla::ToResultInvokeMember( (databaseFile ), &::mozilla::detail::DerefedType<decltype(databaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (databaseFile), &::mozilla::detail::DerefedType<decltype(databaseFile)>::GetFileSize )" , tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12695, mozilla::dom::quota::Severity::Error); return tryResult1089 .propagateErr(); } const int64_t& fileSize = tryResult1089 .inspect(); | ||||
| 12695 | MOZ_TO_RESULT_INVOKE_MEMBER(databaseFile, GetFileSize))auto tryResult1089 = (::mozilla::ToResultInvokeMember( (databaseFile ), &::mozilla::detail::DerefedType<decltype(databaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (databaseFile), &::mozilla::detail::DerefedType<decltype(databaseFile)>::GetFileSize )" , tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12695, mozilla::dom::quota::Severity::Error); return tryResult1089 .propagateErr(); } const int64_t& fileSize = tryResult1089 .inspect();; | ||||
| 12696 | |||||
| 12697 | MOZ_ASSERT(fileSize >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileSize >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize >= 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12697 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize >= 0" ")"); do { MOZ_CrashSequence(__null, 12697); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12698 | |||||
| 12699 | *aUsageInfo += DatabaseUsageType(Some(uint64_t(fileSize))); | ||||
| 12700 | } | ||||
| 12701 | |||||
| 12702 | { | ||||
| 12703 | QM_TRY_INSPECT(const auto& walFile,auto tryResult1090 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)" , tryResult1090.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12705, mozilla::dom::quota::Severity::Error); return tryResult1090 .propagateErr(); } const auto& walFile = tryResult1090.inspect (); | ||||
| 12704 | CloneFileAndAppend(*directory,auto tryResult1090 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)" , tryResult1090.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12705, mozilla::dom::quota::Severity::Error); return tryResult1090 .propagateErr(); } const auto& walFile = tryResult1090.inspect (); | ||||
| 12705 | databaseFilename + kSQLiteWALSuffix))auto tryResult1090 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)" , tryResult1090.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12705, mozilla::dom::quota::Severity::Error); return tryResult1090 .propagateErr(); } const auto& walFile = tryResult1090.inspect ();; | ||||
| 12706 | |||||
| 12707 | // QM_OR_ELSE_WARN_IF is not used here since we just want to log | ||||
| 12708 | // NS_ERROR_FILE_NOT_FOUND result and not spam the reports (the -wal | ||||
| 12709 | // file doesn't have to exist). | ||||
| 12710 | QM_TRY_INSPECT(const int64_t& walFileSize,auto tryResult1091 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize )), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1091.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, mozilla::dom::quota::Severity::Error); return tryResult1091 .propagateErr(); } const int64_t& walFileSize = tryResult1091 .inspect(); | ||||
| 12711 | QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult1091 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize )), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1091.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, mozilla::dom::quota::Severity::Error); return tryResult1091 .propagateErr(); } const int64_t& walFileSize = tryResult1091 .inspect(); | ||||
| 12712 | // Expression.auto tryResult1091 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize )), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1091.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, mozilla::dom::quota::Severity::Error); return tryResult1091 .propagateErr(); } const int64_t& walFileSize = tryResult1091 .inspect(); | ||||
| 12713 | MOZ_TO_RESULT_INVOKE_MEMBER(walFile, GetFileSize),auto tryResult1091 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize )), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1091.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, mozilla::dom::quota::Severity::Error); return tryResult1091 .propagateErr(); } const int64_t& walFileSize = tryResult1091 .inspect(); | ||||
| 12714 | // Predicate.auto tryResult1091 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize )), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1091.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, mozilla::dom::quota::Severity::Error); return tryResult1091 .propagateErr(); } const int64_t& walFileSize = tryResult1091 .inspect(); | ||||
| 12715 | ([](const nsresult rv) {auto tryResult1091 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize )), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1091.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, mozilla::dom::quota::Severity::Error); return tryResult1091 .propagateErr(); } const int64_t& walFileSize = tryResult1091 .inspect(); | ||||
| 12716 | return rv == NS_ERROR_FILE_NOT_FOUND;auto tryResult1091 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize )), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1091.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, mozilla::dom::quota::Severity::Error); return tryResult1091 .propagateErr(); } const int64_t& walFileSize = tryResult1091 .inspect(); | ||||
| 12717 | }),auto tryResult1091 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize )), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1091.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, mozilla::dom::quota::Severity::Error); return tryResult1091 .propagateErr(); } const int64_t& walFileSize = tryResult1091 .inspect(); | ||||
| 12718 | // Fallback.auto tryResult1091 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize )), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1091.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, mozilla::dom::quota::Severity::Error); return tryResult1091 .propagateErr(); } const int64_t& walFileSize = tryResult1091 .inspect(); | ||||
| 12719 | (ErrToOk<0, int64_t>)))auto tryResult1091 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize )), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota ::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1091.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12719, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12719, mozilla::dom::quota::Severity::Error); return tryResult1091 .propagateErr(); } const int64_t& walFileSize = tryResult1091 .inspect();; | ||||
| 12720 | MOZ_ASSERT(walFileSize >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(walFileSize >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(walFileSize >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("walFileSize >= 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12720 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "walFileSize >= 0" ")"); do { MOZ_CrashSequence(__null, 12720); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12721 | *aUsageInfo += DatabaseUsageType(Some(uint64_t(walFileSize))); | ||||
| 12722 | } | ||||
| 12723 | |||||
| 12724 | { | ||||
| 12725 | QM_TRY_INSPECT(const auto& fileUsage,auto tryResult1092 = (DatabaseFileManager::GetUsage(fmDirectory )); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla ::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)" , tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12726, mozilla::dom::quota::Severity::Error); return tryResult1092 .propagateErr(); } const auto& fileUsage = tryResult1092. inspect(); | ||||
| 12726 | DatabaseFileManager::GetUsage(fmDirectory))auto tryResult1092 = (DatabaseFileManager::GetUsage(fmDirectory )); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla ::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)" , tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12726, mozilla::dom::quota::Severity::Error); return tryResult1092 .propagateErr(); } const auto& fileUsage = tryResult1092. inspect();; | ||||
| 12727 | |||||
| 12728 | *aUsageInfo += fileUsage; | ||||
| 12729 | } | ||||
| 12730 | } | ||||
| 12731 | } | ||||
| 12732 | |||||
| 12733 | return NS_OK; | ||||
| 12734 | } | ||||
| 12735 | |||||
| 12736 | void QuotaClient::OnOriginClearCompleted( | ||||
| 12737 | const OriginMetadata& aOriginMetadata) { | ||||
| 12738 | AssertIsOnIOThread(); | ||||
| 12739 | |||||
| 12740 | if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) { | ||||
| 12741 | mgr->InvalidateFileManagers(aOriginMetadata.mPersistenceType, | ||||
| 12742 | aOriginMetadata.mOrigin); | ||||
| 12743 | } | ||||
| 12744 | } | ||||
| 12745 | |||||
| 12746 | void QuotaClient::OnRepositoryClearCompleted(PersistenceType aPersistenceType) { | ||||
| 12747 | AssertIsOnIOThread(); | ||||
| 12748 | |||||
| 12749 | if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) { | ||||
| 12750 | mgr->InvalidateFileManagers(aPersistenceType); | ||||
| 12751 | } | ||||
| 12752 | } | ||||
| 12753 | |||||
| 12754 | void QuotaClient::ReleaseIOThreadObjects() { | ||||
| 12755 | AssertIsOnIOThread(); | ||||
| 12756 | |||||
| 12757 | if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) { | ||||
| 12758 | mgr->InvalidateAllFileManagers(); | ||||
| 12759 | } | ||||
| 12760 | } | ||||
| 12761 | |||||
| 12762 | void QuotaClient::AbortOperationsForLocks( | ||||
| 12763 | const DirectoryLockIdTable& aDirectoryLockIds) { | ||||
| 12764 | AssertIsOnBackgroundThread(); | ||||
| 12765 | |||||
| 12766 | InvalidateLiveDatabasesMatching([&aDirectoryLockIds](const auto& database) { | ||||
| 12767 | // If the database is registered in gLiveDatabaseHashtable then it must have | ||||
| 12768 | // a directory lock. | ||||
| 12769 | return IsLockForObjectContainedInLockTable(database, aDirectoryLockIds); | ||||
| 12770 | }); | ||||
| 12771 | } | ||||
| 12772 | |||||
| 12773 | void QuotaClient::AbortOperationsForProcess(ContentParentId aContentParentId) { | ||||
| 12774 | AssertIsOnBackgroundThread(); | ||||
| 12775 | |||||
| 12776 | InvalidateLiveDatabasesMatching([&aContentParentId](const auto& database) { | ||||
| 12777 | return database.IsOwnedByProcess(aContentParentId); | ||||
| 12778 | }); | ||||
| 12779 | } | ||||
| 12780 | |||||
| 12781 | void QuotaClient::AbortAllOperations() { | ||||
| 12782 | AssertIsOnBackgroundThread(); | ||||
| 12783 | |||||
| 12784 | AbortAllMaintenances(); | ||||
| 12785 | |||||
| 12786 | InvalidateLiveDatabasesMatching([](const auto&) { return true; }); | ||||
| 12787 | } | ||||
| 12788 | |||||
| 12789 | void QuotaClient::StartIdleMaintenance() { | ||||
| 12790 | AssertIsOnBackgroundThread(); | ||||
| 12791 | if (IsShuttingDownOnBackgroundThread()) { | ||||
| 12792 | MOZ_ASSERT(false, "!IsShuttingDownOnBackgroundThread()")do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "!IsShuttingDownOnBackgroundThread()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12792 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 12792); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12793 | return; | ||||
| 12794 | } | ||||
| 12795 | |||||
| 12796 | DoMaintenance(); | ||||
| 12797 | } | ||||
| 12798 | |||||
| 12799 | void QuotaClient::StopIdleMaintenance() { | ||||
| 12800 | AssertIsOnBackgroundThread(); | ||||
| 12801 | |||||
| 12802 | AbortAllMaintenances(); | ||||
| 12803 | } | ||||
| 12804 | |||||
| 12805 | void QuotaClient::InitiateShutdown() { | ||||
| 12806 | AssertIsOnBackgroundThread(); | ||||
| 12807 | MOZ_ASSERT(IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsShuttingDownOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsShuttingDownOnBackgroundThread ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12807); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 12807); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12808 | |||||
| 12809 | if (mDeleteTimer) { | ||||
| 12810 | // QuotaClient::AsyncDeleteFile will not schedule new timers beyond | ||||
| 12811 | // shutdown. And we expect all critical (PBM) deletions to have been | ||||
| 12812 | // triggered before this point via ClearPrivateRepository (w/out using | ||||
| 12813 | // DeleteFilesRunnable at all). | ||||
| 12814 | mDeleteTimer->Cancel(); | ||||
| 12815 | mDeleteTimer = nullptr; | ||||
| 12816 | mPendingDeleteInfos.Clear(); | ||||
| 12817 | } | ||||
| 12818 | |||||
| 12819 | AbortAllOperations(); | ||||
| 12820 | } | ||||
| 12821 | |||||
| 12822 | bool QuotaClient::IsShutdownCompleted() const { | ||||
| 12823 | return (!gFactoryOps || gFactoryOps->isEmpty()) && | ||||
| 12824 | (!gLiveDatabaseHashtable || !gLiveDatabaseHashtable->Count()) && | ||||
| 12825 | !mCurrentMaintenance && !DeleteFilesRunnable::IsDeletionPending(); | ||||
| 12826 | } | ||||
| 12827 | |||||
| 12828 | void QuotaClient::ForceKillActors() { | ||||
| 12829 | // Currently we don't implement force killing actors. | ||||
| 12830 | } | ||||
| 12831 | |||||
| 12832 | nsCString QuotaClient::GetShutdownStatus() const { | ||||
| 12833 | AssertIsOnBackgroundThread(); | ||||
| 12834 | |||||
| 12835 | nsCString data; | ||||
| 12836 | |||||
| 12837 | if (gFactoryOps && !gFactoryOps->isEmpty()) { | ||||
| 12838 | data.Append("FactoryOperations: "_ns + | ||||
| 12839 | IntToCString(static_cast<uint32_t>(gFactoryOps->length())) + | ||||
| 12840 | " ("_ns); | ||||
| 12841 | |||||
| 12842 | // XXX It might be confusing to remove duplicates here, as the actual list | ||||
| 12843 | // won't match the count then. | ||||
| 12844 | nsTHashSet<nsCString> ids; | ||||
| 12845 | |||||
| 12846 | std::transform(gFactoryOps->begin(), gFactoryOps->end(), MakeInserter(ids), | ||||
| 12847 | [](const FactoryOp* const factoryOp) { | ||||
| 12848 | MOZ_ASSERT(factoryOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(factoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(factoryOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("factoryOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12848); AnnotateMozCrashReason("MOZ_ASSERT" "(" "factoryOp" ")"); do { MOZ_CrashSequence(__null, 12848); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12849 | |||||
| 12850 | nsCString id; | ||||
| 12851 | factoryOp->Stringify(id); | ||||
| 12852 | return id; | ||||
| 12853 | }); | ||||
| 12854 | |||||
| 12855 | StringJoinAppend(data, ", "_ns, ids); | ||||
| 12856 | |||||
| 12857 | data.Append(")\n"); | ||||
| 12858 | } | ||||
| 12859 | |||||
| 12860 | if (gLiveDatabaseHashtable && gLiveDatabaseHashtable->Count()) { | ||||
| 12861 | data.Append("LiveDatabases: "_ns + | ||||
| 12862 | IntToCString(gLiveDatabaseHashtable->Count()) + " ("_ns); | ||||
| 12863 | |||||
| 12864 | // XXX It might be confusing to remove duplicates here, as the actual list | ||||
| 12865 | // won't match the count then. | ||||
| 12866 | nsTHashSet<nsCString> ids; | ||||
| 12867 | |||||
| 12868 | for (const auto& entry : gLiveDatabaseHashtable->Values()) { | ||||
| 12869 | MOZ_ASSERT(entry)do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(entry))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("entry", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12869); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry" ")" ); do { MOZ_CrashSequence(__null, 12869); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 12870 | |||||
| 12871 | std::transform(entry->mLiveDatabases.begin(), entry->mLiveDatabases.end(), | ||||
| 12872 | MakeInserter(ids), [](const Database* const database) { | ||||
| 12873 | nsCString id; | ||||
| 12874 | database->Stringify(id); | ||||
| 12875 | return id; | ||||
| 12876 | }); | ||||
| 12877 | } | ||||
| 12878 | |||||
| 12879 | StringJoinAppend(data, ", "_ns, ids); | ||||
| 12880 | |||||
| 12881 | data.Append(")\n"); | ||||
| 12882 | } | ||||
| 12883 | |||||
| 12884 | if (mCurrentMaintenance) { | ||||
| 12885 | data.Append("IdleMaintenance: 1 ("); | ||||
| 12886 | mCurrentMaintenance->Stringify(data); | ||||
| 12887 | data.Append(")\n"); | ||||
| 12888 | } | ||||
| 12889 | |||||
| 12890 | return data; | ||||
| 12891 | } | ||||
| 12892 | |||||
| 12893 | void QuotaClient::FinalizeShutdown() { | ||||
| 12894 | RefPtr<ConnectionPool> connectionPool = gConnectionPool.get(); | ||||
| 12895 | if (connectionPool) { | ||||
| 12896 | connectionPool->Shutdown(); | ||||
| 12897 | |||||
| 12898 | gConnectionPool = nullptr; | ||||
| 12899 | } | ||||
| 12900 | |||||
| 12901 | if (mMaintenanceThreadPool) { | ||||
| 12902 | mMaintenanceThreadPool->Shutdown(); | ||||
| 12903 | mMaintenanceThreadPool = nullptr; | ||||
| 12904 | } | ||||
| 12905 | } | ||||
| 12906 | |||||
| 12907 | void QuotaClient::DeleteTimerCallback(nsITimer* aTimer, void* aClosure) { | ||||
| 12908 | AssertIsOnBackgroundThread(); | ||||
| 12909 | MOZ_ASSERT(aTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTimer)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12909); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTimer" ")" ); do { MOZ_CrashSequence(__null, 12909); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 12910 | |||||
| 12911 | // Even though we do not schedule new timers after shutdown has started, | ||||
| 12912 | // an already existing one might fire afterwards (actually we think it | ||||
| 12913 | // shouldn't, but there is no reason to enforce this invariant). We can | ||||
| 12914 | // just ignore it, the cleanup work is done in InitiateShutdown. | ||||
| 12915 | if (NS_WARN_IF(IsShuttingDownOnBackgroundThread())NS_warn_if_impl(IsShuttingDownOnBackgroundThread(), "IsShuttingDownOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12915 )) { | ||||
| 12916 | return; | ||||
| 12917 | } | ||||
| 12918 | |||||
| 12919 | auto* const self = static_cast<QuotaClient*>(aClosure); | ||||
| 12920 | MOZ_ASSERT(self)do { static_assert( mozilla::detail::AssertionConditionType< decltype(self)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(self))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("self", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12920); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self" ")") ; do { MOZ_CrashSequence(__null, 12920); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 12921 | MOZ_ASSERT(self->mDeleteTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(self->mDeleteTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(self->mDeleteTimer))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("self->mDeleteTimer" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self->mDeleteTimer" ")"); do { MOZ_CrashSequence(__null, 12921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12922 | MOZ_ASSERT(SameCOMIdentity(self->mDeleteTimer, aTimer))do { static_assert( mozilla::detail::AssertionConditionType< decltype(SameCOMIdentity(self->mDeleteTimer, aTimer))>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(SameCOMIdentity(self->mDeleteTimer, aTimer)))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("SameCOMIdentity(self->mDeleteTimer, aTimer)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12922 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "SameCOMIdentity(self->mDeleteTimer, aTimer)" ")"); do { MOZ_CrashSequence(__null, 12922); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12923 | |||||
| 12924 | for (const auto& pendingDeleteInfoEntry : self->mPendingDeleteInfos) { | ||||
| 12925 | const auto& key = pendingDeleteInfoEntry.GetKey(); | ||||
| 12926 | const auto& value = pendingDeleteInfoEntry.GetData(); | ||||
| 12927 | MOZ_ASSERT(!value->IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!value->IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!value->IsEmpty()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!value->IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12927 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!value->IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 12927); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12928 | |||||
| 12929 | RefPtr<DeleteFilesRunnable> runnable = new DeleteFilesRunnable( | ||||
| 12930 | SafeRefPtr{key, AcquireStrongRefFromRawPtr{}}, std::move(*value)); | ||||
| 12931 | |||||
| 12932 | MOZ_ASSERT(value->IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(value->IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(value->IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("value->IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12932 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "value->IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 12932); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12933 | |||||
| 12934 | runnable->RunImmediately(); | ||||
| 12935 | } | ||||
| 12936 | |||||
| 12937 | self->mPendingDeleteInfos.Clear(); | ||||
| 12938 | } | ||||
| 12939 | |||||
| 12940 | void QuotaClient::AbortAllMaintenances() { | ||||
| 12941 | if (mCurrentMaintenance) { | ||||
| 12942 | mCurrentMaintenance->Abort(); | ||||
| 12943 | } | ||||
| 12944 | |||||
| 12945 | for (const auto& maintenance : mMaintenanceQueue) { | ||||
| 12946 | maintenance->Abort(); | ||||
| 12947 | } | ||||
| 12948 | } | ||||
| 12949 | |||||
| 12950 | Result<nsCOMPtr<nsIFile>, nsresult> QuotaClient::GetDirectory( | ||||
| 12951 | const OriginMetadata& aOriginMetadata) { | ||||
| 12952 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 12953 | NS_ASSERTION(quotaManager, "This should never fail!")do { if (!(quotaManager)) { NS_DebugBreak(NS_DEBUG_ASSERTION, "This should never fail!", "quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12953); MOZ_PretendNoReturn(); } } while (0); | ||||
| 12954 | |||||
| 12955 | QM_TRY_INSPECT(const auto& directory,auto tryResult1093 = (quotaManager->GetOriginDirectory(aOriginMetadata )); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(aOriginMetadata)" , tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12956, mozilla::dom::quota::Severity::Error); return tryResult1093 .propagateErr(); } const auto& directory = tryResult1093. inspect(); | ||||
| 12956 | quotaManager->GetOriginDirectory(aOriginMetadata))auto tryResult1093 = (quotaManager->GetOriginDirectory(aOriginMetadata )); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(aOriginMetadata)" , tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12956, mozilla::dom::quota::Severity::Error); return tryResult1093 .propagateErr(); } const auto& directory = tryResult1093. inspect();; | ||||
| 12957 | |||||
| 12958 | MOZ_ASSERT(directory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(directory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(directory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("directory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12958); AnnotateMozCrashReason("MOZ_ASSERT" "(" "directory" ")"); do { MOZ_CrashSequence(__null, 12958); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12959 | |||||
| 12960 | QM_TRY(MOZ_TO_RESULT({auto tryResult1094 = (ToResult(directory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12961, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12961 | directory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1094 = (ToResult(directory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12961, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }}; | ||||
| 12962 | |||||
| 12963 | return directory; | ||||
| 12964 | } | ||||
| 12965 | |||||
| 12966 | template <QuotaClient::ObsoleteFilenamesHandling ObsoleteFilenames> | ||||
| 12967 | Result<QuotaClient::GetDatabaseFilenamesResult<ObsoleteFilenames>, nsresult> | ||||
| 12968 | QuotaClient::GetDatabaseFilenames(nsIFile& aDirectory, | ||||
| 12969 | const AtomicBool& aCanceled) { | ||||
| 12970 | AssertIsOnIOThread(); | ||||
| 12971 | |||||
| 12972 | GetDatabaseFilenamesResult<ObsoleteFilenames> result; | ||||
| 12973 | |||||
| 12974 | QM_TRY(CollectEachFileAtomicCancelable({auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12975 | aDirectory, aCanceled,{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12976 | [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12977 | QM_TRY_INSPECT(const auto& leafName, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12978 | nsString, file, GetLeafName));{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12979 | |||||
| 12980 | QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*file));{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12981 | |||||
| 12982 | switch (dirEntryKind) {{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12983 | case nsIFileKind::ExistsAsDirectory:{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12984 | result.subdirsToProcess.AppendElement(leafName);{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12985 | break;{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12986 | |||||
| 12987 | case nsIFileKind::ExistsAsFile: {{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12988 | if constexpr (ObsoleteFilenames =={auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12989 | ObsoleteFilenamesHandling::Include) {{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12990 | if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) {{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12991 | result.obsoleteFilenames.Insert({auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12992 | Substring(leafName, kIdbDeletionMarkerFilePrefix.Length()));{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12993 | break;{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12994 | }{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12995 | }{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12996 | |||||
| 12997 | // Skip OS metadata files. These files are only used in different{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12998 | // platforms, but the profile can be shared across different{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12999 | // operating systems, so we check it on all platforms.{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13000 | if (QuotaManager::IsOSMetadata(leafName)) {{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13001 | break;{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13002 | }{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13003 | |||||
| 13004 | // Skip files starting with ".".{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13005 | if (QuotaManager::IsDotFile(leafName)) {{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13006 | break;{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13007 | }{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13008 | |||||
| 13009 | // Skip SQLite temporary files. These files take up space on disk{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13010 | // but will be deleted as soon as the database is opened, so we{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13011 | // don't count them towards quota.{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13012 | if (StringEndsWith(leafName, kSQLiteJournalSuffix) ||{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13013 | StringEndsWith(leafName, kSQLiteSHMSuffix)) {{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13014 | break;{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13015 | }{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13016 | |||||
| 13017 | // The SQLite WAL file does count towards quota, but it is handled{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13018 | // below once we find the actual database file.{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13019 | if (StringEndsWith(leafName, kSQLiteWALSuffix)) {{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13020 | break;{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13021 | }{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13022 | |||||
| 13023 | nsDependentSubstring leafNameBase;{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13024 | if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) {{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13025 | UNKNOWN_FILE_WARNING(leafName);{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13026 | break;{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13027 | }{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13028 | |||||
| 13029 | result.databaseFilenames.Insert(leafNameBase);{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13030 | break;{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13031 | }{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13032 | |||||
| 13033 | case nsIFileKind::DoesNotExist:{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13034 | // Ignore files that got removed externally while iterating.{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13035 | break;{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13036 | }{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13037 | |||||
| 13038 | return Ok{};{auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 13039 | })){auto tryResult1097 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& leafName = tryResult1095.inspect ();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& dirEntryKind = tryResult1096 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13025); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1097 )::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1095 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& leafName = tryResult1095.inspect();; auto tryResult1096 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& dirEntryKind = tryResult1096.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13025); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }}; | ||||
| 13040 | |||||
| 13041 | return result; | ||||
| 13042 | } | ||||
| 13043 | |||||
| 13044 | void QuotaClient::ProcessMaintenanceQueue() { | ||||
| 13045 | AssertIsOnBackgroundThread(); | ||||
| 13046 | |||||
| 13047 | if (mCurrentMaintenance || mMaintenanceQueue.IsEmpty()) { | ||||
| 13048 | return; | ||||
| 13049 | } | ||||
| 13050 | |||||
| 13051 | mCurrentMaintenance = mMaintenanceQueue[0]; | ||||
| 13052 | mMaintenanceQueue.RemoveElementAt(0); | ||||
| 13053 | |||||
| 13054 | mCurrentMaintenance->RunImmediately(); | ||||
| 13055 | } | ||||
| 13056 | |||||
| 13057 | /******************************************************************************* | ||||
| 13058 | * DeleteFilesRunnable | ||||
| 13059 | ******************************************************************************/ | ||||
| 13060 | |||||
| 13061 | uint64_t DeleteFilesRunnable::sPendingRunnables = 0; | ||||
| 13062 | |||||
| 13063 | DeleteFilesRunnable::DeleteFilesRunnable( | ||||
| 13064 | SafeRefPtr<DatabaseFileManager> aFileManager, nsTArray<int64_t>&& aFileIds) | ||||
| 13065 | : Runnable("dom::indexeddb::DeleteFilesRunnable"), | ||||
| 13066 | mOwningEventTarget(GetCurrentSerialEventTarget()), | ||||
| 13067 | mFileManager(std::move(aFileManager)), | ||||
| 13068 | mFileIds(std::move(aFileIds)), | ||||
| 13069 | mState(State_Initial) {} | ||||
| 13070 | |||||
| 13071 | #ifdef DEBUG1 | ||||
| 13072 | DeleteFilesRunnable::~DeleteFilesRunnable() { | ||||
| 13073 | MOZ_ASSERT(!mDEBUGCountsAsPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDEBUGCountsAsPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDEBUGCountsAsPending))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGCountsAsPending" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13073 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGCountsAsPending" ")"); do { MOZ_CrashSequence(__null, 13073); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13074 | } | ||||
| 13075 | #endif | ||||
| 13076 | |||||
| 13077 | void DeleteFilesRunnable::RunImmediately() { | ||||
| 13078 | AssertIsOnBackgroundThread(); | ||||
| 13079 | MOZ_ASSERT(mState == State_Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State_Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State_Initial))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State_Initial" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13079 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_Initial" ")"); do { MOZ_CrashSequence(__null, 13079); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13080 | |||||
| 13081 | (void)this->Run(); | ||||
| 13082 | } | ||||
| 13083 | |||||
| 13084 | void DeleteFilesRunnable::Open() { | ||||
| 13085 | AssertIsOnBackgroundThread(); | ||||
| 13086 | MOZ_ASSERT(mState == State_Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State_Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State_Initial))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State_Initial" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13086 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_Initial" ")"); do { MOZ_CrashSequence(__null, 13086); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13087 | |||||
| 13088 | MOZ_ASSERT(!mDEBUGCountsAsPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDEBUGCountsAsPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDEBUGCountsAsPending))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGCountsAsPending" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13088 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGCountsAsPending" ")"); do { MOZ_CrashSequence(__null, 13088); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13089 | sPendingRunnables++; | ||||
| 13090 | DEBUGONLY(mDEBUGCountsAsPending = true)mDEBUGCountsAsPending = true; | ||||
| 13091 | |||||
| 13092 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 13093 | if (NS_WARN_IF(!quotaManager)NS_warn_if_impl(!quotaManager, "!quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13093)) { | ||||
| 13094 | Finish(); | ||||
| 13095 | return; | ||||
| 13096 | } | ||||
| 13097 | |||||
| 13098 | mState = State_DirectoryOpenPending; | ||||
| 13099 | |||||
| 13100 | quotaManager | ||||
| 13101 | ->OpenClientDirectory( | ||||
| 13102 | {mFileManager->OriginMetadata(), quota::Client::IDB}) | ||||
| 13103 | ->Then( | ||||
| 13104 | GetCurrentSerialEventTarget(), __func__, | ||||
| 13105 | [self = RefPtr(this)](QuotaManager::ClientDirectoryLockHandlePromise:: | ||||
| 13106 | ResolveOrRejectValue&& aValue) { | ||||
| 13107 | if (aValue.IsResolve()) { | ||||
| 13108 | self->DirectoryLockAcquired(std::move(aValue.ResolveValue())); | ||||
| 13109 | } else { | ||||
| 13110 | self->DirectoryLockFailed(); | ||||
| 13111 | } | ||||
| 13112 | }); | ||||
| 13113 | } | ||||
| 13114 | |||||
| 13115 | void DeleteFilesRunnable::DoDatabaseWork() { | ||||
| 13116 | AssertIsOnIOThread(); | ||||
| 13117 | MOZ_ASSERT(mState == State_DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State_DatabaseWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State_DatabaseWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State_DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13117); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DatabaseWorkOpen" ")"); do { MOZ_CrashSequence(__null, 13117); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13118 | |||||
| 13119 | if (!mFileManager->Invalidated()) { | ||||
| 13120 | for (int64_t fileId : mFileIds) { | ||||
| 13121 | if (NS_FAILED(mFileManager->SyncDeleteFile(fileId))((bool)(__builtin_expect(!!(NS_FAILED_impl(mFileManager->SyncDeleteFile (fileId))), 0)))) { | ||||
| 13122 | NS_WARNING("Failed to delete file!")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to delete file!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13122 ); | ||||
| 13123 | } | ||||
| 13124 | } | ||||
| 13125 | } | ||||
| 13126 | |||||
| 13127 | Finish(); | ||||
| 13128 | } | ||||
| 13129 | |||||
| 13130 | void DeleteFilesRunnable::Finish() { | ||||
| 13131 | MOZ_ASSERT(mState != State_UnblockingOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState != State_UnblockingOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState != State_UnblockingOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState != State_UnblockingOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State_UnblockingOpen" ")"); do { MOZ_CrashSequence(__null, 13131); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13132 | |||||
| 13133 | // Must set mState before dispatching otherwise we will race with the main | ||||
| 13134 | // thread. | ||||
| 13135 | mState = State_UnblockingOpen; | ||||
| 13136 | |||||
| 13137 | MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13137 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 13137); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 13138 | } | ||||
| 13139 | |||||
| 13140 | void DeleteFilesRunnable::UnblockOpen() { | ||||
| 13141 | AssertIsOnBackgroundThread(); | ||||
| 13142 | MOZ_ASSERT(mState == State_UnblockingOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State_UnblockingOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State_UnblockingOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State_UnblockingOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13142); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_UnblockingOpen" ")"); do { MOZ_CrashSequence(__null, 13142); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13143 | |||||
| 13144 | { | ||||
| 13145 | auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle); | ||||
| 13146 | } | ||||
| 13147 | |||||
| 13148 | MOZ_ASSERT(mDEBUGCountsAsPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGCountsAsPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGCountsAsPending))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGCountsAsPending" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13148 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGCountsAsPending" ")"); do { MOZ_CrashSequence(__null, 13148); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13149 | sPendingRunnables--; | ||||
| 13150 | DEBUGONLY(mDEBUGCountsAsPending = false)mDEBUGCountsAsPending = false; | ||||
| 13151 | |||||
| 13152 | mState = State_Completed; | ||||
| 13153 | } | ||||
| 13154 | |||||
| 13155 | NS_IMETHODIMPnsresult | ||||
| 13156 | DeleteFilesRunnable::Run() { | ||||
| 13157 | switch (mState) { | ||||
| 13158 | case State_Initial: | ||||
| 13159 | Open(); | ||||
| 13160 | break; | ||||
| 13161 | |||||
| 13162 | case State_DatabaseWorkOpen: | ||||
| 13163 | DoDatabaseWork(); | ||||
| 13164 | break; | ||||
| 13165 | |||||
| 13166 | case State_UnblockingOpen: | ||||
| 13167 | UnblockOpen(); | ||||
| 13168 | break; | ||||
| 13169 | |||||
| 13170 | case State_DirectoryOpenPending: | ||||
| 13171 | default: | ||||
| 13172 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13172 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 13172); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 13173 | } | ||||
| 13174 | |||||
| 13175 | return NS_OK; | ||||
| 13176 | } | ||||
| 13177 | |||||
| 13178 | void DeleteFilesRunnable::DirectoryLockAcquired( | ||||
| 13179 | ClientDirectoryLockHandle aLockHandle) { | ||||
| 13180 | AssertIsOnBackgroundThread(); | ||||
| 13181 | MOZ_ASSERT(mState == State_DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State_DirectoryOpenPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State_DirectoryOpenPending ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State_DirectoryOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13181); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DirectoryOpenPending" ")"); do { MOZ_CrashSequence(__null, 13181); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13182 | MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13182 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 13182); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13183 | |||||
| 13184 | mDirectoryLockHandle = std::move(aLockHandle); | ||||
| 13185 | |||||
| 13186 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 13187 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13187); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 13187); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13188 | |||||
| 13189 | // Must set this before dispatching otherwise we will race with the IO thread | ||||
| 13190 | mState = State_DatabaseWorkOpen; | ||||
| 13191 | |||||
| 13192 | QM_TRY(MOZ_TO_RESULT({auto tryResult1098 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1098)::ok_type >); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { auto tryTempError = tryResult1098.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13194, mozilla::dom::quota::Severity::Error); [this](const nsresult ) { Finish(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; }} | ||||
| 13193 | quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1098 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1098)::ok_type >); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { auto tryTempError = tryResult1098.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13194, mozilla::dom::quota::Severity::Error); [this](const nsresult ) { Finish(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; }} | ||||
| 13194 | QM_VOID, [this](const nsresult) { Finish(); }){auto tryResult1098 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1098)::ok_type >); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { auto tryTempError = tryResult1098.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13194, mozilla::dom::quota::Severity::Error); [this](const nsresult ) { Finish(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; | ||||
| 13195 | } | ||||
| 13196 | |||||
| 13197 | void DeleteFilesRunnable::DirectoryLockFailed() { | ||||
| 13198 | AssertIsOnBackgroundThread(); | ||||
| 13199 | MOZ_ASSERT(mState == State_DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State_DirectoryOpenPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State_DirectoryOpenPending ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State_DirectoryOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13199); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DirectoryOpenPending" ")"); do { MOZ_CrashSequence(__null, 13199); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13200 | MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13200 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 13200); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13201 | |||||
| 13202 | Finish(); | ||||
| 13203 | } | ||||
| 13204 | |||||
| 13205 | void Maintenance::Abort() { | ||||
| 13206 | AssertIsOnBackgroundThread(); | ||||
| 13207 | |||||
| 13208 | // Safe because mDatabaseMaintenances is modified | ||||
| 13209 | // only in the background thread | ||||
| 13210 | for (const auto& aDatabaseMaintenance : mDatabaseMaintenances) { | ||||
| 13211 | aDatabaseMaintenance.GetData()->Abort(); | ||||
| 13212 | } | ||||
| 13213 | |||||
| 13214 | mAborted = true; | ||||
| 13215 | } | ||||
| 13216 | |||||
| 13217 | void Maintenance::RegisterDatabaseMaintenance( | ||||
| 13218 | DatabaseMaintenance* aDatabaseMaintenance) { | ||||
| 13219 | AssertIsOnBackgroundThread(); | ||||
| 13220 | MOZ_ASSERT(aDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseMaintenance)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseMaintenance))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseMaintenance" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13220 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseMaintenance" ")"); do { MOZ_CrashSequence(__null, 13220); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13221 | MOZ_ASSERT(mState == State::BeginDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginDatabaseMaintenance)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mState == State::BeginDatabaseMaintenance))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::BeginDatabaseMaintenance" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginDatabaseMaintenance" ")"); do { MOZ_CrashSequence(__null, 13221); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13222 | MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseMaintenances.Contains(aDatabaseMaintenance ->DatabasePath()))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseMaintenances.Contains (aDatabaseMaintenance->DatabasePath())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13223 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())" ")"); do { MOZ_CrashSequence(__null, 13223); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 13223 | !mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseMaintenances.Contains(aDatabaseMaintenance ->DatabasePath()))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseMaintenances.Contains (aDatabaseMaintenance->DatabasePath())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13223 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())" ")"); do { MOZ_CrashSequence(__null, 13223); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13224 | |||||
| 13225 | mDatabaseMaintenances.InsertOrUpdate(aDatabaseMaintenance->DatabasePath(), | ||||
| 13226 | aDatabaseMaintenance); | ||||
| 13227 | } | ||||
| 13228 | |||||
| 13229 | void Maintenance::UnregisterDatabaseMaintenance( | ||||
| 13230 | DatabaseMaintenance* aDatabaseMaintenance) { | ||||
| 13231 | AssertIsOnBackgroundThread(); | ||||
| 13232 | MOZ_ASSERT(aDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseMaintenance)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseMaintenance))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseMaintenance" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13232 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseMaintenance" ")"); do { MOZ_CrashSequence(__null, 13232); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13233 | MOZ_ASSERT(mState == State::WaitingForDatabaseMaintenancesToComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForDatabaseMaintenancesToComplete )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForDatabaseMaintenancesToComplete ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::WaitingForDatabaseMaintenancesToComplete", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13233); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForDatabaseMaintenancesToComplete" ")"); do { MOZ_CrashSequence(__null, 13233); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13234 | MOZ_ASSERT(mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath ()))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath ())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13234 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath())" ")"); do { MOZ_CrashSequence(__null, 13234); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13235 | |||||
| 13236 | mDatabaseMaintenances.Remove(aDatabaseMaintenance->DatabasePath()); | ||||
| 13237 | |||||
| 13238 | if (mDatabaseMaintenances.Count()) { | ||||
| 13239 | return; | ||||
| 13240 | } | ||||
| 13241 | |||||
| 13242 | for (const auto& completeCallback : mCompleteCallbacks) { | ||||
| 13243 | MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(completeCallback))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_DispatchToCurrentThread(completeCallback))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(completeCallback))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13243 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(completeCallback))" ")"); do { MOZ_CrashSequence(__null, 13243); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 13244 | } | ||||
| 13245 | mCompleteCallbacks.Clear(); | ||||
| 13246 | |||||
| 13247 | mState = State::Finishing; | ||||
| 13248 | Finish(); | ||||
| 13249 | } | ||||
| 13250 | |||||
| 13251 | void Maintenance::Stringify(nsACString& aResult) const { | ||||
| 13252 | AssertIsOnBackgroundThread(); | ||||
| 13253 | |||||
| 13254 | aResult.Append("DatabaseMaintenances: "_ns + | ||||
| 13255 | IntToCString(mDatabaseMaintenances.Count()) + " ("_ns); | ||||
| 13256 | |||||
| 13257 | // XXX It might be confusing to remove duplicates here, as the actual list | ||||
| 13258 | // won't match the count then. | ||||
| 13259 | nsTHashSet<nsCString> ids; | ||||
| 13260 | std::transform(mDatabaseMaintenances.Values().cbegin(), | ||||
| 13261 | mDatabaseMaintenances.Values().cend(), MakeInserter(ids), | ||||
| 13262 | [](const auto& entry) { | ||||
| 13263 | MOZ_ASSERT(entry)do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(entry))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("entry", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13263); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry" ")" ); do { MOZ_CrashSequence(__null, 13263); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 13264 | |||||
| 13265 | nsCString id; | ||||
| 13266 | entry->Stringify(id); | ||||
| 13267 | |||||
| 13268 | return id; | ||||
| 13269 | }); | ||||
| 13270 | |||||
| 13271 | StringJoinAppend(aResult, ", "_ns, ids); | ||||
| 13272 | |||||
| 13273 | aResult.Append(")"); | ||||
| 13274 | } | ||||
| 13275 | |||||
| 13276 | nsresult Maintenance::Start() { | ||||
| 13277 | AssertIsOnBackgroundThread(); | ||||
| 13278 | MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13278 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial" ")"); do { MOZ_CrashSequence(__null, 13278); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13279 | |||||
| 13280 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13280) || | ||||
| 13281 | IsAborted()) { | ||||
| 13282 | return NS_ERROR_ABORT; | ||||
| 13283 | } | ||||
| 13284 | |||||
| 13285 | // Make sure that the IndexedDatabaseManager is running so that we can check | ||||
| 13286 | // for low disk space mode. | ||||
| 13287 | |||||
| 13288 | if (IndexedDatabaseManager::Get()) { | ||||
| 13289 | OpenDirectory(); | ||||
| 13290 | return NS_OK; | ||||
| 13291 | } | ||||
| 13292 | |||||
| 13293 | mState = State::CreateIndexedDatabaseManager; | ||||
| 13294 | MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(this))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_DispatchToMainThread(this))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToMainThread(this))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13294 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToMainThread(this))" ")"); do { MOZ_CrashSequence(__null, 13294); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 13295 | |||||
| 13296 | return NS_OK; | ||||
| 13297 | } | ||||
| 13298 | |||||
| 13299 | nsresult Maintenance::CreateIndexedDatabaseManager() { | ||||
| 13300 | MOZ_ASSERT(NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13300 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 13300); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13301 | MOZ_ASSERT(mState == State::CreateIndexedDatabaseManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::CreateIndexedDatabaseManager)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::CreateIndexedDatabaseManager))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::CreateIndexedDatabaseManager" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13301 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::CreateIndexedDatabaseManager" ")"); do { MOZ_CrashSequence(__null, 13301); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13302 | |||||
| 13303 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13303) || | ||||
| 13304 | IsAborted()) { | ||||
| 13305 | return NS_ERROR_ABORT; | ||||
| 13306 | } | ||||
| 13307 | |||||
| 13308 | IndexedDatabaseManager* const mgr = IndexedDatabaseManager::GetOrCreate(); | ||||
| 13309 | if (NS_WARN_IF(!mgr)NS_warn_if_impl(!mgr, "!mgr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13309)) { | ||||
| 13310 | return NS_ERROR_FAILURE; | ||||
| 13311 | } | ||||
| 13312 | |||||
| 13313 | mState = State::IndexedDatabaseManagerOpen; | ||||
| 13314 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13315 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 13315); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 13315 | mQuotaClient->BackgroundThread()->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13315 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 13315); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 13316 | |||||
| 13317 | return NS_OK; | ||||
| 13318 | } | ||||
| 13319 | |||||
| 13320 | RefPtr<UniversalDirectoryLockPromise> Maintenance::OpenStorageDirectory( | ||||
| 13321 | const PersistenceScope& aPersistenceScope, bool aInitializeOrigins) { | ||||
| 13322 | AssertIsOnBackgroundThread(); | ||||
| 13323 | MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13323 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 13323); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13324 | MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13324 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")" ); do { MOZ_CrashSequence(__null, 13324); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 13325 | MOZ_ASSERT(!mAborted)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mAborted)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mAborted))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mAborted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13325); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mAborted" ")"); do { MOZ_CrashSequence(__null, 13325); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13326 | MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryOpenPending)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mState == State::DirectoryOpenPending))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13326 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { MOZ_CrashSequence(__null, 13326); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13327 | |||||
| 13328 | QuotaManager* quotaManager = QuotaManager::Get(); | ||||
| 13329 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13329); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 13329); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13330 | |||||
| 13331 | // Return a shared lock for <profile>/storage/repo(aPersistenceScope)/*/idb | ||||
| 13332 | return quotaManager->OpenStorageDirectory( | ||||
| 13333 | aPersistenceScope, OriginScope::FromNull(), | ||||
| 13334 | ClientStorageScope::CreateFromClient(Client::IDB), | ||||
| 13335 | /* aExclusive */ false, aInitializeOrigins, DirectoryLockCategory::None, | ||||
| 13336 | SomeRef(mPendingDirectoryLock)); | ||||
| 13337 | } | ||||
| 13338 | |||||
| 13339 | nsresult Maintenance::OpenDirectory() { | ||||
| 13340 | AssertIsOnBackgroundThread(); | ||||
| 13341 | MOZ_ASSERT(mState == State::Initial ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13342 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen" ")"); do { MOZ_CrashSequence(__null, 13342); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 13342 | mState == State::IndexedDatabaseManagerOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13342 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen" ")"); do { MOZ_CrashSequence(__null, 13342); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13343 | MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13343 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")" ); do { MOZ_CrashSequence(__null, 13343); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 13344 | MOZ_ASSERT(QuotaManager::Get())do { static_assert( mozilla::detail::AssertionConditionType< decltype(QuotaManager::Get())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(QuotaManager::Get()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("QuotaManager::Get()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13344 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "QuotaManager::Get()" ")"); do { MOZ_CrashSequence(__null, 13344); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13345 | |||||
| 13346 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13346) || | ||||
| 13347 | IsAborted()) { | ||||
| 13348 | return NS_ERROR_ABORT; | ||||
| 13349 | } | ||||
| 13350 | |||||
| 13351 | mState = State::DirectoryOpenPending; | ||||
| 13352 | |||||
| 13353 | // Since idle maintenance may occur before persistent or temporary storage is | ||||
| 13354 | // initialized, make sure it's initialized here (all persistent and | ||||
| 13355 | // non-persistent origins need to be cleaned up and quota info needs to be | ||||
| 13356 | // loaded for non-persistent origins). | ||||
| 13357 | |||||
| 13358 | OpenStorageDirectory(PersistenceScope::CreateFromNull(), | ||||
| 13359 | /* aInitializeOrigins */ true) | ||||
| 13360 | ->Then( | ||||
| 13361 | GetCurrentSerialEventTarget(), __func__, | ||||
| 13362 | [self = RefPtr(this)]( | ||||
| 13363 | const UniversalDirectoryLockPromise::ResolveOrRejectValue& | ||||
| 13364 | aValue) { | ||||
| 13365 | if (aValue.IsResolve()) { | ||||
| 13366 | self->DirectoryLockAcquired(aValue.ResolveValue()); | ||||
| 13367 | return; | ||||
| 13368 | } | ||||
| 13369 | |||||
| 13370 | // Don't fail whole idle maintenance in case of an error, the | ||||
| 13371 | // persistent repository can still be processed. | ||||
| 13372 | |||||
| 13373 | self->mPendingDirectoryLock = nullptr; | ||||
| 13374 | self->mOpenStorageForAllRepositoriesFailed = true; | ||||
| 13375 | |||||
| 13376 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13376) || | ||||
| 13377 | self->IsAborted()) { | ||||
| 13378 | self->DirectoryLockFailed(); | ||||
| 13379 | return; | ||||
| 13380 | } | ||||
| 13381 | |||||
| 13382 | self->OpenStorageDirectory(PersistenceScope::CreateFromValue( | ||||
| 13383 | PERSISTENCE_TYPE_PERSISTENT), | ||||
| 13384 | /* aInitializeOrigins */ true) | ||||
| 13385 | ->Then(GetCurrentSerialEventTarget(), __func__, | ||||
| 13386 | [self](const UniversalDirectoryLockPromise:: | ||||
| 13387 | ResolveOrRejectValue& aValue) { | ||||
| 13388 | if (aValue.IsResolve()) { | ||||
| 13389 | self->DirectoryLockAcquired(aValue.ResolveValue()); | ||||
| 13390 | } else { | ||||
| 13391 | self->DirectoryLockFailed(); | ||||
| 13392 | } | ||||
| 13393 | }); | ||||
| 13394 | }); | ||||
| 13395 | |||||
| 13396 | return NS_OK; | ||||
| 13397 | } | ||||
| 13398 | |||||
| 13399 | nsresult Maintenance::DirectoryOpen() { | ||||
| 13400 | AssertIsOnBackgroundThread(); | ||||
| 13401 | MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryOpenPending)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mState == State::DirectoryOpenPending))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13401 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { MOZ_CrashSequence(__null, 13401); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13402 | MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLock" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13402 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")" ); do { MOZ_CrashSequence(__null, 13402); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 13403 | |||||
| 13404 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13404) || | ||||
| 13405 | IsAborted()) { | ||||
| 13406 | return NS_ERROR_ABORT; | ||||
| 13407 | } | ||||
| 13408 | |||||
| 13409 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 13410 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13410); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 13410); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13411 | |||||
| 13412 | mState = State::DirectoryWorkOpen; | ||||
| 13413 | |||||
| 13414 | QM_TRY(MOZ_TO_RESULT({auto tryResult1099 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1099)::ok_type >); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1099.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13416, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_FAILURE); }} | ||||
| 13415 | quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1099 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1099)::ok_type >); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1099.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13416, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_FAILURE); }} | ||||
| 13416 | NS_ERROR_FAILURE){auto tryResult1099 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1099)::ok_type >); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1099.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13416, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_FAILURE); }}; | ||||
| 13417 | |||||
| 13418 | return NS_OK; | ||||
| 13419 | } | ||||
| 13420 | |||||
| 13421 | nsresult Maintenance::DirectoryWork() { | ||||
| 13422 | AssertIsOnIOThread(); | ||||
| 13423 | MOZ_ASSERT(mState == State::DirectoryWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DirectoryWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DirectoryWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkOpen" ")"); do { MOZ_CrashSequence(__null, 13423); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13424 | |||||
| 13425 | // The storage directory is structured like this: | ||||
| 13426 | // | ||||
| 13427 | // <profile>/storage/<persistence>/<origin>/idb/*.sqlite | ||||
| 13428 | // | ||||
| 13429 | // We have to find all database files that match any persistence type and any | ||||
| 13430 | // origin. We ignore anything out of the ordinary for now. | ||||
| 13431 | |||||
| 13432 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13432) || | ||||
| 13433 | IsAborted()) { | ||||
| 13434 | return NS_ERROR_ABORT; | ||||
| 13435 | } | ||||
| 13436 | |||||
| 13437 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 13438 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13438); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 13438); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13439 | |||||
| 13440 | const nsCOMPtr<nsIFile> storageDir = | ||||
| 13441 | GetFileForPath(quotaManager->GetStoragePath()); | ||||
| 13442 | QM_TRY(OkIf(storageDir), NS_ERROR_FAILURE){auto tryResult1100 = (OkIf(storageDir)); static_assert(std:: is_empty_v<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect(!!(tryResult1100.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1100.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(storageDir)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13442, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(storageDir)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 13443 | |||||
| 13444 | { | ||||
| 13445 | QM_TRY_INSPECT(const bool& exists,auto tryResult1101 = (::mozilla::ToResultInvokeMember( (storageDir ), &::mozilla::detail::DerefedType<decltype(storageDir )>::Exists )); if ((__builtin_expect(!!(tryResult1101.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists )" , tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13446, mozilla::dom::quota::Severity::Error); return tryResult1101 .propagateErr(); } const bool& exists = tryResult1101.inspect (); | ||||
| 13446 | MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, Exists))auto tryResult1101 = (::mozilla::ToResultInvokeMember( (storageDir ), &::mozilla::detail::DerefedType<decltype(storageDir )>::Exists )); if ((__builtin_expect(!!(tryResult1101.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists )" , tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13446, mozilla::dom::quota::Severity::Error); return tryResult1101 .propagateErr(); } const bool& exists = tryResult1101.inspect ();; | ||||
| 13447 | |||||
| 13448 | // XXX No warning here? | ||||
| 13449 | if (!exists) { | ||||
| 13450 | return NS_ERROR_NOT_AVAILABLE; | ||||
| 13451 | } | ||||
| 13452 | } | ||||
| 13453 | |||||
| 13454 | { | ||||
| 13455 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1102 = (::mozilla::ToResultInvokeMember( (storageDir ), &::mozilla::detail::DerefedType<decltype(storageDir )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1102 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory )" , tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13456, mozilla::dom::quota::Severity::Error); return tryResult1102 .propagateErr(); } const bool& isDirectory = tryResult1102 .inspect(); | ||||
| 13456 | MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, IsDirectory))auto tryResult1102 = (::mozilla::ToResultInvokeMember( (storageDir ), &::mozilla::detail::DerefedType<decltype(storageDir )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1102 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory )" , tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13456, mozilla::dom::quota::Severity::Error); return tryResult1102 .propagateErr(); } const bool& isDirectory = tryResult1102 .inspect();; | ||||
| 13457 | |||||
| 13458 | QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1103 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1103.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13458, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 13459 | } | ||||
| 13460 | |||||
| 13461 | // There are currently only 4 persistence types, and we want to iterate them | ||||
| 13462 | // in this order: | ||||
| 13463 | static const PersistenceType kPersistenceTypes[] = { | ||||
| 13464 | PERSISTENCE_TYPE_PERSISTENT, PERSISTENCE_TYPE_DEFAULT, | ||||
| 13465 | PERSISTENCE_TYPE_TEMPORARY, PERSISTENCE_TYPE_PRIVATE}; | ||||
| 13466 | |||||
| 13467 | static_assert( | ||||
| 13468 | std::size(kPersistenceTypes) == size_t(PERSISTENCE_TYPE_INVALID), | ||||
| 13469 | "Something changed with available persistence types!"); | ||||
| 13470 | |||||
| 13471 | constexpr auto idbDirName = | ||||
| 13472 | NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)static_cast<const nsLiteralString&>( nsLiteralString (u"" "idb")); | ||||
| 13473 | |||||
| 13474 | for (const PersistenceType persistenceType : kPersistenceTypes) { | ||||
| 13475 | // Loop over "<persistence>" directories. | ||||
| 13476 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13476) || | ||||
| 13477 | IsAborted()) { | ||||
| 13478 | return NS_ERROR_ABORT; | ||||
| 13479 | } | ||||
| 13480 | |||||
| 13481 | // Don't do any maintenance for private browsing databases, which are only | ||||
| 13482 | // temporary. | ||||
| 13483 | if (persistenceType == PERSISTENCE_TYPE_PRIVATE) { | ||||
| 13484 | continue; | ||||
| 13485 | } | ||||
| 13486 | |||||
| 13487 | const bool persistent = persistenceType == PERSISTENCE_TYPE_PERSISTENT; | ||||
| 13488 | |||||
| 13489 | if (!persistent && mOpenStorageForAllRepositoriesFailed) { | ||||
| 13490 | // Non-persistent (best effort) repositories can't be processed if | ||||
| 13491 | // temporary storage initialization failed. | ||||
| 13492 | continue; | ||||
| 13493 | } | ||||
| 13494 | |||||
| 13495 | // For all non-persistent types, temporary storage must already be | ||||
| 13496 | // initialized | ||||
| 13497 | MOZ_DIAGNOSTIC_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType< decltype(persistent || quotaManager->IsTemporaryStorageInitializedInternal ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(persistent || quotaManager->IsTemporaryStorageInitializedInternal ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("persistent || quotaManager->IsTemporaryStorageInitializedInternal()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13498 ); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "persistent || quotaManager->IsTemporaryStorageInitializedInternal()" ")"); do { MOZ_CrashSequence(__null, 13498); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 13498 | persistent || quotaManager->IsTemporaryStorageInitializedInternal())do { static_assert( mozilla::detail::AssertionConditionType< decltype(persistent || quotaManager->IsTemporaryStorageInitializedInternal ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(persistent || quotaManager->IsTemporaryStorageInitializedInternal ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("persistent || quotaManager->IsTemporaryStorageInitializedInternal()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13498 ); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "persistent || quotaManager->IsTemporaryStorageInitializedInternal()" ")"); do { MOZ_CrashSequence(__null, 13498); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13499 | |||||
| 13500 | // XXX persistenceType == PERSISTENCE_TYPE_PERSISTENT shouldn't be a special | ||||
| 13501 | // case... | ||||
| 13502 | const auto persistenceTypeString = | ||||
| 13503 | persistenceType == PERSISTENCE_TYPE_PERSISTENT | ||||
| 13504 | ? "permanent"_ns | ||||
| 13505 | : PersistenceTypeToString(persistenceType); | ||||
| 13506 | |||||
| 13507 | QM_TRY_INSPECT(const auto& persistenceDir,auto tryResult1104 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16 ( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1104 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))" , tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13509, mozilla::dom::quota::Severity::Error); return tryResult1104 .propagateErr(); } const auto& persistenceDir = tryResult1104 .inspect(); | ||||
| 13508 | CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16(auto tryResult1104 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16 ( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1104 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))" , tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13509, mozilla::dom::quota::Severity::Error); return tryResult1104 .propagateErr(); } const auto& persistenceDir = tryResult1104 .inspect(); | ||||
| 13509 | persistenceTypeString)))auto tryResult1104 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16 ( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1104 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))" , tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13509, mozilla::dom::quota::Severity::Error); return tryResult1104 .propagateErr(); } const auto& persistenceDir = tryResult1104 .inspect();; | ||||
| 13510 | |||||
| 13511 | { | ||||
| 13512 | QM_TRY_INSPECT(const bool& exists,auto tryResult1105 = (::mozilla::ToResultInvokeMember( (persistenceDir ), &::mozilla::detail::DerefedType<decltype(persistenceDir )>::Exists )); if ((__builtin_expect(!!(tryResult1105.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists )" , tryResult1105.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13513, mozilla::dom::quota::Severity::Error); return tryResult1105 .propagateErr(); } const bool& exists = tryResult1105.inspect (); | ||||
| 13513 | MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, Exists))auto tryResult1105 = (::mozilla::ToResultInvokeMember( (persistenceDir ), &::mozilla::detail::DerefedType<decltype(persistenceDir )>::Exists )); if ((__builtin_expect(!!(tryResult1105.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists )" , tryResult1105.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13513, mozilla::dom::quota::Severity::Error); return tryResult1105 .propagateErr(); } const bool& exists = tryResult1105.inspect ();; | ||||
| 13514 | |||||
| 13515 | if (!exists) { | ||||
| 13516 | continue; | ||||
| 13517 | } | ||||
| 13518 | |||||
| 13519 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1106 = (::mozilla::ToResultInvokeMember( (persistenceDir ), &::mozilla::detail::DerefedType<decltype(persistenceDir )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1106 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory )" , tryResult1106.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13520, mozilla::dom::quota::Severity::Error); return tryResult1106 .propagateErr(); } const bool& isDirectory = tryResult1106 .inspect(); | ||||
| 13520 | MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, IsDirectory))auto tryResult1106 = (::mozilla::ToResultInvokeMember( (persistenceDir ), &::mozilla::detail::DerefedType<decltype(persistenceDir )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1106 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory )" , tryResult1106.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13520, mozilla::dom::quota::Severity::Error); return tryResult1106 .propagateErr(); } const bool& isDirectory = tryResult1106 .inspect();; | ||||
| 13521 | |||||
| 13522 | if (NS_WARN_IF(!isDirectory)NS_warn_if_impl(!isDirectory, "!isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13522)) { | ||||
| 13523 | continue; | ||||
| 13524 | } | ||||
| 13525 | } | ||||
| 13526 | |||||
| 13527 | // Loop over "<origin>/idb" directories. | ||||
| 13528 | QM_TRY(CollectEachFile({auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13529 | *persistenceDir,{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13530 | [this, "aManager, persistenceType, persistent, &idbDirName]({auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13531 | const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13532 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13533 | IsAborted()) {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13534 | return Err(NS_ERROR_ABORT);{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13535 | }{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13536 | |||||
| 13537 | QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*originDir));{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13538 | |||||
| 13539 | switch (dirEntryKind) {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13540 | case nsIFileKind::ExistsAsFile:{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13541 | break;{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13542 | |||||
| 13543 | case nsIFileKind::ExistsAsDirectory: {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13544 | // Get the necessary information about the origin{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13545 | // (GetOriginMetadata also checks if it's a valid origin).{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13546 | |||||
| 13547 | QM_TRY_UNWRAP(auto metadata,{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13548 | quotaManager->GetOriginMetadata(originDir),{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13549 | // Not much we can do here...{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13550 | Ok{});{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13551 | |||||
| 13552 | if (!persistent &&{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13553 | !quotaManager->IsTemporaryOriginInitializedInternal({auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13554 | metadata)) {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13555 | glean::idb_maintenance::fallback_fullrestore_metadata.Add();{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13556 | |||||
| 13557 | // XXX GetOriginMetadata, which skips loading the metadata file{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13558 | // and instead relies on parsing the origin directory name and{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13559 | // reconstructing the principal, may produce a different origin{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13560 | // string than the one originally used to create the origin{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13561 | // directory.{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13562 | //{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13563 | // For now, if this mismatch occurs, we fall back to the slower{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13564 | // LoadFullOriginMetadataWithRestore.{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13565 | //{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13566 | // In the future, it would be useful to report anonymized{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13567 | // origin strings via telemetry to help investigate and{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13568 | // eventually fix this mismatch.{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13569 | |||||
| 13570 | QM_TRY_INSPECT({auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13571 | const auto& fullmetadataAndStatus,{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13572 | quotaManager->LoadFullOriginMetadataWithRestoreAndStatus({auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13573 | originDir),{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13574 | Ok{});{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13575 | |||||
| 13576 | metadata = fullmetadataAndStatus.first;{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13577 | if (fullmetadataAndStatus.second) {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13578 | /* metadata was restored */{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13579 | glean::idb_maintenance::metadata_restored.Add();{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13580 | }{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13581 | |||||
| 13582 | QM_TRY(OkIf(quotaManager->IsTemporaryOriginInitializedInternal({auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13583 | metadata)),{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13584 | /* unexpected but still fine to just skip it */ Ok{},{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13585 | /* increment telemetry in case of failure */{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13586 | [](const auto&) {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13587 | glean::idb_maintenance::unknown_metadata.Add();{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13588 | });{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13589 | }{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13590 | |||||
| 13591 | // We now use a dedicated repository for private browsing{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13592 | // databases, but there could be some forgotten private browsing{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13593 | // databases in other repositories, so it's better to check for{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13594 | // that and don't do any maintenance for such databases.{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13595 | if (metadata.mIsPrivate) {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13596 | return Ok{};{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13597 | }{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13598 | |||||
| 13599 | QM_TRY_INSPECT(const auto& idbDir,{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13600 | CloneFileAndAppend(*originDir, idbDirName));{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13601 | |||||
| 13602 | QM_TRY_INSPECT(const bool& exists,{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13603 | MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, Exists));{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13604 | |||||
| 13605 | if (!exists) {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13606 | return Ok{};{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13607 | }{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13608 | |||||
| 13609 | QM_TRY_INSPECT(const bool& isDirectory,{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13610 | MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, IsDirectory));{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13611 | |||||
| 13612 | QM_TRY(OkIf(isDirectory), Ok{});{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13613 | |||||
| 13614 | nsTArray<nsString> databasePaths;{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13615 | |||||
| 13616 | // Loop over files in the "idb" directory.{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13617 | QM_TRY(CollectEachFile({auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13618 | *idbDir,{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13619 | [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile){auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13620 | -> Result<Ok, nsresult> {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13621 | if (NS_WARN_IF(QuotaClient::{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13622 | IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13623 | IsAborted()) {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13624 | return Err(NS_ERROR_ABORT);{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13625 | }{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13626 | |||||
| 13627 | QM_TRY_UNWRAP(auto idbFilePath,{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13628 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13629 | nsString, idbDirFile, GetPath));{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13630 | |||||
| 13631 | if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13632 | return Ok{};{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13633 | }{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13634 | |||||
| 13635 | QM_TRY_INSPECT(const auto& dirEntryKind,{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13636 | GetDirEntryKind(*idbDirFile));{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13637 | |||||
| 13638 | switch (dirEntryKind) {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13639 | case nsIFileKind::ExistsAsDirectory:{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13640 | break;{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13641 | |||||
| 13642 | case nsIFileKind::ExistsAsFile:{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13643 | // Found a database.{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13644 | |||||
| 13645 | MOZ_ASSERT(!databasePaths.Contains(idbFilePath));{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13646 | |||||
| 13647 | databasePaths.AppendElement(std::move(idbFilePath));{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13648 | break;{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13649 | |||||
| 13650 | case nsIFileKind::DoesNotExist:{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13651 | // Ignore files that got removed externally while{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13652 | // iterating.{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13653 | break;{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13654 | }{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13655 | |||||
| 13656 | return Ok{};{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13657 | }));{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13658 | |||||
| 13659 | if (!databasePaths.IsEmpty()) {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13660 | if (!persistent) {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13661 | auto maybeFullOriginMetadata ={auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13662 | quotaManager->GetFullOriginMetadata(metadata);{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13663 | auto fullOriginMetadata = maybeFullOriginMetadata.extract();{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13664 | |||||
| 13665 | // Skip origin maintenance if the origin hasn't been accessed{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13666 | // since its last recorded maintenance. This avoids{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13667 | // unnecessary I/O and prevents updating the accessed flag in{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13668 | // metadata, which helps preserve the effectiveness of the L2{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13669 | // quota info cache.{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13670 | //{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13671 | // This early-out is safe because maintenance is only needed{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13672 | // when something has changed (e.g., new access or activity).{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13673 | const Date accessDate ={auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13674 | Date::FromTimestamp(fullOriginMetadata.mLastAccessTime);{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13675 | const Date maintenanceDate ={auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13676 | Date::FromDays(fullOriginMetadata.mLastMaintenanceDate);{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13677 | |||||
| 13678 | if (accessDate <= maintenanceDate) {{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13679 | return Ok{};{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13680 | }{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13681 | |||||
| 13682 | fullOriginMetadata.mLastMaintenanceDate ={auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13683 | Date::Today().ToDays();{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13684 | fullOriginMetadata.mAccessed = true;{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13685 | |||||
| 13686 | QM_TRY(MOZ_TO_RESULT(quotaManager->CreateDirectoryMetadata2({auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13687 | *originDir, fullOriginMetadata)));{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13688 | |||||
| 13689 | quotaManager->UpdateOriginMaintenanceDate({auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13690 | metadata, fullOriginMetadata.mLastMaintenanceDate);{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13691 | quotaManager->UpdateOriginAccessed(metadata);{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13692 | }{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13693 | |||||
| 13694 | mDirectoryInfos.EmplaceBack(persistenceType, metadata,{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13695 | std::move(databasePaths));{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13696 | }{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13697 | |||||
| 13698 | break;{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13699 | }{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13700 | |||||
| 13701 | case nsIFileKind::DoesNotExist:{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13702 | // Ignore files that got removed externally while iterating.{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13703 | break;{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13704 | }{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13705 | |||||
| 13706 | return Ok{};{auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }} | ||||
| 13707 | })){auto tryResult1119 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); } const auto& dirEntryKind = tryResult1107 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); static_assert (std::is_empty_v<typename decltype(tryResult1110)::ok_type >); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1111 .propagateErr(); } const auto& idbDir = tryResult1111.inspect ();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1112 .propagateErr(); } const bool& exists = tryResult1112.inspect ();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1113 .propagateErr(); } const bool& isDirectory = tryResult1113 .inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1114)::ok_type >); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } auto idbFilePath = tryResult1115.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1116 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1116 .propagateErr(); } const auto& dirEntryKind = tryResult1116 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect (!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1119 )::ok_type>); if ((__builtin_expect(!!(tryResult1119.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1107 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& dirEntryKind = tryResult1107.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1108 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1108.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1108.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1109 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1109.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1109.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1110 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1111 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1111.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1111.propagateErr(); } const auto& idbDir = tryResult1111.inspect();; auto tryResult1112 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1112.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1112.propagateErr(); } const bool& exists = tryResult1112.inspect();; if (!exists) { return Ok{}; } auto tryResult1113 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1113.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1113.propagateErr(); } const bool& isDirectory = tryResult1113.inspect();; {auto tryResult1114 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1114.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1117 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1115.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1116.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1117)::ok_type>); if ((__builtin_expect(!!(tryResult1117.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1115 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1115.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1115.propagateErr(); } auto idbFilePath = tryResult1115.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1116 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1116.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1116.propagateErr(); } const auto& dirEntryKind = tryResult1116.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1117.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1117.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1118 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1118.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1118.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); }}; | ||||
| 13708 | } | ||||
| 13709 | |||||
| 13710 | mState = State::BeginDatabaseMaintenance; | ||||
| 13711 | |||||
| 13712 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13713 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 13713); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 13713 | mQuotaClient->BackgroundThread()->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13713 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 13713); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 13714 | |||||
| 13715 | return NS_OK; | ||||
| 13716 | } | ||||
| 13717 | |||||
| 13718 | nsresult Maintenance::BeginDatabaseMaintenance() { | ||||
| 13719 | AssertIsOnBackgroundThread(); | ||||
| 13720 | MOZ_ASSERT(mState == State::BeginDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginDatabaseMaintenance)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mState == State::BeginDatabaseMaintenance))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::BeginDatabaseMaintenance" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13720 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginDatabaseMaintenance" ")"); do { MOZ_CrashSequence(__null, 13720); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13721 | |||||
| 13722 | class MOZ_STACK_CLASS Helper final { | ||||
| 13723 | public: | ||||
| 13724 | static bool IsSafeToRunMaintenance(const nsAString& aDatabasePath) { | ||||
| 13725 | if (gFactoryOps) { | ||||
| 13726 | // XXX LinkedList should support reverse iteration via rbegin() and | ||||
| 13727 | // rend(), see bug 1964967. | ||||
| 13728 | for (const FactoryOp* existingOp = gFactoryOps->getLast(); existingOp; | ||||
| 13729 | existingOp = existingOp->getPrevious()) { | ||||
| 13730 | if (existingOp->DatabaseNameRef().isNothing()) { | ||||
| 13731 | return false; | ||||
| 13732 | } | ||||
| 13733 | |||||
| 13734 | if (!existingOp->DatabaseFilePathIsKnown()) { | ||||
| 13735 | continue; | ||||
| 13736 | } | ||||
| 13737 | |||||
| 13738 | if (existingOp->DatabaseFilePath() == aDatabasePath) { | ||||
| 13739 | return false; | ||||
| 13740 | } | ||||
| 13741 | } | ||||
| 13742 | } | ||||
| 13743 | |||||
| 13744 | if (gLiveDatabaseHashtable) { | ||||
| 13745 | return std::all_of(gLiveDatabaseHashtable->Values().cbegin(), | ||||
| 13746 | gLiveDatabaseHashtable->Values().cend(), | ||||
| 13747 | [&aDatabasePath](const auto& liveDatabasesEntry) { | ||||
| 13748 | // XXX std::all_of currently doesn't work with | ||||
| 13749 | // LinkedList's iterator. See bug 1964969. | ||||
| 13750 | for (const Database* const database : | ||||
| 13751 | liveDatabasesEntry->mLiveDatabases) { | ||||
| 13752 | if (database->FilePath() == aDatabasePath) { | ||||
| 13753 | return false; | ||||
| 13754 | } | ||||
| 13755 | } | ||||
| 13756 | return true; | ||||
| 13757 | }); | ||||
| 13758 | } | ||||
| 13759 | |||||
| 13760 | return true; | ||||
| 13761 | } | ||||
| 13762 | }; | ||||
| 13763 | |||||
| 13764 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13764) || | ||||
| 13765 | IsAborted()) { | ||||
| 13766 | return NS_ERROR_ABORT; | ||||
| 13767 | } | ||||
| 13768 | |||||
| 13769 | RefPtr<nsThreadPool> threadPool; | ||||
| 13770 | |||||
| 13771 | for (DirectoryInfo& directoryInfo : mDirectoryInfos) { | ||||
| 13772 | for (const nsAString& databasePath : *directoryInfo.mDatabasePaths) { | ||||
| 13773 | if (Helper::IsSafeToRunMaintenance(databasePath)) { | ||||
| 13774 | RefPtr<ClientDirectoryLock> directoryLock = | ||||
| 13775 | mDirectoryLock->SpecializeForClient(directoryInfo.mPersistenceType, | ||||
| 13776 | *directoryInfo.mOriginMetadata, | ||||
| 13777 | Client::IDB); | ||||
| 13778 | MOZ_ASSERT(directoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(directoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(directoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("directoryLock", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13778) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "directoryLock" ")" ); do { MOZ_CrashSequence(__null, 13778); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 13779 | |||||
| 13780 | // No key needs to be passed here, because we skip encrypted databases | ||||
| 13781 | // in DoDirectoryWork as long as they are only used in private browsing | ||||
| 13782 | // mode. | ||||
| 13783 | const auto databaseMaintenance = MakeRefPtr<DatabaseMaintenance>( | ||||
| 13784 | this, std::move(directoryLock), directoryInfo.mPersistenceType, | ||||
| 13785 | *directoryInfo.mOriginMetadata, databasePath, Nothing{}); | ||||
| 13786 | |||||
| 13787 | if (!threadPool) { | ||||
| 13788 | threadPool = mQuotaClient->GetOrCreateThreadPool(); | ||||
| 13789 | MOZ_ASSERT(threadPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(threadPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(threadPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("threadPool", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13789); AnnotateMozCrashReason("MOZ_ASSERT" "(" "threadPool" ")"); do { MOZ_CrashSequence(__null, 13789); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13790 | } | ||||
| 13791 | |||||
| 13792 | // Perform database maintenance on a TaskQueue, as database connections | ||||
| 13793 | // require a serial event target when being opened in order to allow | ||||
| 13794 | // memory pressure notifications to clear caches (bug 1806751). | ||||
| 13795 | const auto taskQueue = TaskQueue::Create( | ||||
| 13796 | do_AddRef(threadPool), "IndexedDB Database Maintenance"); | ||||
| 13797 | |||||
| 13798 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (taskQueue->Dispatch(databaseMaintenance, nsIEventTarget:: DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while ( false); MOZ_ReportCrash("" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13799 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 13799); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 13799 | taskQueue->Dispatch(databaseMaintenance, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (taskQueue->Dispatch(databaseMaintenance, nsIEventTarget:: DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while ( false); MOZ_ReportCrash("" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13799 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 13799); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 13800 | |||||
| 13801 | RegisterDatabaseMaintenance(databaseMaintenance); | ||||
| 13802 | } | ||||
| 13803 | } | ||||
| 13804 | } | ||||
| 13805 | |||||
| 13806 | mDirectoryInfos.Clear(); | ||||
| 13807 | |||||
| 13808 | DropDirectoryLock(mDirectoryLock); | ||||
| 13809 | |||||
| 13810 | if (mDatabaseMaintenances.Count()) { | ||||
| 13811 | mState = State::WaitingForDatabaseMaintenancesToComplete; | ||||
| 13812 | } else { | ||||
| 13813 | mState = State::Finishing; | ||||
| 13814 | Finish(); | ||||
| 13815 | } | ||||
| 13816 | |||||
| 13817 | return NS_OK; | ||||
| 13818 | } | ||||
| 13819 | |||||
| 13820 | void Maintenance::Finish() { | ||||
| 13821 | AssertIsOnBackgroundThread(); | ||||
| 13822 | MOZ_ASSERT(mState == State::Finishing)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Finishing)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Finishing)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Finishing" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Finishing" ")"); do { MOZ_CrashSequence(__null, 13822); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13823 | |||||
| 13824 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 13825 | mPromiseHolder.ResolveIfExists(true, __func__); | ||||
| 13826 | } else { | ||||
| 13827 | mPromiseHolder.RejectIfExists(mResultCode, __func__); | ||||
| 13828 | |||||
| 13829 | nsCString errorName; | ||||
| 13830 | GetErrorName(mResultCode, errorName); | ||||
| 13831 | |||||
| 13832 | IDB_WARNING("Maintenance finished with error: %s", errorName.get())do { nsPrintfCString s("Maintenance finished with error: %s", errorName.get()); mozilla::dom::indexedDB::ReportInternalError ("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13832, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13832); } while (0); | ||||
| 13833 | } | ||||
| 13834 | |||||
| 13835 | SafeDropDirectoryLock(mDirectoryLock); | ||||
| 13836 | |||||
| 13837 | // It can happen that we are only referenced by mCurrentMaintenance which is | ||||
| 13838 | // cleared in NoteFinishedMaintenance() | ||||
| 13839 | const RefPtr<Maintenance> kungFuDeathGrip = this; | ||||
| 13840 | |||||
| 13841 | mQuotaClient->NoteFinishedMaintenance(this); | ||||
| 13842 | |||||
| 13843 | mState = State::Complete; | ||||
| 13844 | } | ||||
| 13845 | |||||
| 13846 | NS_IMETHODIMPnsresult | ||||
| 13847 | Maintenance::Run() { | ||||
| 13848 | MOZ_ASSERT(mState != State::Complete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState != State::Complete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState != State::Complete))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState != State::Complete" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13848 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State::Complete" ")"); do { MOZ_CrashSequence(__null, 13848); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13849 | |||||
| 13850 | const auto handleError = [this](const nsresult rv) { | ||||
| 13851 | if (mState != State::Finishing) { | ||||
| 13852 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 13853 | mResultCode = rv; | ||||
| 13854 | } | ||||
| 13855 | |||||
| 13856 | // Must set mState before dispatching otherwise we will race with the | ||||
| 13857 | // owning thread. | ||||
| 13858 | mState = State::Finishing; | ||||
| 13859 | |||||
| 13860 | if (IsOnBackgroundThread()) { | ||||
| 13861 | Finish(); | ||||
| 13862 | } else { | ||||
| 13863 | MOZ_ALWAYS_SUCCEEDS(mQuotaClient->BackgroundThread()->Dispatch(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13864 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 13864); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 13864 | this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13864 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 13864); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 13865 | } | ||||
| 13866 | } | ||||
| 13867 | }; | ||||
| 13868 | |||||
| 13869 | switch (mState) { | ||||
| 13870 | case State::Initial: | ||||
| 13871 | QM_TRY(MOZ_TO_RESULT(Start()), NS_OK, handleError){auto tryResult1120 = (ToResult(Start())); static_assert(std:: is_empty_v<typename decltype(tryResult1120)::ok_type>); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { auto tryTempError = tryResult1120.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(Start())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13871, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(Start())" , tryTempError, NS_OK); }}; | ||||
| 13872 | break; | ||||
| 13873 | |||||
| 13874 | case State::CreateIndexedDatabaseManager: | ||||
| 13875 | QM_TRY(MOZ_TO_RESULT(CreateIndexedDatabaseManager()), NS_OK, handleError){auto tryResult1121 = (ToResult(CreateIndexedDatabaseManager( ))); static_assert(std::is_empty_v<typename decltype(tryResult1121 )::ok_type>); if ((__builtin_expect(!!(tryResult1121.isErr ()), 0))) { auto tryTempError = tryResult1121.unwrapErr(); mozilla ::dom::quota::HandleError("ToResult(CreateIndexedDatabaseManager())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13875, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(CreateIndexedDatabaseManager())" , tryTempError, NS_OK); }}; | ||||
| 13876 | break; | ||||
| 13877 | |||||
| 13878 | case State::IndexedDatabaseManagerOpen: | ||||
| 13879 | QM_TRY(MOZ_TO_RESULT(OpenDirectory()), NS_OK, handleError){auto tryResult1122 = (ToResult(OpenDirectory())); static_assert (std::is_empty_v<typename decltype(tryResult1122)::ok_type >); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(OpenDirectory())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13879, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(OpenDirectory())" , tryTempError, NS_OK); }}; | ||||
| 13880 | break; | ||||
| 13881 | |||||
| 13882 | case State::DirectoryWorkOpen: | ||||
| 13883 | QM_TRY(MOZ_TO_RESULT(DirectoryWork()), NS_OK, handleError){auto tryResult1123 = (ToResult(DirectoryWork())); static_assert (std::is_empty_v<typename decltype(tryResult1123)::ok_type >); if ((__builtin_expect(!!(tryResult1123.isErr()), 0))) { auto tryTempError = tryResult1123.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryWork())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13883, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DirectoryWork())" , tryTempError, NS_OK); }}; | ||||
| 13884 | break; | ||||
| 13885 | |||||
| 13886 | case State::BeginDatabaseMaintenance: | ||||
| 13887 | QM_TRY(MOZ_TO_RESULT(BeginDatabaseMaintenance()), NS_OK, handleError){auto tryResult1124 = (ToResult(BeginDatabaseMaintenance())); static_assert(std::is_empty_v<typename decltype(tryResult1124 )::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr ()), 0))) { auto tryTempError = tryResult1124.unwrapErr(); mozilla ::dom::quota::HandleError("ToResult(BeginDatabaseMaintenance())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13887, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(BeginDatabaseMaintenance())" , tryTempError, NS_OK); }}; | ||||
| 13888 | break; | ||||
| 13889 | |||||
| 13890 | case State::Finishing: | ||||
| 13891 | Finish(); | ||||
| 13892 | break; | ||||
| 13893 | |||||
| 13894 | default: | ||||
| 13895 | MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13895); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")" ); do { MOZ_CrashSequence(__null, 13895); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 13896 | } | ||||
| 13897 | |||||
| 13898 | return NS_OK; | ||||
| 13899 | } | ||||
| 13900 | |||||
| 13901 | void Maintenance::DirectoryLockAcquired(UniversalDirectoryLock* aLock) { | ||||
| 13902 | AssertIsOnBackgroundThread(); | ||||
| 13903 | MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryOpenPending)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mState == State::DirectoryOpenPending))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13903 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { MOZ_CrashSequence(__null, 13903); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13904 | MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13904 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")" ); do { MOZ_CrashSequence(__null, 13904); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 13905 | |||||
| 13906 | mDirectoryLock = std::exchange(mPendingDirectoryLock, nullptr); | ||||
| 13907 | |||||
| 13908 | nsresult rv = DirectoryOpen(); | ||||
| 13909 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13909)) { | ||||
| 13910 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 13911 | mResultCode = rv; | ||||
| 13912 | } | ||||
| 13913 | |||||
| 13914 | mState = State::Finishing; | ||||
| 13915 | Finish(); | ||||
| 13916 | |||||
| 13917 | return; | ||||
| 13918 | } | ||||
| 13919 | } | ||||
| 13920 | |||||
| 13921 | void Maintenance::DirectoryLockFailed() { | ||||
| 13922 | AssertIsOnBackgroundThread(); | ||||
| 13923 | MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryOpenPending)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mState == State::DirectoryOpenPending))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13923 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { MOZ_CrashSequence(__null, 13923); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13924 | MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13924 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")" ); do { MOZ_CrashSequence(__null, 13924); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 13925 | |||||
| 13926 | mPendingDirectoryLock = nullptr; | ||||
| 13927 | |||||
| 13928 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 13929 | mResultCode = NS_ERROR_FAILURE; | ||||
| 13930 | } | ||||
| 13931 | |||||
| 13932 | mState = State::Finishing; | ||||
| 13933 | Finish(); | ||||
| 13934 | } | ||||
| 13935 | |||||
| 13936 | void DatabaseMaintenance::Stringify(nsACString& aResult) const { | ||||
| 13937 | AssertIsOnBackgroundThread(); | ||||
| 13938 | |||||
| 13939 | aResult.AppendLiteral("Origin:"); | ||||
| 13940 | aResult.Append(AnonymizedOriginString(mOriginMetadata.mOrigin)); | ||||
| 13941 | aResult.Append(kQuotaGenericDelimiter); | ||||
| 13942 | |||||
| 13943 | aResult.AppendLiteral("PersistenceType:"); | ||||
| 13944 | aResult.Append(PersistenceTypeToString(mPersistenceType)); | ||||
| 13945 | aResult.Append(kQuotaGenericDelimiter); | ||||
| 13946 | |||||
| 13947 | aResult.AppendLiteral("Duration:"); | ||||
| 13948 | aResult.AppendInt((PR_Now() - mMaintenance->StartTime()) / PR_USEC_PER_MSEC1000L); | ||||
| 13949 | } | ||||
| 13950 | |||||
| 13951 | nsresult DatabaseMaintenance::Abort() { | ||||
| 13952 | AssertIsOnBackgroundThread(); | ||||
| 13953 | |||||
| 13954 | // StopIdleMaintenance and AbortAllOperations may request abort independently | ||||
| 13955 | if (!mAborted.compareExchange(false, true)) { | ||||
| 13956 | return NS_OK; | ||||
| 13957 | } | ||||
| 13958 | |||||
| 13959 | { | ||||
| 13960 | auto shardStorageConnectionLocked = mSharedStorageConnection.Lock(); | ||||
| 13961 | if (nsCOMPtr<mozIStorageConnection> connection = | ||||
| 13962 | *shardStorageConnectionLocked) { | ||||
| 13963 | QM_TRY(MOZ_TO_RESULT(connection->Interrupt())){auto tryResult1125 = (ToResult(connection->Interrupt())); static_assert(std::is_empty_v<typename decltype(tryResult1125 )::ok_type>); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->Interrupt())" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13963, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); }}; | ||||
| 13964 | } | ||||
| 13965 | } | ||||
| 13966 | |||||
| 13967 | return NS_OK; | ||||
| 13968 | } | ||||
| 13969 | |||||
| 13970 | void DatabaseMaintenance::PerformMaintenanceOnDatabase() { | ||||
| 13971 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13971 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 13971); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13972 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13972 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 13972); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13973 | MOZ_ASSERT(mMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaintenance)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaintenance))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMaintenance", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13973); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaintenance" ")"); do { MOZ_CrashSequence(__null, 13973); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13974 | MOZ_ASSERT(mMaintenance->StartTime())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaintenance->StartTime())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaintenance->StartTime() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mMaintenance->StartTime()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13974); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaintenance->StartTime()" ")"); do { MOZ_CrashSequence(__null, 13974); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13975 | MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLock" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13975 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")" ); do { MOZ_CrashSequence(__null, 13975); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 13976 | MOZ_ASSERT(!mDatabasePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabasePath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabasePath.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabasePath.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13976 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasePath.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 13976); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13977 | MOZ_ASSERT(!mOriginMetadata.mGroup.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOriginMetadata.mGroup.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mOriginMetadata.mGroup.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mOriginMetadata.mGroup.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13977); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata.mGroup.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 13977); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13978 | MOZ_ASSERT(!mOriginMetadata.mOrigin.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOriginMetadata.mOrigin.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mOriginMetadata.mOrigin.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mOriginMetadata.mOrigin.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13978); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata.mOrigin.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 13978); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13979 | |||||
| 13980 | if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13980)) { | ||||
| 13981 | return; | ||||
| 13982 | } | ||||
| 13983 | |||||
| 13984 | const nsCOMPtr<nsIFile> databaseFile = GetFileForPath(mDatabasePath); | ||||
| 13985 | MOZ_ASSERT(databaseFile)do { static_assert( mozilla::detail::AssertionConditionType< decltype(databaseFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(databaseFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("databaseFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13985); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFile" ")"); do { MOZ_CrashSequence(__null, 13985); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 13986 | |||||
| 13987 | QM_TRY_UNWRAP(auto tryResult1126 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1126.unwrapErr(); mozilla::dom::quota::HandleError ("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13991, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult1126.unwrap(); | ||||
| 13988 | const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1126 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1126.unwrapErr(); mozilla::dom::quota::HandleError ("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13991, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult1126.unwrap(); | ||||
| 13989 | GetStorageConnection(*databaseFile, mDirectoryLockId,auto tryResult1126 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1126.unwrapErr(); mozilla::dom::quota::HandleError ("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13991, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult1126.unwrap(); | ||||
| 13990 | TelemetryIdForFile(databaseFile), mMaybeKey),auto tryResult1126 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1126.unwrapErr(); mozilla::dom::quota::HandleError ("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13991, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult1126.unwrap(); | ||||
| 13991 | QM_VOID)auto tryResult1126 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1126.unwrapErr(); mozilla::dom::quota::HandleError ("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13991, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult1126.unwrap();; | ||||
| 13992 | |||||
| 13993 | auto autoClearConnection = MakeScopeExit([&]() { | ||||
| 13994 | auto sharedStorageConnectionLocked = mSharedStorageConnection.Lock(); | ||||
| 13995 | sharedStorageConnectionLocked.ref() = nullptr; | ||||
| 13996 | connection->Close(); | ||||
| 13997 | }); | ||||
| 13998 | |||||
| 13999 | { | ||||
| 14000 | auto sharedStorageConnectionLocked = mSharedStorageConnection.Lock(); | ||||
| 14001 | sharedStorageConnectionLocked.ref() = connection; | ||||
| 14002 | } | ||||
| 14003 | |||||
| 14004 | auto databaseIsOk = false; | ||||
| 14005 | QM_TRY(MOZ_TO_RESULT(CheckIntegrity(*connection, &databaseIsOk)), QM_VOID){auto tryResult1127 = (ToResult(CheckIntegrity(*connection, & databaseIsOk))); static_assert(std::is_empty_v<typename decltype (tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1127 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(CheckIntegrity(*connection, &databaseIsOk))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14005, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; }}; | ||||
| 14006 | |||||
| 14007 | QM_TRY(OkIf(databaseIsOk), QM_VOID, [](auto result) {{auto tryResult1128 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult1128)::ok_type> ); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { auto tryTempError = tryResult1128.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14011, mozilla::dom::quota::Severity::Error); [](auto result ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14010 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!" ")"); do { MOZ_CrashSequence(__null, 14010); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }} | ||||
| 14008 | // XXX Handle this somehow! Probably need to clear all storage for the{auto tryResult1128 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult1128)::ok_type> ); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { auto tryTempError = tryResult1128.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14011, mozilla::dom::quota::Severity::Error); [](auto result ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14010 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!" ")"); do { MOZ_CrashSequence(__null, 14010); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }} | ||||
| 14009 | // origin. See Bug 1760612.{auto tryResult1128 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult1128)::ok_type> ); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { auto tryTempError = tryResult1128.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14011, mozilla::dom::quota::Severity::Error); [](auto result ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14010 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!" ")"); do { MOZ_CrashSequence(__null, 14010); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }} | ||||
| 14010 | MOZ_ASSERT(false, "Database corruption detected!");{auto tryResult1128 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult1128)::ok_type> ); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { auto tryTempError = tryResult1128.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14011, mozilla::dom::quota::Severity::Error); [](auto result ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14010 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!" ")"); do { MOZ_CrashSequence(__null, 14010); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }} | ||||
| 14011 | }){auto tryResult1128 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult1128)::ok_type> ); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { auto tryTempError = tryResult1128.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14011, mozilla::dom::quota::Severity::Error); [](auto result ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14010 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!" ")"); do { MOZ_CrashSequence(__null, 14010); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }}; | ||||
| 14012 | |||||
| 14013 | MaintenanceAction maintenanceAction; | ||||
| 14014 | QM_TRY(MOZ_TO_RESULT(DetermineMaintenanceAction(*connection, databaseFile,{auto tryResult1129 = (ToResult(DetermineMaintenanceAction(*connection , databaseFile, &maintenanceAction))); static_assert(std:: is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1129.unwrapErr(); mozilla::dom ::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14016, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; }} | ||||
| 14015 | &maintenanceAction)),{auto tryResult1129 = (ToResult(DetermineMaintenanceAction(*connection , databaseFile, &maintenanceAction))); static_assert(std:: is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1129.unwrapErr(); mozilla::dom ::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14016, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; }} | ||||
| 14016 | QM_VOID){auto tryResult1129 = (ToResult(DetermineMaintenanceAction(*connection , databaseFile, &maintenanceAction))); static_assert(std:: is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1129.unwrapErr(); mozilla::dom ::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14016, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; }}; | ||||
| 14017 | |||||
| 14018 | switch (maintenanceAction) { | ||||
| 14019 | case MaintenanceAction::Nothing: | ||||
| 14020 | break; | ||||
| 14021 | |||||
| 14022 | case MaintenanceAction::IncrementalVacuum: | ||||
| 14023 | IncrementalVacuum(*connection); | ||||
| 14024 | break; | ||||
| 14025 | |||||
| 14026 | case MaintenanceAction::FullVacuum: | ||||
| 14027 | FullVacuum(*connection, databaseFile); | ||||
| 14028 | break; | ||||
| 14029 | |||||
| 14030 | default: | ||||
| 14031 | MOZ_CRASH("Unknown MaintenanceAction!")do { do { } while (false); MOZ_ReportCrash("" "Unknown MaintenanceAction!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14031 ); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown MaintenanceAction!" ")"); do { MOZ_CrashSequence(__null, 14031); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 14032 | } | ||||
| 14033 | } | ||||
| 14034 | |||||
| 14035 | nsresult DatabaseMaintenance::CheckIntegrity(mozIStorageConnection& aConnection, | ||||
| 14036 | bool* aOk) { | ||||
| 14037 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14037 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 14037); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14038 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14038 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14038); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14039 | MOZ_ASSERT(aOk)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOk)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aOk))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("aOk", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14039); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOk" ")"); do { MOZ_CrashSequence(__null, 14039); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 14040 | |||||
| 14041 | if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14041)) { | ||||
| 14042 | return NS_ERROR_ABORT; | ||||
| 14043 | } | ||||
| 14044 | |||||
| 14045 | // First do a full integrity_check. Scope statements tightly here because | ||||
| 14046 | // later operations require zero live statements. | ||||
| 14047 | { | ||||
| 14048 | QM_TRY_INSPECT(const bool& ok, DatabasePassesIntegrityCheck(auto tryResult1130 = (DatabasePassesIntegrityCheck( aConnection , IntegrityCheckMode::Full)); if ((__builtin_expect(!!(tryResult1130 .isErr()), 0))) { mozilla::dom::quota::HandleError("DatabasePassesIntegrityCheck( aConnection, IntegrityCheckMode::Full)" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14049, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); } const bool& ok = tryResult1130.inspect (); | ||||
| 14049 | aConnection, IntegrityCheckMode::Full))auto tryResult1130 = (DatabasePassesIntegrityCheck( aConnection , IntegrityCheckMode::Full)); if ((__builtin_expect(!!(tryResult1130 .isErr()), 0))) { mozilla::dom::quota::HandleError("DatabasePassesIntegrityCheck( aConnection, IntegrityCheckMode::Full)" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14049, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); } const bool& ok = tryResult1130.inspect ();; | ||||
| 14050 | |||||
| 14051 | QM_TRY(OkIf(ok), NS_OK, [&aOk](const auto) { *aOk = false; }){auto tryResult1131 = (OkIf(ok)); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { auto tryTempError = tryResult1131 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(ok)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14051 , mozilla::dom::quota::Severity::Error); [&aOk](const auto ) { *aOk = false; }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(ok)", tryTempError, NS_OK); }}; | ||||
| 14052 | } | ||||
| 14053 | |||||
| 14054 | // Now enable and check for foreign key constraints. | ||||
| 14055 | { | ||||
| 14056 | QM_TRY_INSPECT(auto tryResult1134 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); } const auto& stmt = tryResult1132.inspect ();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1133.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133 ;}; }())); if ((__builtin_expect(!!(tryResult1134.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1132.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1132.propagateErr(); } const auto& stmt = tryResult1132.inspect();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1133.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133;}; }())" , tryResult1134.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1134 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1134.inspect(); | ||||
| 14057 | const int32_t& foreignKeysWereEnabled,auto tryResult1134 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); } const auto& stmt = tryResult1132.inspect ();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1133.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133 ;}; }())); if ((__builtin_expect(!!(tryResult1134.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1132.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1132.propagateErr(); } const auto& stmt = tryResult1132.inspect();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1133.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133;}; }())" , tryResult1134.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1134 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1134.inspect(); | ||||
| 14058 | ([&aConnection]() -> Result<int32_t, nsresult> {auto tryResult1134 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); } const auto& stmt = tryResult1132.inspect ();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1133.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133 ;}; }())); if ((__builtin_expect(!!(tryResult1134.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1132.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1132.propagateErr(); } const auto& stmt = tryResult1132.inspect();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1133.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133;}; }())" , tryResult1134.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1134 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1134.inspect(); | ||||
| 14059 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1134 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); } const auto& stmt = tryResult1132.inspect ();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1133.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133 ;}; }())); if ((__builtin_expect(!!(tryResult1134.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1132.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1132.propagateErr(); } const auto& stmt = tryResult1132.inspect();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1133.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133;}; }())" , tryResult1134.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1134 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1134.inspect(); | ||||
| 14060 | CreateAndExecuteSingleStepStatement(auto tryResult1134 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); } const auto& stmt = tryResult1132.inspect ();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1133.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133 ;}; }())); if ((__builtin_expect(!!(tryResult1134.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1132.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1132.propagateErr(); } const auto& stmt = tryResult1132.inspect();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1133.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133;}; }())" , tryResult1134.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1134 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1134.inspect(); | ||||
| 14061 | aConnection, "PRAGMA foreign_keys;"_ns));auto tryResult1134 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); } const auto& stmt = tryResult1132.inspect ();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1133.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133 ;}; }())); if ((__builtin_expect(!!(tryResult1134.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1132.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1132.propagateErr(); } const auto& stmt = tryResult1132.inspect();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1133.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133;}; }())" , tryResult1134.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1134 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1134.inspect(); | ||||
| 14062 | |||||
| 14063 | QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0));auto tryResult1134 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); } const auto& stmt = tryResult1132.inspect ();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1133.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133 ;}; }())); if ((__builtin_expect(!!(tryResult1134.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1132.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1132.propagateErr(); } const auto& stmt = tryResult1132.inspect();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1133.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133;}; }())" , tryResult1134.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1134 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1134.inspect(); | ||||
| 14064 | }()))auto tryResult1134 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); } const auto& stmt = tryResult1132.inspect ();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1133.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133 ;}; }())); if ((__builtin_expect(!!(tryResult1134.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1132 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1132.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1132.propagateErr(); } const auto& stmt = tryResult1132.inspect();; {auto tryResult1133 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1133.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1133.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1133;}; }())" , tryResult1134.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1134 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1134.inspect();; | ||||
| 14065 | |||||
| 14066 | if (!foreignKeysWereEnabled) { | ||||
| 14067 | QM_TRY(MOZ_TO_RESULT({auto tryResult1135 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA foreign_keys = ON;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1135)::ok_type>); if ((__builtin_expect (!!(tryResult1135.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = ON;\"_ns))" , tryResult1135.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14068, mozilla::dom::quota::Severity::Error); return tryResult1135 .propagateErr(); }} | ||||
| 14068 | aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = ON;"_ns))){auto tryResult1135 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA foreign_keys = ON;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1135)::ok_type>); if ((__builtin_expect (!!(tryResult1135.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = ON;\"_ns))" , tryResult1135.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14068, mozilla::dom::quota::Severity::Error); return tryResult1135 .propagateErr(); }}; | ||||
| 14069 | } | ||||
| 14070 | |||||
| 14071 | QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult1136 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult1136.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)" , tryResult1136.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14074, mozilla::dom::quota::Severity::Error); return tryResult1136 .propagateErr(); } const bool& foreignKeyError = tryResult1136 .inspect(); | ||||
| 14072 | CreateAndExecuteSingleStepStatement<auto tryResult1136 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult1136.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)" , tryResult1136.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14074, mozilla::dom::quota::Severity::Error); return tryResult1136 .propagateErr(); } const bool& foreignKeyError = tryResult1136 .inspect(); | ||||
| 14073 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult1136 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult1136.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)" , tryResult1136.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14074, mozilla::dom::quota::Severity::Error); return tryResult1136 .propagateErr(); } const bool& foreignKeyError = tryResult1136 .inspect(); | ||||
| 14074 | aConnection, "PRAGMA foreign_key_check;"_ns))auto tryResult1136 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult1136.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)" , tryResult1136.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14074, mozilla::dom::quota::Severity::Error); return tryResult1136 .propagateErr(); } const bool& foreignKeyError = tryResult1136 .inspect();; | ||||
| 14075 | |||||
| 14076 | if (!foreignKeysWereEnabled) { | ||||
| 14077 | QM_TRY(MOZ_TO_RESULT({auto tryResult1137 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1137)::ok_type>); if ((__builtin_expect (!!(tryResult1137.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , tryResult1137.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14078, mozilla::dom::quota::Severity::Error); return tryResult1137 .propagateErr(); }} | ||||
| 14078 | aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))){auto tryResult1137 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1137)::ok_type>); if ((__builtin_expect (!!(tryResult1137.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , tryResult1137.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14078, mozilla::dom::quota::Severity::Error); return tryResult1137 .propagateErr(); }}; | ||||
| 14079 | } | ||||
| 14080 | |||||
| 14081 | if (foreignKeyError) { | ||||
| 14082 | *aOk = false; | ||||
| 14083 | return NS_OK; | ||||
| 14084 | } | ||||
| 14085 | } | ||||
| 14086 | |||||
| 14087 | *aOk = true; | ||||
| 14088 | return NS_OK; | ||||
| 14089 | } | ||||
| 14090 | |||||
| 14091 | nsresult DatabaseMaintenance::DetermineMaintenanceAction( | ||||
| 14092 | mozIStorageConnection& aConnection, nsIFile* aDatabaseFile, | ||||
| 14093 | MaintenanceAction* aMaintenanceAction) { | ||||
| 14094 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14094 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 14094); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14095 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14095 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14095); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14096 | MOZ_ASSERT(aDatabaseFile)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14096) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseFile" ")" ); do { MOZ_CrashSequence(__null, 14096); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 14097 | MOZ_ASSERT(aMaintenanceAction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMaintenanceAction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMaintenanceAction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aMaintenanceAction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14097 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMaintenanceAction" ")"); do { MOZ_CrashSequence(__null, 14097); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14098 | |||||
| 14099 | if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14099)) { | ||||
| 14100 | return NS_ERROR_ABORT; | ||||
| 14101 | } | ||||
| 14102 | |||||
| 14103 | QM_TRY_INSPECT(const int32_t& schemaVersion,auto tryResult1138 = (::mozilla::ToResultInvokeMember( (aConnection ), &::mozilla::detail::DerefedType<decltype(aConnection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult1138 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion )" , tryResult1138.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14104, mozilla::dom::quota::Severity::Error); return tryResult1138 .propagateErr(); } const int32_t& schemaVersion = tryResult1138 .inspect(); | ||||
| 14104 | MOZ_TO_RESULT_INVOKE_MEMBER(aConnection, GetSchemaVersion))auto tryResult1138 = (::mozilla::ToResultInvokeMember( (aConnection ), &::mozilla::detail::DerefedType<decltype(aConnection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult1138 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion )" , tryResult1138.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14104, mozilla::dom::quota::Severity::Error); return tryResult1138 .propagateErr(); } const int32_t& schemaVersion = tryResult1138 .inspect();; | ||||
| 14105 | |||||
| 14106 | // Don't do anything if the schema version is less than 18; before that | ||||
| 14107 | // version no databases had |auto_vacuum == INCREMENTAL| set and we didn't | ||||
| 14108 | // track the values needed for the heuristics below. | ||||
| 14109 | if (schemaVersion < MakeSchemaVersion(18, 0)) { | ||||
| 14110 | *aMaintenanceAction = MaintenanceAction::Nothing; | ||||
| 14111 | return NS_OK; | ||||
| 14112 | } | ||||
| 14113 | |||||
| 14114 | // This method shouldn't make any permanent changes to the database, so make | ||||
| 14115 | // sure everything gets rolled back when we leave. | ||||
| 14116 | mozStorageTransaction transaction(&aConnection, | ||||
| 14117 | /* aCommitOnComplete */ false); | ||||
| 14118 | |||||
| 14119 | QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult1139 = (ToResult(transaction.Start())); static_assert (std::is_empty_v<typename decltype(tryResult1139)::ok_type >); if ((__builtin_expect(!!(tryResult1139.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(transaction.Start())" , tryResult1139.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14119, mozilla::dom::quota::Severity::Error); return tryResult1139 .propagateErr(); }} | ||||
| 14120 | |||||
| 14121 | // Check to see when we last vacuumed this database. | ||||
| 14122 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1140 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult1140.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult1140.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14126, mozilla::dom::quota::Severity::Error); return tryResult1140 .propagateErr(); } const auto& stmt = tryResult1140.inspect (); | ||||
| 14123 | CreateAndExecuteSingleStepStatement(auto tryResult1140 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult1140.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult1140.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14126, mozilla::dom::quota::Severity::Error); return tryResult1140 .propagateErr(); } const auto& stmt = tryResult1140.inspect (); | ||||
| 14124 | aConnection,auto tryResult1140 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult1140.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult1140.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14126, mozilla::dom::quota::Severity::Error); return tryResult1140 .propagateErr(); } const auto& stmt = tryResult1140.inspect (); | ||||
| 14125 | "SELECT last_vacuum_time, last_vacuum_size "auto tryResult1140 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult1140.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult1140.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14126, mozilla::dom::quota::Severity::Error); return tryResult1140 .propagateErr(); } const auto& stmt = tryResult1140.inspect (); | ||||
| 14126 | "FROM database;"_ns))auto tryResult1140 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult1140.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult1140.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14126, mozilla::dom::quota::Severity::Error); return tryResult1140 .propagateErr(); } const auto& stmt = tryResult1140.inspect ();; | ||||
| 14127 | |||||
| 14128 | QM_TRY_INSPECT(const PRTime& lastVacuumTime,auto tryResult1141 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1141.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64 , 0)" , tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14129, mozilla::dom::quota::Severity::Error); return tryResult1141 .propagateErr(); } const PRTime& lastVacuumTime = tryResult1141 .inspect(); | ||||
| 14129 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 0))auto tryResult1141 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1141.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64 , 0)" , tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14129, mozilla::dom::quota::Severity::Error); return tryResult1141 .propagateErr(); } const PRTime& lastVacuumTime = tryResult1141 .inspect();; | ||||
| 14130 | |||||
| 14131 | QM_TRY_INSPECT(const int64_t& lastVacuumSize,auto tryResult1142 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1142.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64 , 1)" , tryResult1142.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14132, mozilla::dom::quota::Severity::Error); return tryResult1142 .propagateErr(); } const int64_t& lastVacuumSize = tryResult1142 .inspect(); | ||||
| 14132 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 1))auto tryResult1142 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1142.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64 , 1)" , tryResult1142.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14132, mozilla::dom::quota::Severity::Error); return tryResult1142 .propagateErr(); } const int64_t& lastVacuumSize = tryResult1142 .inspect();; | ||||
| 14133 | |||||
| 14134 | NS_ASSERTION(lastVacuumSize > 0,do { if (!(lastVacuumSize > 0)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "Thy last vacuum size shall be greater than zero, less than " "zero shall thy last vacuum size not be. Zero is right out." , "lastVacuumSize > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14136); MOZ_PretendNoReturn(); } } while (0) | ||||
| 14135 | "Thy last vacuum size shall be greater than zero, less than "do { if (!(lastVacuumSize > 0)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "Thy last vacuum size shall be greater than zero, less than " "zero shall thy last vacuum size not be. Zero is right out." , "lastVacuumSize > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14136); MOZ_PretendNoReturn(); } } while (0) | ||||
| 14136 | "zero shall thy last vacuum size not be. Zero is right out.")do { if (!(lastVacuumSize > 0)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "Thy last vacuum size shall be greater than zero, less than " "zero shall thy last vacuum size not be. Zero is right out." , "lastVacuumSize > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14136); MOZ_PretendNoReturn(); } } while (0); | ||||
| 14137 | |||||
| 14138 | const PRTime startTime = mMaintenance->StartTime(); | ||||
| 14139 | |||||
| 14140 | // This shouldn't really be possible... | ||||
| 14141 | if (NS_WARN_IF(startTime <= lastVacuumTime)NS_warn_if_impl(startTime <= lastVacuumTime, "startTime <= lastVacuumTime" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14141 )) { | ||||
| 14142 | *aMaintenanceAction = MaintenanceAction::Nothing; | ||||
| 14143 | return NS_OK; | ||||
| 14144 | } | ||||
| 14145 | |||||
| 14146 | if (startTime - lastVacuumTime < kMinVacuumAge) { | ||||
| 14147 | *aMaintenanceAction = MaintenanceAction::IncrementalVacuum; | ||||
| 14148 | return NS_OK; | ||||
| 14149 | } | ||||
| 14150 | |||||
| 14151 | // It has been more than a week since the database was vacuumed, so gather | ||||
| 14152 | // statistics on its usage to see if vacuuming is worthwhile. | ||||
| 14153 | |||||
| 14154 | // Create a temporary copy of the dbstat table to speed up the queries that | ||||
| 14155 | // come later. | ||||
| 14156 | QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL({auto tryResult1143 = (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(tryResult1143 )::ok_type>); if ((__builtin_expect(!!(tryResult1143.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))" , tryResult1143.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14158, mozilla::dom::quota::Severity::Error); return tryResult1143 .propagateErr(); }} | ||||
| 14157 | "CREATE VIRTUAL TABLE __stats__ USING dbstat;"{auto tryResult1143 = (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(tryResult1143 )::ok_type>); if ((__builtin_expect(!!(tryResult1143.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))" , tryResult1143.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14158, mozilla::dom::quota::Severity::Error); return tryResult1143 .propagateErr(); }} | ||||
| 14158 | "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns))){auto tryResult1143 = (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(tryResult1143 )::ok_type>); if ((__builtin_expect(!!(tryResult1143.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))" , tryResult1143.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14158, mozilla::dom::quota::Severity::Error); return tryResult1143 .propagateErr(); }}; | ||||
| 14159 | |||||
| 14160 | { // Calculate the percentage of the database pages that are not in | ||||
| 14161 | // contiguous order. | ||||
| 14162 | QM_TRY_INSPECT(auto tryResult1144 = (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(!!(tryResult1144.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)" , tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1144 .propagateErr(); } const auto& stmt = tryResult1144.inspect (); | ||||
| 14163 | const auto& stmt,auto tryResult1144 = (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(!!(tryResult1144.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)" , tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1144 .propagateErr(); } const auto& stmt = tryResult1144.inspect (); | ||||
| 14164 | CreateAndExecuteSingleStepStatement(auto tryResult1144 = (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(!!(tryResult1144.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)" , tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1144 .propagateErr(); } const auto& stmt = tryResult1144.inspect (); | ||||
| 14165 | aConnection,auto tryResult1144 = (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(!!(tryResult1144.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)" , tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1144 .propagateErr(); } const auto& stmt = tryResult1144.inspect (); | ||||
| 14166 | "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "auto tryResult1144 = (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(!!(tryResult1144.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)" , tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1144 .propagateErr(); } const auto& stmt = tryResult1144.inspect (); | ||||
| 14167 | "COUNT(*) "auto tryResult1144 = (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(!!(tryResult1144.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)" , tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1144 .propagateErr(); } const auto& stmt = tryResult1144.inspect (); | ||||
| 14168 | "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "auto tryResult1144 = (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(!!(tryResult1144.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)" , tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1144 .propagateErr(); } const auto& stmt = tryResult1144.inspect (); | ||||
| 14169 | "WHERE __ts1__.name = __ts2__.name "auto tryResult1144 = (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(!!(tryResult1144.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)" , tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1144 .propagateErr(); } const auto& stmt = tryResult1144.inspect (); | ||||
| 14170 | "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns))auto tryResult1144 = (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(!!(tryResult1144.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)" , tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1144 .propagateErr(); } const auto& stmt = tryResult1144.inspect ();; | ||||
| 14171 | |||||
| 14172 | QM_TRY_INSPECT(const int32_t& percentUnordered,auto tryResult1145 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1145.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14173, mozilla::dom::quota::Severity::Error); return tryResult1145 .propagateErr(); } const int32_t& percentUnordered = tryResult1145 .inspect(); | ||||
| 14173 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1145 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1145.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14173, mozilla::dom::quota::Severity::Error); return tryResult1145 .propagateErr(); } const int32_t& percentUnordered = tryResult1145 .inspect();; | ||||
| 14174 | |||||
| 14175 | MOZ_ASSERT(percentUnordered >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(percentUnordered >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(percentUnordered >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("percentUnordered >= 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14175 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnordered >= 0" ")"); do { MOZ_CrashSequence(__null, 14175); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14176 | MOZ_ASSERT(percentUnordered <= 100)do { static_assert( mozilla::detail::AssertionConditionType< decltype(percentUnordered <= 100)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(percentUnordered <= 100)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("percentUnordered <= 100" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14176 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnordered <= 100" ")"); do { MOZ_CrashSequence(__null, 14176); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14177 | |||||
| 14178 | if (percentUnordered >= kPercentUnorderedThreshold) { | ||||
| 14179 | *aMaintenanceAction = MaintenanceAction::FullVacuum; | ||||
| 14180 | return NS_OK; | ||||
| 14181 | } | ||||
| 14182 | } | ||||
| 14183 | |||||
| 14184 | // Don't try a full vacuum if the file hasn't grown by 10%. | ||||
| 14185 | QM_TRY_INSPECT(const int64_t& currentFileSize,auto tryResult1146 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1146 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14186, mozilla::dom::quota::Severity::Error); return tryResult1146 .propagateErr(); } const int64_t& currentFileSize = tryResult1146 .inspect(); | ||||
| 14186 | MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize))auto tryResult1146 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1146 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14186, mozilla::dom::quota::Severity::Error); return tryResult1146 .propagateErr(); } const int64_t& currentFileSize = tryResult1146 .inspect();; | ||||
| 14187 | |||||
| 14188 | if (currentFileSize <= lastVacuumSize || | ||||
| 14189 | (((currentFileSize - lastVacuumSize) * 100 / currentFileSize) < | ||||
| 14190 | kPercentFileSizeGrowthThreshold)) { | ||||
| 14191 | *aMaintenanceAction = MaintenanceAction::IncrementalVacuum; | ||||
| 14192 | return NS_OK; | ||||
| 14193 | } | ||||
| 14194 | |||||
| 14195 | { // See if there are any free pages that we can reclaim. | ||||
| 14196 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1147 = (CreateAndExecuteSingleStepStatement( aConnection , "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1147 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)" , tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14198, mozilla::dom::quota::Severity::Error); return tryResult1147 .propagateErr(); } const auto& stmt = tryResult1147.inspect (); | ||||
| 14197 | CreateAndExecuteSingleStepStatement(auto tryResult1147 = (CreateAndExecuteSingleStepStatement( aConnection , "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1147 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)" , tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14198, mozilla::dom::quota::Severity::Error); return tryResult1147 .propagateErr(); } const auto& stmt = tryResult1147.inspect (); | ||||
| 14198 | aConnection, "PRAGMA freelist_count;"_ns))auto tryResult1147 = (CreateAndExecuteSingleStepStatement( aConnection , "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1147 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)" , tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14198, mozilla::dom::quota::Severity::Error); return tryResult1147 .propagateErr(); } const auto& stmt = tryResult1147.inspect ();; | ||||
| 14199 | |||||
| 14200 | QM_TRY_INSPECT(const int32_t& freelistCount,auto tryResult1148 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1148.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1148.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14201, mozilla::dom::quota::Severity::Error); return tryResult1148 .propagateErr(); } const int32_t& freelistCount = tryResult1148 .inspect(); | ||||
| 14201 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1148 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1148.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1148.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14201, mozilla::dom::quota::Severity::Error); return tryResult1148 .propagateErr(); } const int32_t& freelistCount = tryResult1148 .inspect();; | ||||
| 14202 | |||||
| 14203 | MOZ_ASSERT(freelistCount >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(freelistCount >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(freelistCount >= 0))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("freelistCount >= 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14203 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "freelistCount >= 0" ")"); do { MOZ_CrashSequence(__null, 14203); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14204 | |||||
| 14205 | // If we have too many free pages then we should try an incremental | ||||
| 14206 | // vacuum. If that causes too much fragmentation then we'll try a full | ||||
| 14207 | // vacuum later. | ||||
| 14208 | if (freelistCount > kMaxFreelistThreshold) { | ||||
| 14209 | *aMaintenanceAction = MaintenanceAction::IncrementalVacuum; | ||||
| 14210 | return NS_OK; | ||||
| 14211 | } | ||||
| 14212 | } | ||||
| 14213 | |||||
| 14214 | { // Calculate the percentage of unused bytes on pages in the database. | ||||
| 14215 | QM_TRY_INSPECT(auto tryResult1149 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14219, mozilla::dom::quota::Severity::Error); return tryResult1149 .propagateErr(); } const auto& stmt = tryResult1149.inspect (); | ||||
| 14216 | const auto& stmt,auto tryResult1149 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14219, mozilla::dom::quota::Severity::Error); return tryResult1149 .propagateErr(); } const auto& stmt = tryResult1149.inspect (); | ||||
| 14217 | CreateAndExecuteSingleStepStatement(auto tryResult1149 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14219, mozilla::dom::quota::Severity::Error); return tryResult1149 .propagateErr(); } const auto& stmt = tryResult1149.inspect (); | ||||
| 14218 | aConnection,auto tryResult1149 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14219, mozilla::dom::quota::Severity::Error); return tryResult1149 .propagateErr(); } const auto& stmt = tryResult1149.inspect (); | ||||
| 14219 | "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns))auto tryResult1149 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14219, mozilla::dom::quota::Severity::Error); return tryResult1149 .propagateErr(); } const auto& stmt = tryResult1149.inspect ();; | ||||
| 14220 | |||||
| 14221 | QM_TRY_INSPECT(const int32_t& percentUnused,auto tryResult1150 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1150.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1150.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14222, mozilla::dom::quota::Severity::Error); return tryResult1150 .propagateErr(); } const int32_t& percentUnused = tryResult1150 .inspect(); | ||||
| 14222 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1150 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1150.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1150.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14222, mozilla::dom::quota::Severity::Error); return tryResult1150 .propagateErr(); } const int32_t& percentUnused = tryResult1150 .inspect();; | ||||
| 14223 | |||||
| 14224 | MOZ_ASSERT(percentUnused >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(percentUnused >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(percentUnused >= 0))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("percentUnused >= 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14224 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnused >= 0" ")"); do { MOZ_CrashSequence(__null, 14224); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14225 | MOZ_ASSERT(percentUnused <= 100)do { static_assert( mozilla::detail::AssertionConditionType< decltype(percentUnused <= 100)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(percentUnused <= 100))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("percentUnused <= 100" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14225 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnused <= 100" ")"); do { MOZ_CrashSequence(__null, 14225); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14226 | |||||
| 14227 | *aMaintenanceAction = percentUnused >= kPercentUnusedThreshold | ||||
| 14228 | ? MaintenanceAction::FullVacuum | ||||
| 14229 | : MaintenanceAction::IncrementalVacuum; | ||||
| 14230 | } | ||||
| 14231 | |||||
| 14232 | return NS_OK; | ||||
| 14233 | } | ||||
| 14234 | |||||
| 14235 | void DatabaseMaintenance::IncrementalVacuum( | ||||
| 14236 | mozIStorageConnection& aConnection) { | ||||
| 14237 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14237 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 14237); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14238 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14238 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14238); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14239 | |||||
| 14240 | if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14240)) { | ||||
| 14241 | return; | ||||
| 14242 | } | ||||
| 14243 | |||||
| 14244 | nsresult rv = aConnection.ExecuteSimpleSQL("PRAGMA incremental_vacuum;"_ns); | ||||
| 14245 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14245)) { | ||||
| 14246 | return; | ||||
| 14247 | } | ||||
| 14248 | } | ||||
| 14249 | |||||
| 14250 | void DatabaseMaintenance::FullVacuum(mozIStorageConnection& aConnection, | ||||
| 14251 | nsIFile* aDatabaseFile) { | ||||
| 14252 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14252 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 14252); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14253 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14253 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14253); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14254 | MOZ_ASSERT(aDatabaseFile)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14254) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseFile" ")" ); do { MOZ_CrashSequence(__null, 14254); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 14255 | |||||
| 14256 | if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14256)) { | ||||
| 14257 | return; | ||||
| 14258 | } | ||||
| 14259 | |||||
| 14260 | QM_WARNONLY_TRY(([&]() -> Result<Ok, nsresult> {{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14261 | QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL("VACUUM;"_ns)));{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14262 | |||||
| 14263 | const PRTime vacuumTime = PR_Now();{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14264 | MOZ_ASSERT(vacuumTime > 0);{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14265 | |||||
| 14266 | QM_TRY_INSPECT(const int64_t& fileSize,{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14267 | MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize));{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14268 | |||||
| 14269 | MOZ_ASSERT(fileSize > 0);{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14270 | |||||
| 14271 | // The parameter names are not used, parameters are bound by index only{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14272 | // locally in the same function.{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14273 | QM_TRY_INSPECT(const auto& stmt, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14274 | nsCOMPtr<mozIStorageStatement>,{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14275 | aConnection, CreateStatement,{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14276 | "UPDATE database "{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14277 | "SET last_vacuum_time = :time"{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14278 | ", last_vacuum_size = :size;"_ns));{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14279 | |||||
| 14280 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByIndex(0, vacuumTime)));{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14281 | |||||
| 14282 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByIndex(1, fileSize)));{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14283 | |||||
| 14284 | QM_TRY(MOZ_TO_RESULT(stmt->Execute()));{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14285 | return Ok{};{auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14286 | }())){auto tryResult1157 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { MOZ_CrashSequence(__null, 14264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); } const int64_t& fileSize = tryResult1152 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect (!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1155 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect (!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1151 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14264); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14264); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1152 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); } const int64_t& fileSize = tryResult1152.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14269); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14269); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1153 = (::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(!!(tryResult1153.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)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } const auto& stmt = tryResult1153.inspect();; {auto tryResult1154 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; {auto tryResult1155 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1155.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; {auto tryResult1156 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1156.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; return Ok{}; }())" , tryResult1157.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 14287 | } | ||||
| 14288 | |||||
| 14289 | void DatabaseMaintenance::RunOnOwningThread() { | ||||
| 14290 | AssertIsOnBackgroundThread(); | ||||
| 14291 | |||||
| 14292 | DropDirectoryLock(mDirectoryLock); | ||||
| 14293 | |||||
| 14294 | if (mCompleteCallback) { | ||||
| 14295 | MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(mCompleteCallback.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_DispatchToCurrentThread(mCompleteCallback.forget()))), 1) ))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(mCompleteCallback.forget()))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14295 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(mCompleteCallback.forget()))" ")"); do { MOZ_CrashSequence(__null, 14295); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 14296 | } | ||||
| 14297 | |||||
| 14298 | mMaintenance->UnregisterDatabaseMaintenance(this); | ||||
| 14299 | } | ||||
| 14300 | |||||
| 14301 | void DatabaseMaintenance::RunOnConnectionThread() { | ||||
| 14302 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14302 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 14302); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14303 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14303 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14303); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14304 | |||||
| 14305 | PerformMaintenanceOnDatabase(); | ||||
| 14306 | |||||
| 14307 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14308 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 14308); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 14308 | mMaintenance->BackgroundThread()->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14308 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 14308); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 14309 | } | ||||
| 14310 | |||||
| 14311 | NS_IMETHODIMPnsresult | ||||
| 14312 | DatabaseMaintenance::Run() { | ||||
| 14313 | if (IsOnBackgroundThread()) { | ||||
| 14314 | RunOnOwningThread(); | ||||
| 14315 | } else { | ||||
| 14316 | RunOnConnectionThread(); | ||||
| 14317 | } | ||||
| 14318 | |||||
| 14319 | return NS_OK; | ||||
| 14320 | } | ||||
| 14321 | |||||
| 14322 | /******************************************************************************* | ||||
| 14323 | * Local class implementations | ||||
| 14324 | ******************************************************************************/ | ||||
| 14325 | |||||
| 14326 | // static | ||||
| 14327 | nsAutoCString DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | ||||
| 14328 | const Maybe<SerializedKeyRange>& aOptionalKeyRange, | ||||
| 14329 | const nsACString& aKeyColumnName) { | ||||
| 14330 | return aOptionalKeyRange.isSome() | ||||
| 14331 | ? GetBindingClauseForKeyRange(aOptionalKeyRange.ref(), | ||||
| 14332 | aKeyColumnName) | ||||
| 14333 | : nsAutoCString{}; | ||||
| 14334 | } | ||||
| 14335 | |||||
| 14336 | // static | ||||
| 14337 | nsAutoCString DatabaseOperationBase::GetBindingClauseForKeyRange( | ||||
| 14338 | const SerializedKeyRange& aKeyRange, const nsACString& aKeyColumnName) { | ||||
| 14339 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14339 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14339); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14340 | MOZ_ASSERT(!aKeyColumnName.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aKeyColumnName.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aKeyColumnName.IsEmpty()))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aKeyColumnName.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14340 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aKeyColumnName.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 14340); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14341 | |||||
| 14342 | constexpr auto andStr = " AND "_ns; | ||||
| 14343 | constexpr auto spacecolon = " :"_ns; | ||||
| 14344 | |||||
| 14345 | nsAutoCString result; | ||||
| 14346 | if (aKeyRange.isOnly()) { | ||||
| 14347 | // Both keys equal. | ||||
| 14348 | result = | ||||
| 14349 | andStr + aKeyColumnName + " ="_ns + spacecolon + kStmtParamNameLowerKey; | ||||
| 14350 | } else { | ||||
| 14351 | if (!aKeyRange.lower().IsUnset()) { | ||||
| 14352 | // Lower key is set. | ||||
| 14353 | result.Append(andStr + aKeyColumnName); | ||||
| 14354 | result.AppendLiteral(" >"); | ||||
| 14355 | if (!aKeyRange.lowerOpen()) { | ||||
| 14356 | result.AppendLiteral("="); | ||||
| 14357 | } | ||||
| 14358 | result.Append(spacecolon + kStmtParamNameLowerKey); | ||||
| 14359 | } | ||||
| 14360 | |||||
| 14361 | if (!aKeyRange.upper().IsUnset()) { | ||||
| 14362 | // Upper key is set. | ||||
| 14363 | result.Append(andStr + aKeyColumnName); | ||||
| 14364 | result.AppendLiteral(" <"); | ||||
| 14365 | if (!aKeyRange.upperOpen()) { | ||||
| 14366 | result.AppendLiteral("="); | ||||
| 14367 | } | ||||
| 14368 | result.Append(spacecolon + kStmtParamNameUpperKey); | ||||
| 14369 | } | ||||
| 14370 | } | ||||
| 14371 | |||||
| 14372 | MOZ_ASSERT(!result.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!result.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!result.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!result.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14372 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!result.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 14372); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14373 | |||||
| 14374 | return result; | ||||
| 14375 | } | ||||
| 14376 | |||||
| 14377 | // static | ||||
| 14378 | uint64_t DatabaseOperationBase::ReinterpretDoubleAsUInt64(double aDouble) { | ||||
| 14379 | // This is a duplicate of the js engine's byte munging in StructuredClone.cpp | ||||
| 14380 | return BitwiseCast<uint64_t>(aDouble); | ||||
| 14381 | } | ||||
| 14382 | |||||
| 14383 | // static | ||||
| 14384 | template <typename KeyTransformation> | ||||
| 14385 | nsresult DatabaseOperationBase::MaybeBindKeyToStatement( | ||||
| 14386 | const Key& aKey, mozIStorageStatement* const aStatement, | ||||
| 14387 | const nsACString& aParameterName, | ||||
| 14388 | const KeyTransformation& aKeyTransformation) { | ||||
| 14389 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14389 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14389); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14390 | MOZ_ASSERT(aStatement)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aStatement)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aStatement))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aStatement", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14390); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStatement" ")"); do { MOZ_CrashSequence(__null, 14390); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14391 | |||||
| 14392 | if (!aKey.IsUnset()) { | ||||
| 14393 | // XXX This case distinction could be avoided if QM_TRY_INSPECT would also | ||||
| 14394 | // work with a function not returning a Result<V, E> but simply a V (which | ||||
| 14395 | // is const Key& here) and then assuming it is always a success. Or the | ||||
| 14396 | // transformation could be changed to return Result<const V&, void> but I | ||||
| 14397 | // don't think that Result supports that at the moment. | ||||
| 14398 | if constexpr (std::is_reference_v< | ||||
| 14399 | std::invoke_result_t<KeyTransformation, Key>>) { | ||||
| 14400 | QM_TRY(MOZ_TO_RESULT(aKeyTransformation(aKey).BindToStatement({auto tryResult1158 = (ToResult(aKeyTransformation(aKey).BindToStatement ( aStatement, aParameterName))); static_assert(std::is_empty_v <typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect (!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))" , tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14401, mozilla::dom::quota::Severity::Error); return tryResult1158 .propagateErr(); }} | ||||
| 14401 | aStatement, aParameterName))){auto tryResult1158 = (ToResult(aKeyTransformation(aKey).BindToStatement ( aStatement, aParameterName))); static_assert(std::is_empty_v <typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect (!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))" , tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14401, mozilla::dom::quota::Severity::Error); return tryResult1158 .propagateErr(); }}; | ||||
| 14402 | } else { | ||||
| 14403 | QM_TRY_INSPECT(const auto& transformedKey, aKeyTransformation(aKey))auto tryResult1159 = (aKeyTransformation(aKey)); if ((__builtin_expect (!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError ("aKeyTransformation(aKey)", tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14403, mozilla::dom::quota::Severity::Error); return tryResult1159 .propagateErr(); } const auto& transformedKey = tryResult1159 .inspect();; | ||||
| 14404 | QM_TRY(MOZ_TO_RESULT({auto tryResult1160 = (ToResult(transformedKey.BindToStatement (aStatement, aParameterName))); static_assert(std::is_empty_v <typename decltype(tryResult1160)::ok_type>); if ((__builtin_expect (!!(tryResult1160.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))" , tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14405, mozilla::dom::quota::Severity::Error); return tryResult1160 .propagateErr(); }} | ||||
| 14405 | transformedKey.BindToStatement(aStatement, aParameterName))){auto tryResult1160 = (ToResult(transformedKey.BindToStatement (aStatement, aParameterName))); static_assert(std::is_empty_v <typename decltype(tryResult1160)::ok_type>); if ((__builtin_expect (!!(tryResult1160.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))" , tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14405, mozilla::dom::quota::Severity::Error); return tryResult1160 .propagateErr(); }}; | ||||
| 14406 | } | ||||
| 14407 | } | ||||
| 14408 | |||||
| 14409 | return NS_OK; | ||||
| 14410 | } | ||||
| 14411 | |||||
| 14412 | // static | ||||
| 14413 | template <typename KeyTransformation> | ||||
| 14414 | nsresult DatabaseOperationBase::BindTransformedKeyRangeToStatement( | ||||
| 14415 | const SerializedKeyRange& aKeyRange, mozIStorageStatement* const aStatement, | ||||
| 14416 | const KeyTransformation& aKeyTransformation) { | ||||
| 14417 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14417 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14417); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14418 | MOZ_ASSERT(aStatement)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aStatement)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aStatement))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aStatement", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14418); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStatement" ")"); do { MOZ_CrashSequence(__null, 14418); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14419 | |||||
| 14420 | QM_TRY(MOZ_TO_RESULT(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement,{auto tryResult1161 = (ToResult(MaybeBindKeyToStatement(aKeyRange .lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult1161 )::ok_type>); if ((__builtin_expect(!!(tryResult1161.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))" , tryResult1161.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14422, mozilla::dom::quota::Severity::Error); return tryResult1161 .propagateErr(); }} | ||||
| 14421 | kStmtParamNameLowerKey,{auto tryResult1161 = (ToResult(MaybeBindKeyToStatement(aKeyRange .lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult1161 )::ok_type>); if ((__builtin_expect(!!(tryResult1161.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))" , tryResult1161.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14422, mozilla::dom::quota::Severity::Error); return tryResult1161 .propagateErr(); }} | ||||
| 14422 | aKeyTransformation))){auto tryResult1161 = (ToResult(MaybeBindKeyToStatement(aKeyRange .lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult1161 )::ok_type>); if ((__builtin_expect(!!(tryResult1161.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))" , tryResult1161.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14422, mozilla::dom::quota::Severity::Error); return tryResult1161 .propagateErr(); }}; | ||||
| 14423 | |||||
| 14424 | if (aKeyRange.isOnly()) { | ||||
| 14425 | return NS_OK; | ||||
| 14426 | } | ||||
| 14427 | |||||
| 14428 | QM_TRY(MOZ_TO_RESULT(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement,{auto tryResult1162 = (ToResult(MaybeBindKeyToStatement(aKeyRange .upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult1162 )::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))" , tryResult1162.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14430, mozilla::dom::quota::Severity::Error); return tryResult1162 .propagateErr(); }} | ||||
| 14429 | kStmtParamNameUpperKey,{auto tryResult1162 = (ToResult(MaybeBindKeyToStatement(aKeyRange .upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult1162 )::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))" , tryResult1162.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14430, mozilla::dom::quota::Severity::Error); return tryResult1162 .propagateErr(); }} | ||||
| 14430 | aKeyTransformation))){auto tryResult1162 = (ToResult(MaybeBindKeyToStatement(aKeyRange .upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult1162 )::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))" , tryResult1162.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14430, mozilla::dom::quota::Severity::Error); return tryResult1162 .propagateErr(); }}; | ||||
| 14431 | |||||
| 14432 | return NS_OK; | ||||
| 14433 | } | ||||
| 14434 | |||||
| 14435 | // static | ||||
| 14436 | nsresult DatabaseOperationBase::BindKeyRangeToStatement( | ||||
| 14437 | const SerializedKeyRange& aKeyRange, | ||||
| 14438 | mozIStorageStatement* const aStatement) { | ||||
| 14439 | return BindTransformedKeyRangeToStatement( | ||||
| 14440 | aKeyRange, aStatement, [](const Key& key) -> const auto& { return key; }); | ||||
| 14441 | } | ||||
| 14442 | |||||
| 14443 | // static | ||||
| 14444 | nsresult DatabaseOperationBase::BindKeyRangeToStatement( | ||||
| 14445 | const SerializedKeyRange& aKeyRange, mozIStorageStatement* const aStatement, | ||||
| 14446 | const nsCString& aLocale) { | ||||
| 14447 | MOZ_ASSERT(!aLocale.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aLocale.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aLocale.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aLocale.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14447 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aLocale.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 14447); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14448 | |||||
| 14449 | return BindTransformedKeyRangeToStatement( | ||||
| 14450 | aKeyRange, aStatement, | ||||
| 14451 | [&aLocale](const Key& key) { return key.ToLocaleAwareKey(aLocale); }); | ||||
| 14452 | } | ||||
| 14453 | |||||
| 14454 | // static | ||||
| 14455 | void CommonOpenOpHelperBase::AppendConditionClause( | ||||
| 14456 | const nsACString& aColumnName, const nsACString& aStatementParameterName, | ||||
| 14457 | bool aLessThan, bool aEquals, nsCString& aResult) { | ||||
| 14458 | aResult += " AND "_ns + aColumnName + " "_ns; | ||||
| 14459 | |||||
| 14460 | if (aLessThan) { | ||||
| 14461 | aResult.Append('<'); | ||||
| 14462 | } else { | ||||
| 14463 | aResult.Append('>'); | ||||
| 14464 | } | ||||
| 14465 | |||||
| 14466 | if (aEquals) { | ||||
| 14467 | aResult.Append('='); | ||||
| 14468 | } | ||||
| 14469 | |||||
| 14470 | aResult += " :"_ns + aStatementParameterName; | ||||
| 14471 | } | ||||
| 14472 | |||||
| 14473 | // static | ||||
| 14474 | Result<IndexDataValuesAutoArray, nsresult> | ||||
| 14475 | DatabaseOperationBase::IndexDataValuesFromUpdateInfos( | ||||
| 14476 | const nsTArray<IndexUpdateInfo>& aUpdateInfos, | ||||
| 14477 | const UniqueIndexTable& aUniqueIndexTable) { | ||||
| 14478 | MOZ_ASSERT_IF(!aUpdateInfos.IsEmpty(), aUniqueIndexTable.Count())do { if (!aUpdateInfos.IsEmpty()) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(aUniqueIndexTable .Count())>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(aUniqueIndexTable.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aUniqueIndexTable.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14478 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aUniqueIndexTable.Count()" ")"); do { MOZ_CrashSequence(__null, 14478); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 14479 | |||||
| 14480 | AUTO_PROFILER_LABEL("DatabaseOperationBase::IndexDataValuesFromUpdateInfos",mozilla::AutoProfilerLabel raiiObject14481( "DatabaseOperationBase::IndexDataValuesFromUpdateInfos" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 14481 | DOM)mozilla::AutoProfilerLabel raiiObject14481( "DatabaseOperationBase::IndexDataValuesFromUpdateInfos" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 14482 | |||||
| 14483 | // XXX We could use TransformIntoNewArray here if it allowed to specify that | ||||
| 14484 | // an AutoArray should be created. | ||||
| 14485 | IndexDataValuesAutoArray indexValues; | ||||
| 14486 | |||||
| 14487 | if (NS_WARN_IF(!indexValues.SetCapacity(aUpdateInfos.Length(), fallible))NS_warn_if_impl(!indexValues.SetCapacity(aUpdateInfos.Length( ), fallible), "!indexValues.SetCapacity(aUpdateInfos.Length(), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14487 )) { | ||||
| 14488 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14488, idbInternalErrMsg.get()); } while (0); | ||||
| 14489 | return Err(NS_ERROR_OUT_OF_MEMORY); | ||||
| 14490 | } | ||||
| 14491 | |||||
| 14492 | std::transform(aUpdateInfos.cbegin(), aUpdateInfos.cend(), | ||||
| 14493 | MakeBackInserter(indexValues), | ||||
| 14494 | [&aUniqueIndexTable](const IndexUpdateInfo& updateInfo) { | ||||
| 14495 | const IndexOrObjectStoreId& indexId = updateInfo.indexId(); | ||||
| 14496 | |||||
| 14497 | bool unique = false; | ||||
| 14498 | MOZ_ALWAYS_TRUE(aUniqueIndexTable.Get(indexId, &unique))do { if ((__builtin_expect(!!(aUniqueIndexTable.Get(indexId, & unique)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "aUniqueIndexTable.Get(indexId, &unique)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14498); AnnotateMozCrashReason("MOZ_CRASH(" "aUniqueIndexTable.Get(indexId, &unique)" ")"); do { MOZ_CrashSequence(__null, 14498); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 14499 | |||||
| 14500 | return IndexDataValue{indexId, unique, updateInfo.value(), | ||||
| 14501 | updateInfo.localizedValue()}; | ||||
| 14502 | }); | ||||
| 14503 | indexValues.Sort(); | ||||
| 14504 | |||||
| 14505 | return indexValues; | ||||
| 14506 | } | ||||
| 14507 | |||||
| 14508 | // static | ||||
| 14509 | nsresult DatabaseOperationBase::InsertIndexTableRows( | ||||
| 14510 | DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId, | ||||
| 14511 | const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues) { | ||||
| 14512 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14512); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 14512); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14513 | aConnection->AssertIsOnConnectionThread(); | ||||
| 14514 | MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 14514); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14515 | |||||
| 14516 | AUTO_PROFILER_LABEL("DatabaseOperationBase::InsertIndexTableRows", DOM)mozilla::AutoProfilerLabel raiiObject14516( "DatabaseOperationBase::InsertIndexTableRows" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 14517 | |||||
| 14518 | const uint32_t count = aIndexValues.Length(); | ||||
| 14519 | if (!count) { | ||||
| 14520 | return NS_OK; | ||||
| 14521 | } | ||||
| 14522 | |||||
| 14523 | auto insertUniqueStmt = DatabaseConnection::LazyStatement{ | ||||
| 14524 | *aConnection, | ||||
| 14525 | "INSERT INTO unique_index_data " | ||||
| 14526 | "(index_id, value, object_store_id, " | ||||
| 14527 | "object_data_key, value_locale) " | ||||
| 14528 | "VALUES (:"_ns + | ||||
| 14529 | kStmtParamNameIndexId + ", :"_ns + kStmtParamNameValue + ", :"_ns + | ||||
| 14530 | kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameObjectDataKey + | ||||
| 14531 | ", :"_ns + kStmtParamNameValueLocale + ");"_ns}; | ||||
| 14532 | auto insertStmt = DatabaseConnection::LazyStatement{ | ||||
| 14533 | *aConnection, | ||||
| 14534 | "INSERT OR IGNORE INTO index_data " | ||||
| 14535 | "(index_id, value, object_data_key, " | ||||
| 14536 | "object_store_id, value_locale) " | ||||
| 14537 | "VALUES (:"_ns + | ||||
| 14538 | kStmtParamNameIndexId + ", :"_ns + kStmtParamNameValue + ", :"_ns + | ||||
| 14539 | kStmtParamNameObjectDataKey + ", :"_ns + kStmtParamNameObjectStoreId + | ||||
| 14540 | ", :"_ns + kStmtParamNameValueLocale + ");"_ns}; | ||||
| 14541 | |||||
| 14542 | for (uint32_t index = 0; index < count; index++) { | ||||
| 14543 | const IndexDataValue& info = aIndexValues[index]; | ||||
| 14544 | |||||
| 14545 | auto& stmt = info.mUnique ? insertUniqueStmt : insertStmt; | ||||
| 14546 | |||||
| 14547 | QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1163 = (stmt.Borrow()); if ((__builtin_expect(! !(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError ("stmt.Borrow()", tryResult1163.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14547, mozilla::dom::quota::Severity::Error); return tryResult1163 .propagateErr(); } const auto& borrowedStmt = tryResult1163 .inspect();; | ||||
| 14548 | |||||
| 14549 | QM_TRY(MOZ_TO_RESULT({auto tryResult1164 = (ToResult(borrowedStmt->BindInt64ByName (kStmtParamNameIndexId, info.mIndexId))); static_assert(std:: is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14550, mozilla::dom::quota::Severity::Error); return tryResult1164 .propagateErr(); }} | ||||
| 14550 | borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))){auto tryResult1164 = (ToResult(borrowedStmt->BindInt64ByName (kStmtParamNameIndexId, info.mIndexId))); static_assert(std:: is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14550, mozilla::dom::quota::Severity::Error); return tryResult1164 .propagateErr(); }}; | ||||
| 14551 | QM_TRY(MOZ_TO_RESULT({auto tryResult1165 = (ToResult(info.mPosition.BindToStatement (&*borrowedStmt, kStmtParamNameValue))); static_assert(std ::is_empty_v<typename decltype(tryResult1165)::ok_type> ); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14552, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); }} | ||||
| 14552 | info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))){auto tryResult1165 = (ToResult(info.mPosition.BindToStatement (&*borrowedStmt, kStmtParamNameValue))); static_assert(std ::is_empty_v<typename decltype(tryResult1165)::ok_type> ); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14552, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); }}; | ||||
| 14553 | QM_TRY(MOZ_TO_RESULT(info.mLocaleAwarePosition.BindToStatement({auto tryResult1166 = (ToResult(info.mLocaleAwarePosition.BindToStatement ( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert (std::is_empty_v<typename decltype(tryResult1166)::ok_type >); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14554, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); }} | ||||
| 14554 | &*borrowedStmt, kStmtParamNameValueLocale))){auto tryResult1166 = (ToResult(info.mLocaleAwarePosition.BindToStatement ( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert (std::is_empty_v<typename decltype(tryResult1166)::ok_type >); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14554, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); }}; | ||||
| 14555 | QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName({auto tryResult1167 = (ToResult(borrowedStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1167)::ok_type >); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14556, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }} | ||||
| 14556 | kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult1167 = (ToResult(borrowedStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1167)::ok_type >); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14556, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; | ||||
| 14557 | QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement ( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1168)::ok_type >); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))" , tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14558, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }} | ||||
| 14558 | &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement ( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1168)::ok_type >); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))" , tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14558, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; | ||||
| 14559 | |||||
| 14560 | // QM_OR_ELSE_WARN_IF is not used here since we just want to log the | ||||
| 14561 | // collision and not spam the reports. | ||||
| 14562 | QM_TRY(QM_OR_ELSE_LOG_VERBOSE_IF({auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14563 | // Expression.{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14564 | MOZ_TO_RESULT(borrowedStmt->Execute()),{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14565 | // Predicate.{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14566 | ([&info, index, &aIndexValues](nsresult rv) {{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14567 | if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) {{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14568 | // If we're inserting multiple entries for the same unique{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14569 | // index, then we might have failed to insert due to{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14570 | // colliding with another entry for the same index in which{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14571 | // case we should ignore it.{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14572 | for (int32_t index2 = int32_t(index) - 1;{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14573 | index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId;{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14574 | --index2) {{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14575 | if (info.mPosition == aIndexValues[index2].mPosition) {{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14576 | // We found a key with the same value for the same{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14577 | // index. So we must have had a collision with a value{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14578 | // we just inserted.{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14579 | return true;{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14580 | }{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14581 | }{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14582 | }{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14583 | |||||
| 14584 | return false;{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14585 | }),{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14586 | // Fallback.{auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }} | ||||
| 14587 | ErrToDefaultOk<>)){auto tryResult1169 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14587, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; | ||||
| 14588 | } | ||||
| 14589 | |||||
| 14590 | return NS_OK; | ||||
| 14591 | } | ||||
| 14592 | |||||
| 14593 | // static | ||||
| 14594 | nsresult DatabaseOperationBase::DeleteIndexDataTableRows( | ||||
| 14595 | DatabaseConnection* aConnection, const Key& aObjectStoreKey, | ||||
| 14596 | const nsTArray<IndexDataValue>& aIndexValues) { | ||||
| 14597 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14597); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 14597); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14598 | aConnection->AssertIsOnConnectionThread(); | ||||
| 14599 | MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14599 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 14599); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14600 | |||||
| 14601 | AUTO_PROFILER_LABEL("DatabaseOperationBase::DeleteIndexDataTableRows", DOM)mozilla::AutoProfilerLabel raiiObject14601( "DatabaseOperationBase::DeleteIndexDataTableRows" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 14602 | |||||
| 14603 | const uint32_t count = aIndexValues.Length(); | ||||
| 14604 | if (!count) { | ||||
| 14605 | return NS_OK; | ||||
| 14606 | } | ||||
| 14607 | |||||
| 14608 | auto deleteUniqueStmt = DatabaseConnection::LazyStatement{ | ||||
| 14609 | *aConnection, "DELETE FROM unique_index_data WHERE index_id = :"_ns + | ||||
| 14610 | kStmtParamNameIndexId + " AND value = :"_ns + | ||||
| 14611 | kStmtParamNameValue + ";"_ns}; | ||||
| 14612 | auto deleteStmt = DatabaseConnection::LazyStatement{ | ||||
| 14613 | *aConnection, "DELETE FROM index_data WHERE index_id = :"_ns + | ||||
| 14614 | kStmtParamNameIndexId + " AND value = :"_ns + | ||||
| 14615 | kStmtParamNameValue + " AND object_data_key = :"_ns + | ||||
| 14616 | kStmtParamNameObjectDataKey + ";"_ns}; | ||||
| 14617 | |||||
| 14618 | for (uint32_t index = 0; index < count; index++) { | ||||
| 14619 | const IndexDataValue& indexValue = aIndexValues[index]; | ||||
| 14620 | |||||
| 14621 | auto& stmt = indexValue.mUnique ? deleteUniqueStmt : deleteStmt; | ||||
| 14622 | |||||
| 14623 | QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1170 = (stmt.Borrow()); if ((__builtin_expect(! !(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("stmt.Borrow()", tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14623, mozilla::dom::quota::Severity::Error); return tryResult1170 .propagateErr(); } const auto& borrowedStmt = tryResult1170 .inspect();; | ||||
| 14624 | |||||
| 14625 | QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1171 = (ToResult(borrowedStmt->BindInt64ByName (kStmtParamNameIndexId, indexValue.mIndexId))); static_assert (std::is_empty_v<typename decltype(tryResult1171)::ok_type >); if ((__builtin_expect(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))" , tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14626, mozilla::dom::quota::Severity::Error); return tryResult1171 .propagateErr(); }} | ||||
| 14626 | indexValue.mIndexId))){auto tryResult1171 = (ToResult(borrowedStmt->BindInt64ByName (kStmtParamNameIndexId, indexValue.mIndexId))); static_assert (std::is_empty_v<typename decltype(tryResult1171)::ok_type >); if ((__builtin_expect(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))" , tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14626, mozilla::dom::quota::Severity::Error); return tryResult1171 .propagateErr(); }}; | ||||
| 14627 | |||||
| 14628 | QM_TRY(MOZ_TO_RESULT(indexValue.mPosition.BindToStatement({auto tryResult1172 = (ToResult(indexValue.mPosition.BindToStatement ( &*borrowedStmt, kStmtParamNameValue))); static_assert(std ::is_empty_v<typename decltype(tryResult1172)::ok_type> ); if ((__builtin_expect(!!(tryResult1172.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))" , tryResult1172.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14629, mozilla::dom::quota::Severity::Error); return tryResult1172 .propagateErr(); }} | ||||
| 14629 | &*borrowedStmt, kStmtParamNameValue))){auto tryResult1172 = (ToResult(indexValue.mPosition.BindToStatement ( &*borrowedStmt, kStmtParamNameValue))); static_assert(std ::is_empty_v<typename decltype(tryResult1172)::ok_type> ); if ((__builtin_expect(!!(tryResult1172.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))" , tryResult1172.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14629, mozilla::dom::quota::Severity::Error); return tryResult1172 .propagateErr(); }}; | ||||
| 14630 | |||||
| 14631 | if (!indexValue.mUnique) { | ||||
| 14632 | QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult1173 = (ToResult(aObjectStoreKey.BindToStatement ( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1173)::ok_type >); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))" , tryResult1173.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14633, mozilla::dom::quota::Severity::Error); return tryResult1173 .propagateErr(); }} | ||||
| 14633 | &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult1173 = (ToResult(aObjectStoreKey.BindToStatement ( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1173)::ok_type >); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))" , tryResult1173.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14633, mozilla::dom::quota::Severity::Error); return tryResult1173 .propagateErr(); }}; | ||||
| 14634 | } | ||||
| 14635 | |||||
| 14636 | QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult1174 = (ToResult(borrowedStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1174 )::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())" , tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14636, mozilla::dom::quota::Severity::Error); return tryResult1174 .propagateErr(); }}; | ||||
| 14637 | } | ||||
| 14638 | |||||
| 14639 | return NS_OK; | ||||
| 14640 | } | ||||
| 14641 | |||||
| 14642 | // static | ||||
| 14643 | nsresult DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes( | ||||
| 14644 | DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId, | ||||
| 14645 | const Maybe<SerializedKeyRange>& aKeyRange) { | ||||
| 14646 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14646); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 14646); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14647 | aConnection->AssertIsOnConnectionThread(); | ||||
| 14648 | MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14648 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 14648); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 14649 | |||||
| 14650 | #ifdef DEBUG1 | ||||
| 14651 | { | ||||
| 14652 | QM_TRY_INSPECT(const bool& hasIndexes,auto tryResult1175 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId )); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { auto tryTempError = tryResult1175.unwrapErr(); mozilla::dom::quota ::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14654, mozilla::dom::quota::Severity::Error); [](const auto &) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14654); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")" ); do { MOZ_CrashSequence(__null, 14654); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)" , tryTempError, Err(tryTempError)); } const bool& hasIndexes = tryResult1175.inspect(); | ||||
| 14653 | ObjectStoreHasIndexes(*aConnection, aObjectStoreId),auto tryResult1175 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId )); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { auto tryTempError = tryResult1175.unwrapErr(); mozilla::dom::quota ::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14654, mozilla::dom::quota::Severity::Error); [](const auto &) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14654); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")" ); do { MOZ_CrashSequence(__null, 14654); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)" , tryTempError, Err(tryTempError)); } const bool& hasIndexes = tryResult1175.inspect(); | ||||
| 14654 | QM_PROPAGATE, [](const auto&) { MOZ_ASSERT(false); })auto tryResult1175 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId )); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { auto tryTempError = tryResult1175.unwrapErr(); mozilla::dom::quota ::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14654, mozilla::dom::quota::Severity::Error); [](const auto &) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14654); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")" ); do { MOZ_CrashSequence(__null, 14654); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)" , tryTempError, Err(tryTempError)); } const bool& hasIndexes = tryResult1175.inspect();; | ||||
| 14655 | MOZ_ASSERT(hasIndexes,do { static_assert( mozilla::detail::AssertionConditionType< decltype(hasIndexes)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14656 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") (" "Don't use this slow method if there are no indexes!" ")"); do { MOZ_CrashSequence(__null, 14656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 14656 | "Don't use this slow method if there are no indexes!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(hasIndexes)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14656 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") (" "Don't use this slow method if there are no indexes!" ")"); do { MOZ_CrashSequence(__null, 14656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14657 | } | ||||
| 14658 | #endif | ||||
| 14659 | |||||
| 14660 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject14661( "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 14661 | "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes", DOM)mozilla::AutoProfilerLabel raiiObject14661( "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 14662 | |||||
| 14663 | const bool singleRowOnly = aKeyRange.isSome() && aKeyRange.ref().isOnly(); | ||||
| 14664 | |||||
| 14665 | const auto keyRangeClause = | ||||
| 14666 | MaybeGetBindingClauseForKeyRange(aKeyRange, kColumnNameKey); | ||||
| 14667 | |||||
| 14668 | Key objectStoreKey; | ||||
| 14669 | QM_TRY_INSPECT(auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14670 | const auto& selectStmt,auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14671 | ([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange,auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14672 | &keyRangeClause]()auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14673 | -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> {auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14674 | if (singleRowOnly) {auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14675 | QM_TRY_UNWRAP(auto selectStmt,auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14676 | aConnection->BorrowCachedStatement(auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14677 | "SELECT index_data_values "auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14678 | "FROM object_data "auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14679 | "WHERE object_store_id = :"_ns +auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14680 | kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14681 | kStmtParamNameKey + ";"_ns));auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14682 | |||||
| 14683 | objectStoreKey = aKeyRange.ref().lower();auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14684 | |||||
| 14685 | QM_TRY(MOZ_TO_RESULT(auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14686 | objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey)));auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14687 | |||||
| 14688 | return selectStmt;auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14689 | }auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14690 | |||||
| 14691 | QM_TRY_UNWRAP(auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14692 | auto selectStmt,auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14693 | aConnection->BorrowCachedStatement(auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14694 | "SELECT index_data_values, "_ns + kColumnNameKey +auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14695 | " FROM object_data WHERE object_store_id = :"_ns +auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14696 | kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns));auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14697 | |||||
| 14698 | if (aKeyRange.isSome()) {auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14699 | QM_TRY(MOZ_TO_RESULT(auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14700 | BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt)));auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14701 | }auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14702 | |||||
| 14703 | return selectStmt;auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect(); | ||||
| 14704 | }()))auto tryResult1180 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1176.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)" , tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect (!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1178.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)" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect (!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1176 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1176.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)\", tryResult1176.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); } auto selectStmt = tryResult1176.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1177 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; return selectStmt; } auto tryResult1178 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1178.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)\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); } auto selectStmt = tryResult1178.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1179 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; } return selectStmt; }())" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); } const auto& selectStmt = tryResult1180 .inspect();; | ||||
| 14705 | |||||
| 14706 | QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult1181 = (ToResult(selectStmt->BindInt64ByName (kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1181)::ok_type >); if ((__builtin_expect(!!(tryResult1181.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14707, mozilla::dom::quota::Severity::Error); return tryResult1181 .propagateErr(); }} | ||||
| 14707 | aObjectStoreId))){auto tryResult1181 = (ToResult(selectStmt->BindInt64ByName (kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1181)::ok_type >); if ((__builtin_expect(!!(tryResult1181.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14707, mozilla::dom::quota::Severity::Error); return tryResult1181 .propagateErr(); }}; | ||||
| 14708 | |||||
| 14709 | DebugOnly<uint32_t> resultCountDEBUG = 0; | ||||
| 14710 | |||||
| 14711 | QM_TRY(CollectWhileHasResult({auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14712 | *selectStmt,{auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14713 | [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG,{auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14714 | indexValues = IndexDataValuesAutoArray{}]({auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14715 | auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14716 | if (!singleRowOnly) {{auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14717 | QM_TRY({auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14718 | MOZ_TO_RESULT(objectStoreKey.SetFromStatement(&selectStmt, 1)));{auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14719 | |||||
| 14720 | indexValues.ClearAndRetainStorage();{auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14721 | }{auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14722 | |||||
| 14723 | QM_TRY(MOZ_TO_RESULT({auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14724 | ReadCompressedIndexDataValues(selectStmt, 0, indexValues)));{auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14725 | QM_TRY(MOZ_TO_RESULT(DeleteIndexDataTableRows({auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14726 | aConnection, objectStoreKey, indexValues)));{auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14727 | |||||
| 14728 | resultCountDEBUG++;{auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14729 | |||||
| 14730 | return Ok{};{auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14731 | })){auto tryResult1185 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect (!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect (!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1184)::ok_type> ); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1185)::ok_type >); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1182 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1182.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1182.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1183 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1183)::ok_type>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1183.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1183.propagateErr(); }}; {auto tryResult1184 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1184)::ok_type>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1184.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1184.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }}; | ||||
| 14732 | |||||
| 14733 | MOZ_ASSERT_IF(singleRowOnly, resultCountDEBUG <= 1)do { if (singleRowOnly) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(resultCountDEBUG <= 1 )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(resultCountDEBUG <= 1))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("resultCountDEBUG <= 1", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14733); AnnotateMozCrashReason("MOZ_ASSERT" "(" "resultCountDEBUG <= 1" ")"); do { MOZ_CrashSequence(__null, 14733); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 14734 | |||||
| 14735 | QM_TRY_UNWRAP(auto tryResult1186 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1186 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14739, mozilla::dom::quota::Severity::Error); return tryResult1186 .propagateErr(); } auto deleteManyStmt = tryResult1186.unwrap (); | ||||
| 14736 | auto deleteManyStmt,auto tryResult1186 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1186 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14739, mozilla::dom::quota::Severity::Error); return tryResult1186 .propagateErr(); } auto deleteManyStmt = tryResult1186.unwrap (); | ||||
| 14737 | aConnection->BorrowCachedStatement(auto tryResult1186 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1186 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14739, mozilla::dom::quota::Severity::Error); return tryResult1186 .propagateErr(); } auto deleteManyStmt = tryResult1186.unwrap (); | ||||
| 14738 | "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns +auto tryResult1186 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1186 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14739, mozilla::dom::quota::Severity::Error); return tryResult1186 .propagateErr(); } auto deleteManyStmt = tryResult1186.unwrap (); | ||||
| 14739 | kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns))auto tryResult1186 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1186 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14739, mozilla::dom::quota::Severity::Error); return tryResult1186 .propagateErr(); } auto deleteManyStmt = tryResult1186.unwrap ();; | ||||
| 14740 | |||||
| 14741 | QM_TRY(MOZ_TO_RESULT(deleteManyStmt->BindInt64ByName({auto tryResult1187 = (ToResult(deleteManyStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1187)::ok_type >); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14742, mozilla::dom::quota::Severity::Error); return tryResult1187 .propagateErr(); }} | ||||
| 14742 | kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult1187 = (ToResult(deleteManyStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1187)::ok_type >); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14742, mozilla::dom::quota::Severity::Error); return tryResult1187 .propagateErr(); }}; | ||||
| 14743 | |||||
| 14744 | if (aKeyRange.isSome()) { | ||||
| 14745 | QM_TRY(MOZ_TO_RESULT({auto tryResult1188 = (ToResult(BindKeyRangeToStatement(aKeyRange .ref(), &*deleteManyStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect (!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))" , tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14746, mozilla::dom::quota::Severity::Error); return tryResult1188 .propagateErr(); }} | ||||
| 14746 | BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))){auto tryResult1188 = (ToResult(BindKeyRangeToStatement(aKeyRange .ref(), &*deleteManyStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect (!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))" , tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14746, mozilla::dom::quota::Severity::Error); return tryResult1188 .propagateErr(); }}; | ||||
| 14747 | } | ||||
| 14748 | |||||
| 14749 | QM_TRY(MOZ_TO_RESULT(deleteManyStmt->Execute())){auto tryResult1189 = (ToResult(deleteManyStmt->Execute()) ); static_assert(std::is_empty_v<typename decltype(tryResult1189 )::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->Execute())" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14749, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); }}; | ||||
| 14750 | |||||
| 14751 | return NS_OK; | ||||
| 14752 | } | ||||
| 14753 | |||||
| 14754 | // static | ||||
| 14755 | nsresult DatabaseOperationBase::UpdateIndexValues( | ||||
| 14756 | DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId, | ||||
| 14757 | const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues) { | ||||
| 14758 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14758); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 14758); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14759 | aConnection->AssertIsOnConnectionThread(); | ||||
| 14760 | MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14760 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 14760); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14761 | |||||
| 14762 | AUTO_PROFILER_LABEL("DatabaseOperationBase::UpdateIndexValues", DOM)mozilla::AutoProfilerLabel raiiObject14762( "DatabaseOperationBase::UpdateIndexValues" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 14763 | |||||
| 14764 | QM_TRY_UNWRAP((auto [indexDataValues, indexDataValuesLength]),auto tryResult1190 = (MakeCompressedIndexDataValues(aIndexValues )); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla ::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14765, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); } auto [indexDataValues, indexDataValuesLength ] = tryResult1190.unwrap(); | ||||
| 14765 | MakeCompressedIndexDataValues(aIndexValues))auto tryResult1190 = (MakeCompressedIndexDataValues(aIndexValues )); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla ::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14765, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); } auto [indexDataValues, indexDataValuesLength ] = tryResult1190.unwrap();; | ||||
| 14766 | |||||
| 14767 | MOZ_ASSERT(!indexDataValuesLength == !(indexDataValues.get()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!indexDataValuesLength == !(indexDataValues.get()))> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!indexDataValuesLength == !(indexDataValues.get()))) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!indexDataValuesLength == !(indexDataValues.get())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14767 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexDataValuesLength == !(indexDataValues.get())" ")"); do { MOZ_CrashSequence(__null, 14767); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14768 | |||||
| 14769 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14770 | "UPDATE object_data SET index_data_values = :"_ns +{auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14771 | kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns +{auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14772 | kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey +{auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14773 | ";"_ns,{auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14774 | [&indexDataValues = indexDataValues,{auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14775 | indexDataValuesLength = indexDataValuesLength, aObjectStoreId,{auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14776 | &aObjectStoreKey]({auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14777 | mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> {{auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14778 | QM_TRY(MOZ_TO_RESULT({auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14779 | indexDataValues{auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14780 | ? updateStmt.BindAdoptedBlobByName({auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14781 | kStmtParamNameIndexDataValues, indexDataValues.release(),{auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14782 | indexDataValuesLength){auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14783 | : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)));{auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14784 | |||||
| 14785 | QM_TRY(MOZ_TO_RESULT(updateStmt.BindInt64ByName({auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14786 | kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14787 | |||||
| 14788 | QM_TRY(MOZ_TO_RESULT({auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14789 | aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey)));{auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14790 | |||||
| 14791 | return Ok{};{auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14792 | }))){auto tryResult1194 = (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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1191 )::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1192 )::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1193)::ok_type >); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect (!!(tryResult1194.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 tryResult1191 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); }}; {auto tryResult1192 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; {auto tryResult1193 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1193.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; return Ok{}; }))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }}; | ||||
| 14793 | |||||
| 14794 | return NS_OK; | ||||
| 14795 | } | ||||
| 14796 | |||||
| 14797 | // static | ||||
| 14798 | Result<bool, nsresult> DatabaseOperationBase::ObjectStoreHasIndexes( | ||||
| 14799 | DatabaseConnection& aConnection, | ||||
| 14800 | const IndexOrObjectStoreId aObjectStoreId) { | ||||
| 14801 | aConnection.AssertIsOnConnectionThread(); | ||||
| 14802 | MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14802 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 14802); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 14803 | |||||
| 14804 | QM_TRY_RETURN(aConnection{auto tryResult1196 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1196 ;} | ||||
| 14805 | .BorrowAndExecuteSingleStepStatement({auto tryResult1196 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1196 ;} | ||||
| 14806 | "SELECT id "{auto tryResult1196 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1196 ;} | ||||
| 14807 | "FROM object_store_index "{auto tryResult1196 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1196 ;} | ||||
| 14808 | "WHERE object_store_id = :"_ns +{auto tryResult1196 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1196 ;} | ||||
| 14809 | kStmtParamNameObjectStoreId + " LIMIT 1;"_ns,{auto tryResult1196 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1196 ;} | ||||
| 14810 | [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1196 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1196 ;} | ||||
| 14811 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName({auto tryResult1196 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1196 ;} | ||||
| 14812 | kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult1196 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1196 ;} | ||||
| 14813 | return Ok{};{auto tryResult1196 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1196 ;} | ||||
| 14814 | }){auto tryResult1196 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1196 ;} | ||||
| 14815 | .map(IsSome)){auto tryResult1196 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1195 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1196 ;}; | ||||
| 14816 | } | ||||
| 14817 | |||||
| 14818 | NS_IMPL_ISUPPORTS_INHERITED(DatabaseOperationBase, Runnable,nsresult DatabaseOperationBase::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak (NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!" , "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14819); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE_INHERITED" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<DatabaseOperationBase, mozIStorageProgressHandler >, int32_t( reinterpret_cast<char*>(static_cast<mozIStorageProgressHandler *>((DatabaseOperationBase*)0x1000)) - reinterpret_cast< char*>((DatabaseOperationBase*)0x1000))}, { nullptr, 0 } } ; static_assert(std::size(table) > 1, "need at least 1 interface" ); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID , aInstancePtr, table); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl (rv)), 1)))) return rv; return Runnable::QueryInterface(aIID, aInstancePtr); } MozExternalRefCountType DatabaseOperationBase ::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseOperationBase >, "Reference-counted class " "DatabaseOperationBase" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = Runnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <DatabaseOperationBase>) { NS_LogAddRef((this), (r), ("DatabaseOperationBase" ), (uint32_t)(sizeof(*this))); } return r; } MozExternalRefCountType DatabaseOperationBase::Release(void) { nsrefcnt r = Runnable ::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <DatabaseOperationBase>) { NS_LogRelease((this), (r), ( "DatabaseOperationBase")); } return r; } | ||||
| 14819 | mozIStorageProgressHandler)nsresult DatabaseOperationBase::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak (NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!" , "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14819); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE_INHERITED" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<DatabaseOperationBase, mozIStorageProgressHandler >, int32_t( reinterpret_cast<char*>(static_cast<mozIStorageProgressHandler *>((DatabaseOperationBase*)0x1000)) - reinterpret_cast< char*>((DatabaseOperationBase*)0x1000))}, { nullptr, 0 } } ; static_assert(std::size(table) > 1, "need at least 1 interface" ); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID , aInstancePtr, table); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl (rv)), 1)))) return rv; return Runnable::QueryInterface(aIID, aInstancePtr); } MozExternalRefCountType DatabaseOperationBase ::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseOperationBase >, "Reference-counted class " "DatabaseOperationBase" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = Runnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <DatabaseOperationBase>) { NS_LogAddRef((this), (r), ("DatabaseOperationBase" ), (uint32_t)(sizeof(*this))); } return r; } MozExternalRefCountType DatabaseOperationBase::Release(void) { nsrefcnt r = Runnable ::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <DatabaseOperationBase>) { NS_LogRelease((this), (r), ( "DatabaseOperationBase")); } return r; } | ||||
| 14820 | |||||
| 14821 | NS_IMETHODIMPnsresult | ||||
| 14822 | DatabaseOperationBase::OnProgress(mozIStorageConnection* aConnection, | ||||
| 14823 | bool* _retval) { | ||||
| 14824 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14824 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14824); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14825 | MOZ_ASSERT(_retval)do { static_assert( mozilla::detail::AssertionConditionType< decltype(_retval)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(_retval))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("_retval", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14825); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")" ); do { MOZ_CrashSequence(__null, 14825); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 14826 | |||||
| 14827 | // This is intentionally racy. | ||||
| 14828 | *_retval = QuotaClient::IsShuttingDownOnNonBackgroundThread() || | ||||
| 14829 | !OperationMayProceed(); | ||||
| 14830 | return NS_OK; | ||||
| 14831 | } | ||||
| 14832 | |||||
| 14833 | DatabaseOperationBase::AutoSetProgressHandler::AutoSetProgressHandler() | ||||
| 14834 | : mConnection(Nothing()) | ||||
| 14835 | #ifdef DEBUG1 | ||||
| 14836 | , | ||||
| 14837 | mDEBUGDatabaseOp(nullptr) | ||||
| 14838 | #endif | ||||
| 14839 | { | ||||
| 14840 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14840 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14840); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14841 | } | ||||
| 14842 | |||||
| 14843 | DatabaseOperationBase::AutoSetProgressHandler::~AutoSetProgressHandler() { | ||||
| 14844 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14844 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14844); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14845 | |||||
| 14846 | if (mConnection) { | ||||
| 14847 | Unregister(); | ||||
| 14848 | } | ||||
| 14849 | } | ||||
| 14850 | |||||
| 14851 | nsresult DatabaseOperationBase::AutoSetProgressHandler::Register( | ||||
| 14852 | mozIStorageConnection& aConnection, DatabaseOperationBase* aDatabaseOp) { | ||||
| 14853 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14853 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14853); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14854 | MOZ_ASSERT(aDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14854); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseOp" ")"); do { MOZ_CrashSequence(__null, 14854); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14855 | MOZ_ASSERT(!mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14855); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection" ")"); do { MOZ_CrashSequence(__null, 14855); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14856 | |||||
| 14857 | QM_TRY_UNWRAP(auto tryResult1197 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14861, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult1197 .unwrap(); | ||||
| 14858 | const DebugOnly oldProgressHandler,auto tryResult1197 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14861, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult1197 .unwrap(); | ||||
| 14859 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1197 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14861, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult1197 .unwrap(); | ||||
| 14860 | nsCOMPtr<mozIStorageProgressHandler>, aConnection, SetProgressHandler,auto tryResult1197 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14861, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult1197 .unwrap(); | ||||
| 14861 | kStorageProgressGranularity, aDatabaseOp))auto tryResult1197 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14861, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult1197 .unwrap();; | ||||
| 14862 | |||||
| 14863 | MOZ_ASSERT(!oldProgressHandler.inspect())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!oldProgressHandler.inspect())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!oldProgressHandler.inspect( )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!oldProgressHandler.inspect()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14863); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!oldProgressHandler.inspect()" ")"); do { MOZ_CrashSequence(__null, 14863); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14864 | |||||
| 14865 | mConnection = SomeRef(aConnection); | ||||
| 14866 | #ifdef DEBUG1 | ||||
| 14867 | mDEBUGDatabaseOp = aDatabaseOp; | ||||
| 14868 | #endif | ||||
| 14869 | |||||
| 14870 | return NS_OK; | ||||
| 14871 | } | ||||
| 14872 | |||||
| 14873 | void DatabaseOperationBase::AutoSetProgressHandler::Unregister() { | ||||
| 14874 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14874 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14874); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14875 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14875); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 14875); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14876 | |||||
| 14877 | nsCOMPtr<mozIStorageProgressHandler> oldHandler; | ||||
| 14878 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler )))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14879 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))" ")"); do { MOZ_CrashSequence(__null, 14879); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 14879 | mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler )))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14879 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))" ")"); do { MOZ_CrashSequence(__null, 14879); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 14880 | MOZ_ASSERT(oldHandler == mDEBUGDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(oldHandler == mDEBUGDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(oldHandler == mDEBUGDatabaseOp ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "oldHandler == mDEBUGDatabaseOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "oldHandler == mDEBUGDatabaseOp" ")"); do { MOZ_CrashSequence(__null, 14880); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14881 | |||||
| 14882 | mConnection = Nothing(); | ||||
| 14883 | } | ||||
| 14884 | |||||
| 14885 | FactoryOp::FactoryOp(SafeRefPtr<Factory> aFactory, | ||||
| 14886 | const Maybe<ContentParentId>& aContentParentId, | ||||
| 14887 | const PersistenceType aPersistenceType, | ||||
| 14888 | const PrincipalInfo& aPrincipalInfo, | ||||
| 14889 | const Maybe<nsString>& aDatabaseName, bool aDeleting) | ||||
| 14890 | : DatabaseOperationBase(aFactory->GetLoggingInfo()->Id(), | ||||
| 14891 | aFactory->GetLoggingInfo()->NextRequestSN()), | ||||
| 14892 | mFactory(std::move(aFactory)), | ||||
| 14893 | mContentParentId(aContentParentId), | ||||
| 14894 | mPrincipalInfo(aPrincipalInfo), | ||||
| 14895 | mDatabaseName(aDatabaseName), | ||||
| 14896 | mDirectoryLockId(-1), | ||||
| 14897 | mPersistenceType(aPersistenceType), | ||||
| 14898 | mState(State::Initial), | ||||
| 14899 | mWaitingForPermissionRetry(false), | ||||
| 14900 | mEnforcingQuota(true), | ||||
| 14901 | mDeleting(aDeleting) { | ||||
| 14902 | AssertIsOnBackgroundThread(); | ||||
| 14903 | MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFactory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFactory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14903); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")" ); do { MOZ_CrashSequence(__null, 14903); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 14904 | MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14904 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 14904); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14905 | } | ||||
| 14906 | |||||
| 14907 | nsresult FactoryOp::DispatchThisAfterProcessingCurrentEvent( | ||||
| 14908 | nsCOMPtr<nsIEventTarget> aEventTarget) { | ||||
| 14909 | QM_TRY(MOZ_TO_RESULT(RunAfterProcessingCurrentEvent({auto tryResult1199 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult1198 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult1198.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14912, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1199)::ok_type >); if ((__builtin_expect(!!(tryResult1199.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1198 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1198)::ok_type>); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1198.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14912, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14913, mozilla::dom::quota::Severity::Error); return tryResult1199 .propagateErr(); }} | ||||
| 14910 | [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable {{auto tryResult1199 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult1198 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult1198.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14912, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1199)::ok_type >); if ((__builtin_expect(!!(tryResult1199.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1198 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1198)::ok_type>); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1198.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14912, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14913, mozilla::dom::quota::Severity::Error); return tryResult1199 .propagateErr(); }} | ||||
| 14911 | QM_WARNONLY_TRY(MOZ_TO_RESULT({auto tryResult1199 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult1198 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult1198.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14912, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1199)::ok_type >); if ((__builtin_expect(!!(tryResult1199.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1198 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1198)::ok_type>); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1198.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14912, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14913, mozilla::dom::quota::Severity::Error); return tryResult1199 .propagateErr(); }} | ||||
| 14912 | eventTarget->Dispatch(self.forget(), NS_DISPATCH_NORMAL)));{auto tryResult1199 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult1198 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult1198.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14912, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1199)::ok_type >); if ((__builtin_expect(!!(tryResult1199.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1198 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1198)::ok_type>); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1198.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14912, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14913, mozilla::dom::quota::Severity::Error); return tryResult1199 .propagateErr(); }} | ||||
| 14913 | }))){auto tryResult1199 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult1198 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult1198.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14912, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1199)::ok_type >); if ((__builtin_expect(!!(tryResult1199.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1198 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1198)::ok_type>); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1198.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14912, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14913, mozilla::dom::quota::Severity::Error); return tryResult1199 .propagateErr(); }}; | ||||
| 14914 | |||||
| 14915 | return NS_OK; | ||||
| 14916 | } | ||||
| 14917 | |||||
| 14918 | void FactoryOp::NoteDatabaseBlocked(Database* aDatabase) { | ||||
| 14919 | AssertIsOnOwningThread(); | ||||
| 14920 | MOZ_ASSERT(aDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14920); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase" ")"); do { MOZ_CrashSequence(__null, 14920); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14921 | MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForOtherDatabasesToClose)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose" ")"); do { MOZ_CrashSequence(__null, 14921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14922 | MOZ_ASSERT(!mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14922); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 14922); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14923 | MOZ_ASSERT(mMaybeBlockedDatabases.Contains(aDatabase))do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.Contains(aDatabase))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mMaybeBlockedDatabases.Contains(aDatabase)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMaybeBlockedDatabases.Contains(aDatabase)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14923 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.Contains(aDatabase)" ")"); do { MOZ_CrashSequence(__null, 14923); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14924 | |||||
| 14925 | // Only send the blocked event if all databases have reported back. If the | ||||
| 14926 | // database was closed then it will have been removed from the array. | ||||
| 14927 | // Otherwise if it was blocked its |mBlocked| flag will be true. | ||||
| 14928 | bool sendBlockedEvent = true; | ||||
| 14929 | |||||
| 14930 | for (auto& info : mMaybeBlockedDatabases) { | ||||
| 14931 | if (info == aDatabase) { | ||||
| 14932 | // This database was blocked, mark accordingly. | ||||
| 14933 | info.mBlocked = true; | ||||
| 14934 | } else if (!info.mBlocked) { | ||||
| 14935 | // A database has not yet reported back yet, don't send the event yet. | ||||
| 14936 | sendBlockedEvent = false; | ||||
| 14937 | } | ||||
| 14938 | } | ||||
| 14939 | |||||
| 14940 | if (sendBlockedEvent) { | ||||
| 14941 | SendBlockedNotification(); | ||||
| 14942 | } | ||||
| 14943 | } | ||||
| 14944 | |||||
| 14945 | void FactoryOp::NoteDatabaseClosed(Database* const aDatabase) { | ||||
| 14946 | AssertIsOnOwningThread(); | ||||
| 14947 | MOZ_ASSERT(aDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14947); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase" ")"); do { MOZ_CrashSequence(__null, 14947); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14948 | MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForOtherDatabasesToClose)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14948 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose" ")"); do { MOZ_CrashSequence(__null, 14948); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14949 | MOZ_ASSERT(!mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14949); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 14949); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14950 | MOZ_ASSERT(mMaybeBlockedDatabases.Contains(aDatabase))do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.Contains(aDatabase))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mMaybeBlockedDatabases.Contains(aDatabase)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMaybeBlockedDatabases.Contains(aDatabase)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14950 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.Contains(aDatabase)" ")"); do { MOZ_CrashSequence(__null, 14950); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14951 | |||||
| 14952 | mMaybeBlockedDatabases.RemoveElement(aDatabase); | ||||
| 14953 | |||||
| 14954 | if (!mMaybeBlockedDatabases.IsEmpty()) { | ||||
| 14955 | return; | ||||
| 14956 | } | ||||
| 14957 | |||||
| 14958 | DatabaseActorInfo* info; | ||||
| 14959 | MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get( mDatabaseId.ref(), &info)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14959 ); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)" ")"); do { MOZ_CrashSequence(__null, 14959); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 14960 | MOZ_ASSERT(info->mWaitingFactoryOp == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mWaitingFactoryOp == this)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(info->mWaitingFactoryOp == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("info->mWaitingFactoryOp == this", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14960); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mWaitingFactoryOp == this" ")"); do { MOZ_CrashSequence(__null, 14960); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 14961 | |||||
| 14962 | if (AreActorsAlive()) { | ||||
| 14963 | // The IPDL strong reference has not yet been released, so we can clear | ||||
| 14964 | // mWaitingFactoryOp immediately. | ||||
| 14965 | info->mWaitingFactoryOp = nullptr; | ||||
| 14966 | |||||
| 14967 | WaitForTransactions(); | ||||
| 14968 | return; | ||||
| 14969 | } | ||||
| 14970 | |||||
| 14971 | // The IPDL strong reference has been released, mWaitingFactoryOp holds the | ||||
| 14972 | // last strong reference to us, so we need to move it to a stack variable | ||||
| 14973 | // instead of clearing it immediately (We could clear it immediately if only | ||||
| 14974 | // the other actor is destroyed, but we don't need to optimize for that, and | ||||
| 14975 | // move it anyway). | ||||
| 14976 | const RefPtr<FactoryOp> waitingFactoryOp = std::move(info->mWaitingFactoryOp); | ||||
| 14977 | |||||
| 14978 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14978, idbInternalErrMsg.get()); } while (0); | ||||
| 14979 | SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | ||||
| 14980 | |||||
| 14981 | // We hold a strong ref in waitingFactoryOp, so it's safe to call Run() | ||||
| 14982 | // directly. | ||||
| 14983 | |||||
| 14984 | mState = State::SendingResults; | ||||
| 14985 | MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (Run())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(Run())", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14985); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(Run())" ")"); do { MOZ_CrashSequence(__null, 14985); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 14986 | } | ||||
| 14987 | |||||
| 14988 | void FactoryOp::StringifyState(nsACString& aResult) const { | ||||
| 14989 | AssertIsOnOwningThread(); | ||||
| 14990 | |||||
| 14991 | switch (mState) { | ||||
| 14992 | case State::Initial: | ||||
| 14993 | aResult.AppendLiteral("Initial"); | ||||
| 14994 | return; | ||||
| 14995 | |||||
| 14996 | case State::DirectoryOpenPending: | ||||
| 14997 | aResult.AppendLiteral("DirectoryOpenPending"); | ||||
| 14998 | return; | ||||
| 14999 | |||||
| 15000 | case State::DirectoryWorkOpen: | ||||
| 15001 | aResult.AppendLiteral("DirectoryWorkOpen"); | ||||
| 15002 | return; | ||||
| 15003 | |||||
| 15004 | case State::DirectoryWorkDone: | ||||
| 15005 | aResult.AppendLiteral("DirectoryWorkDone"); | ||||
| 15006 | return; | ||||
| 15007 | |||||
| 15008 | case State::DatabaseOpenPending: | ||||
| 15009 | aResult.AppendLiteral("DatabaseOpenPending"); | ||||
| 15010 | return; | ||||
| 15011 | |||||
| 15012 | case State::DatabaseWorkOpen: | ||||
| 15013 | aResult.AppendLiteral("DatabaseWorkOpen"); | ||||
| 15014 | return; | ||||
| 15015 | |||||
| 15016 | case State::BeginVersionChange: | ||||
| 15017 | aResult.AppendLiteral("BeginVersionChange"); | ||||
| 15018 | return; | ||||
| 15019 | |||||
| 15020 | case State::WaitingForOtherDatabasesToClose: | ||||
| 15021 | aResult.AppendLiteral("WaitingForOtherDatabasesToClose"); | ||||
| 15022 | return; | ||||
| 15023 | |||||
| 15024 | case State::WaitingForTransactionsToComplete: | ||||
| 15025 | aResult.AppendLiteral("WaitingForTransactionsToComplete"); | ||||
| 15026 | return; | ||||
| 15027 | |||||
| 15028 | case State::DatabaseWorkVersionChange: | ||||
| 15029 | aResult.AppendLiteral("DatabaseWorkVersionChange"); | ||||
| 15030 | return; | ||||
| 15031 | |||||
| 15032 | case State::SendingResults: | ||||
| 15033 | aResult.AppendLiteral("SendingResults"); | ||||
| 15034 | return; | ||||
| 15035 | |||||
| 15036 | case State::Completed: | ||||
| 15037 | aResult.AppendLiteral("Completed"); | ||||
| 15038 | return; | ||||
| 15039 | |||||
| 15040 | default: | ||||
| 15041 | MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15041); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")" ); do { MOZ_CrashSequence(__null, 15041); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 15042 | } | ||||
| 15043 | } | ||||
| 15044 | |||||
| 15045 | void FactoryOp::Stringify(nsACString& aResult) const { | ||||
| 15046 | AssertIsOnOwningThread(); | ||||
| 15047 | |||||
| 15048 | aResult.AppendLiteral("PersistenceType:"); | ||||
| 15049 | aResult.Append(PersistenceTypeToString(mPersistenceType)); | ||||
| 15050 | aResult.Append(kQuotaGenericDelimiter); | ||||
| 15051 | |||||
| 15052 | aResult.AppendLiteral("Origin:"); | ||||
| 15053 | aResult.Append(AnonymizedOriginString(mOriginMetadata.mOrigin)); | ||||
| 15054 | aResult.Append(kQuotaGenericDelimiter); | ||||
| 15055 | |||||
| 15056 | aResult.AppendLiteral("State:"); | ||||
| 15057 | StringifyState(aResult); | ||||
| 15058 | } | ||||
| 15059 | |||||
| 15060 | nsresult FactoryOp::Open() { | ||||
| 15061 | AssertIsOnOwningThread(); | ||||
| 15062 | MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15062 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial" ")"); do { MOZ_CrashSequence(__null, 15062); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15063 | MOZ_ASSERT(mOriginMetadata.mOrigin.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOriginMetadata.mOrigin.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOriginMetadata.mOrigin.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mOriginMetadata.mOrigin.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mOrigin.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 15063); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15064 | MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15064 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 15064); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15065 | |||||
| 15066 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15066) || | ||||
| 15067 | IsActorDestroyed()) { | ||||
| 15068 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15068, idbInternalErrMsg.get()); } while (0); | ||||
| 15069 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 15070 | } | ||||
| 15071 | |||||
| 15072 | QM_TRY(QuotaManager::EnsureCreated()){auto tryResult1200 = (QuotaManager::EnsureCreated()); static_assert (std::is_empty_v<typename decltype(tryResult1200)::ok_type >); if ((__builtin_expect(!!(tryResult1200.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()" , tryResult1200.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15072, mozilla::dom::quota::Severity::Error); return tryResult1200 .propagateErr(); }}; | ||||
| 15073 | |||||
| 15074 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 15075 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15075); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 15075); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15076 | |||||
| 15077 | QM_TRY_UNWRAP(auto tryResult1201 = (quota::GetInfoFromValidatedPrincipalInfo (*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1201 .isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)" , tryResult1201.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15079, mozilla::dom::quota::Severity::Error); return tryResult1201 .propagateErr(); } auto principalMetadata = tryResult1201.unwrap (); | ||||
| 15078 | auto principalMetadata,auto tryResult1201 = (quota::GetInfoFromValidatedPrincipalInfo (*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1201 .isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)" , tryResult1201.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15079, mozilla::dom::quota::Severity::Error); return tryResult1201 .propagateErr(); } auto principalMetadata = tryResult1201.unwrap (); | ||||
| 15079 | quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo))auto tryResult1201 = (quota::GetInfoFromValidatedPrincipalInfo (*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1201 .isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)" , tryResult1201.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15079, mozilla::dom::quota::Severity::Error); return tryResult1201 .propagateErr(); } auto principalMetadata = tryResult1201.unwrap ();; | ||||
| 15080 | |||||
| 15081 | mOriginMetadata = {std::move(principalMetadata), mPersistenceType}; | ||||
| 15082 | |||||
| 15083 | if (mPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo) { | ||||
| 15084 | MOZ_ASSERT(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15084 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" ")"); do { MOZ_CrashSequence(__null, 15084); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15085 | |||||
| 15086 | mEnforcingQuota = false; | ||||
| 15087 | } else if (mPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo) { | ||||
| 15088 | const ContentPrincipalInfo& contentPrincipalInfo = | ||||
| 15089 | mPrincipalInfo.get_ContentPrincipalInfo(); | ||||
| 15090 | |||||
| 15091 | MOZ_ASSERT_IF(do { if (QuotaManager::IsOriginInternal(contentPrincipalInfo. originNoSuffix())) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15093 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" ")"); do { MOZ_CrashSequence(__null, 15093); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 15092 | QuotaManager::IsOriginInternal(contentPrincipalInfo.originNoSuffix()),do { if (QuotaManager::IsOriginInternal(contentPrincipalInfo. originNoSuffix())) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15093 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" ")"); do { MOZ_CrashSequence(__null, 15093); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 15093 | mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)do { if (QuotaManager::IsOriginInternal(contentPrincipalInfo. originNoSuffix())) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15093 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" ")"); do { MOZ_CrashSequence(__null, 15093); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 15094 | |||||
| 15095 | mEnforcingQuota = mPersistenceType != PERSISTENCE_TYPE_PERSISTENT; | ||||
| 15096 | |||||
| 15097 | if (mOriginMetadata.mIsPrivate) { | ||||
| 15098 | if (StaticPrefs::dom_indexedDB_privateBrowsing_enabled()) { | ||||
| 15099 | // Explicitly disallow moz-extension urls from using the encrypted | ||||
| 15100 | // indexedDB storage mode when the caller is an extension (see Bug | ||||
| 15101 | // 1841806). | ||||
| 15102 | if (StringBeginsWith(contentPrincipalInfo.originNoSuffix(), | ||||
| 15103 | "moz-extension:"_ns)) { | ||||
| 15104 | return NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR; | ||||
| 15105 | } | ||||
| 15106 | |||||
| 15107 | mInPrivateBrowsing.Flip(); | ||||
| 15108 | } else { | ||||
| 15109 | return NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR; | ||||
| 15110 | } | ||||
| 15111 | } | ||||
| 15112 | } else { | ||||
| 15113 | MOZ_ASSERT(false)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15113); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")" ); do { MOZ_CrashSequence(__null, 15113); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 15114 | } | ||||
| 15115 | |||||
| 15116 | if (mDatabaseName.isSome()) { | ||||
| 15117 | nsCString databaseId; | ||||
| 15118 | |||||
| 15119 | QuotaManager::GetStorageId(mPersistenceType, mOriginMetadata.mOrigin, | ||||
| 15120 | Client::IDB, databaseId); | ||||
| 15121 | |||||
| 15122 | databaseId.Append('*'); | ||||
| 15123 | databaseId.Append(NS_ConvertUTF16toUTF8(mDatabaseName.ref())); | ||||
| 15124 | |||||
| 15125 | mDatabaseId = Some(std::move(databaseId)); | ||||
| 15126 | |||||
| 15127 | // Need to get database file path before opening the directory. | ||||
| 15128 | // XXX: For what reason? | ||||
| 15129 | QM_TRY_UNWRAP(auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap (); | ||||
| 15130 | auto databaseFilePath,auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap (); | ||||
| 15131 | ([this, quotaManager]() -> mozilla::Result<nsString, nsresult> {auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap (); | ||||
| 15132 | QM_TRY_INSPECT(const auto& dbFile,auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap (); | ||||
| 15133 | quotaManager->GetOriginDirectory(mOriginMetadata));auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap (); | ||||
| 15134 | |||||
| 15135 | QM_TRY(MOZ_TO_RESULT(dbFile->Append(auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap (); | ||||
| 15136 | NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME))));auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap (); | ||||
| 15137 | |||||
| 15138 | QM_TRY(MOZ_TO_RESULT(dbFile->Append(auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap (); | ||||
| 15139 | GetDatabaseFilenameBase(mDatabaseName.ref(),auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap (); | ||||
| 15140 | mOriginMetadata.mIsPrivate) +auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap (); | ||||
| 15141 | kSQLiteSuffix)));auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap (); | ||||
| 15142 | |||||
| 15143 | QM_TRY_RETURN(auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap (); | ||||
| 15144 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath));auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap (); | ||||
| 15145 | }()))auto tryResult1206 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1202 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1202 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15133, mozilla::dom::quota::Severity::Error); return tryResult1202 .propagateErr(); } const auto& dbFile = tryResult1202.inspect ();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1203 )::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15136, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect (!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205 ;}; }())); if ((__builtin_expect(!!(tryResult1206.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1202 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1202.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15133, mozilla::dom::quota::Severity::Error); return tryResult1202.propagateErr(); } const auto& dbFile = tryResult1202.inspect();; {auto tryResult1203 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1203.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15136, mozilla::dom::quota::Severity::Error); return tryResult1203.propagateErr(); }}; {auto tryResult1204 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1205;}; }())" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); } auto databaseFilePath = tryResult1206.unwrap ();; | ||||
| 15146 | |||||
| 15147 | mDatabaseFilePath = Some(std::move(databaseFilePath)); | ||||
| 15148 | } | ||||
| 15149 | |||||
| 15150 | // Open directory | ||||
| 15151 | mState = State::DirectoryOpenPending; | ||||
| 15152 | |||||
| 15153 | quotaManager->OpenClientDirectory({mOriginMetadata, Client::IDB}) | ||||
| 15154 | ->Then( | ||||
| 15155 | GetCurrentSerialEventTarget(), __func__, | ||||
| 15156 | [self = RefPtr(this)](QuotaManager::ClientDirectoryLockHandlePromise:: | ||||
| 15157 | ResolveOrRejectValue&& aValue) { | ||||
| 15158 | if (aValue.IsResolve()) { | ||||
| 15159 | self->DirectoryLockAcquired(std::move(aValue.ResolveValue())); | ||||
| 15160 | } else { | ||||
| 15161 | self->DirectoryLockFailed(); | ||||
| 15162 | } | ||||
| 15163 | }); | ||||
| 15164 | |||||
| 15165 | return NS_OK; | ||||
| 15166 | } | ||||
| 15167 | |||||
| 15168 | nsresult FactoryOp::DirectoryOpen() { | ||||
| 15169 | AssertIsOnOwningThread(); | ||||
| 15170 | MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryOpenPending)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mState == State::DirectoryOpenPending))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15170 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { MOZ_CrashSequence(__null, 15170); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15171 | MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15171 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 15171); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15172 | |||||
| 15173 | if (mDatabaseName.isNothing()) { | ||||
| 15174 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 15175 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 15175); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15176 | |||||
| 15177 | // Must set this before dispatching otherwise we will race with the IO | ||||
| 15178 | // thread. | ||||
| 15179 | mState = State::DirectoryWorkOpen; | ||||
| 15180 | |||||
| 15181 | QM_TRY(MOZ_TO_RESULT({auto tryResult1207 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1207)::ok_type >); if ((__builtin_expect(!!(tryResult1207.isErr()), 0))) { auto tryTempError = tryResult1207.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15183, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 15182 | quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1207 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1207)::ok_type >); if ((__builtin_expect(!!(tryResult1207.isErr()), 0))) { auto tryTempError = tryResult1207.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15183, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 15183 | NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1207 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1207)::ok_type >); if ((__builtin_expect(!!(tryResult1207.isErr()), 0))) { auto tryTempError = tryResult1207.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15183, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | ||||
| 15184 | |||||
| 15185 | return NS_OK; | ||||
| 15186 | } | ||||
| 15187 | |||||
| 15188 | mState = State::DirectoryWorkDone; | ||||
| 15189 | MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (Run())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(Run())", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15189); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(Run())" ")"); do { MOZ_CrashSequence(__null, 15189); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 15190 | |||||
| 15191 | return NS_OK; | ||||
| 15192 | } | ||||
| 15193 | |||||
| 15194 | nsresult FactoryOp::DirectoryWorkDone() { | ||||
| 15195 | AssertIsOnOwningThread(); | ||||
| 15196 | MOZ_ASSERT(mState == State::DirectoryWorkDone)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryWorkDone)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DirectoryWorkDone ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DirectoryWorkDone", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkDone" ")"); do { MOZ_CrashSequence(__null, 15196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15197 | MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15197 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 15197); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15198 | MOZ_ASSERT(gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gFactoryOps)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gFactoryOps))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gFactoryOps", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15198); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps" ")"); do { MOZ_CrashSequence(__null, 15198); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15199 | |||||
| 15200 | // See if this FactoryOp needs to wait. | ||||
| 15201 | // FactoryOps are stored in gFactoryOps in the order they are created, | ||||
| 15202 | // and currently there are three different FactoryOps that gets stored | ||||
| 15203 | // i.e. OpenDatabaseOp, DeleteDatabaseOp, and GetDatabasesOp. | ||||
| 15204 | // We iterate over the gFactoryOps list here and put this operation | ||||
| 15205 | // into a waiting state if there is any existing operation that it needs | ||||
| 15206 | // to wait for as done by MustWaitFor(). | ||||
| 15207 | const bool blocked = [&self = *this] { | ||||
| 15208 | bool foundThis = false; | ||||
| 15209 | bool blocked = false; | ||||
| 15210 | |||||
| 15211 | // XXX LinkedList should support reverse iteration via rbegin() and rend(), | ||||
| 15212 | // see bug 1964967. | ||||
| 15213 | for (FactoryOp* existingOp = gFactoryOps->getLast(); existingOp; | ||||
| 15214 | existingOp = existingOp->getPrevious()) { | ||||
| 15215 | if (existingOp == &self) { | ||||
| 15216 | foundThis = true; | ||||
| 15217 | continue; | ||||
| 15218 | } | ||||
| 15219 | |||||
| 15220 | if (foundThis && self.MustWaitFor(*existingOp)) { | ||||
| 15221 | existingOp->AddBlockingOp(self); | ||||
| 15222 | self.AddBlockedOnOp(*existingOp); | ||||
| 15223 | blocked = true; | ||||
| 15224 | } | ||||
| 15225 | } | ||||
| 15226 | |||||
| 15227 | return blocked; | ||||
| 15228 | }() || [&self = *this] { | ||||
| 15229 | QuotaClient* quotaClient = QuotaClient::GetInstance(); | ||||
| 15230 | MOZ_ASSERT(quotaClient)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaClient)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaClient))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaClient", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaClient" ")"); do { MOZ_CrashSequence(__null, 15230); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15231 | |||||
| 15232 | if (RefPtr<Maintenance> currentMaintenance = | ||||
| 15233 | quotaClient->GetCurrentMaintenance()) { | ||||
| 15234 | if (self.mDatabaseName.isSome()) { | ||||
| 15235 | if (RefPtr<DatabaseMaintenance> databaseMaintenance = | ||||
| 15236 | currentMaintenance->GetDatabaseMaintenance( | ||||
| 15237 | self.mDatabaseFilePath.ref())) { | ||||
| 15238 | databaseMaintenance->WaitForCompletion(&self); | ||||
| 15239 | return true; | ||||
| 15240 | } | ||||
| 15241 | } else if (currentMaintenance->HasDatabaseMaintenances()) { | ||||
| 15242 | currentMaintenance->WaitForCompletion(&self); | ||||
| 15243 | return true; | ||||
| 15244 | } | ||||
| 15245 | } | ||||
| 15246 | |||||
| 15247 | return false; | ||||
| 15248 | }(); | ||||
| 15249 | |||||
| 15250 | mState = State::DatabaseOpenPending; | ||||
| 15251 | if (!blocked) { | ||||
| 15252 | QM_TRY(MOZ_TO_RESULT(DatabaseOpen())){auto tryResult1208 = (ToResult(DatabaseOpen())); static_assert (std::is_empty_v<typename decltype(tryResult1208)::ok_type >); if ((__builtin_expect(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOpen())", tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15252, mozilla::dom::quota::Severity::Error); return tryResult1208 .propagateErr(); }}; | ||||
| 15253 | } | ||||
| 15254 | |||||
| 15255 | return NS_OK; | ||||
| 15256 | } | ||||
| 15257 | |||||
| 15258 | nsresult FactoryOp::SendToIOThread() { | ||||
| 15259 | AssertIsOnOwningThread(); | ||||
| 15260 | MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15260); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending" ")"); do { MOZ_CrashSequence(__null, 15260); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15261 | |||||
| 15262 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15262) || | ||||
| 15263 | !OperationMayProceed()) { | ||||
| 15264 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15264, idbInternalErrMsg.get()); } while (0); | ||||
| 15265 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 15266 | } | ||||
| 15267 | |||||
| 15268 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 15269 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15269); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 15269); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15270 | |||||
| 15271 | // Must set this before dispatching otherwise we will race with the IO thread. | ||||
| 15272 | mState = State::DatabaseWorkOpen; | ||||
| 15273 | |||||
| 15274 | QM_TRY(MOZ_TO_RESULT({auto tryResult1209 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1209)::ok_type >); if ((__builtin_expect(!!(tryResult1209.isErr()), 0))) { auto tryTempError = tryResult1209.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15276, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15276, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 15275 | quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1209 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1209)::ok_type >); if ((__builtin_expect(!!(tryResult1209.isErr()), 0))) { auto tryTempError = tryResult1209.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15276, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15276, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 15276 | NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1209 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1209)::ok_type >); if ((__builtin_expect(!!(tryResult1209.isErr()), 0))) { auto tryTempError = tryResult1209.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15276, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15276, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | ||||
| 15277 | |||||
| 15278 | NotifyDatabaseWorkStarted(); | ||||
| 15279 | |||||
| 15280 | return NS_OK; | ||||
| 15281 | } | ||||
| 15282 | |||||
| 15283 | void FactoryOp::WaitForTransactions() { | ||||
| 15284 | AssertIsOnOwningThread(); | ||||
| 15285 | MOZ_ASSERT(mState == State::BeginVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange || mState == State ::WaitingForOtherDatabasesToClose)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15286 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose" ")"); do { MOZ_CrashSequence(__null, 15286); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 15286 | mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange || mState == State ::WaitingForOtherDatabasesToClose)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15286 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose" ")"); do { MOZ_CrashSequence(__null, 15286); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15287 | MOZ_ASSERT(!mDatabaseId.ref().IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseId.ref().IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseId.ref().IsEmpty() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!mDatabaseId.ref().IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15287); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.ref().IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 15287); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15288 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15288 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 15288); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15289 | |||||
| 15290 | mState = State::WaitingForTransactionsToComplete; | ||||
| 15291 | |||||
| 15292 | RefPtr<WaitForTransactionsHelper> helper = | ||||
| 15293 | new WaitForTransactionsHelper(mDatabaseId.ref(), this); | ||||
| 15294 | helper->WaitForTransactions(); | ||||
| 15295 | } | ||||
| 15296 | |||||
| 15297 | void FactoryOp::CleanupMetadata() { | ||||
| 15298 | AssertIsOnOwningThread(); | ||||
| 15299 | |||||
| 15300 | for (const NotNull<RefPtr<FactoryOp>>& blockingOp : mBlocking) { | ||||
| 15301 | blockingOp->MaybeUnblock(*this); | ||||
| 15302 | } | ||||
| 15303 | mBlocking.Clear(); | ||||
| 15304 | |||||
| 15305 | MOZ_ASSERT(gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gFactoryOps)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gFactoryOps))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gFactoryOps", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15305); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps" ")"); do { MOZ_CrashSequence(__null, 15305); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15306 | removeFrom(*gFactoryOps); | ||||
| 15307 | |||||
| 15308 | // We might get here even after QuotaManagerOpen failed, so we need to check | ||||
| 15309 | // if we have a quota manager. | ||||
| 15310 | quota::QuotaManager::SafeMaybeRecordQuotaClientShutdownStep( | ||||
| 15311 | quota::Client::IDB, "An element was removed from gFactoryOps"_ns); | ||||
| 15312 | |||||
| 15313 | // Match the IncreaseBusyCount in AllocPBackgroundIDBFactoryRequestParent(). | ||||
| 15314 | DecreaseBusyCount(); | ||||
| 15315 | } | ||||
| 15316 | |||||
| 15317 | void FactoryOp::FinishSendResults() { | ||||
| 15318 | AssertIsOnOwningThread(); | ||||
| 15319 | MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::SendingResults", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 15319); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15320 | MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFactory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFactory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")" ); do { MOZ_CrashSequence(__null, 15320); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 15321 | |||||
| 15322 | mState = State::Completed; | ||||
| 15323 | |||||
| 15324 | // Make sure to release the factory on this thread. | ||||
| 15325 | mFactory = nullptr; | ||||
| 15326 | } | ||||
| 15327 | |||||
| 15328 | nsresult FactoryOp::SendVersionChangeMessages( | ||||
| 15329 | DatabaseActorInfo* aDatabaseActorInfo, Maybe<Database&> aOpeningDatabase, | ||||
| 15330 | uint64_t aOldVersion, const Maybe<uint64_t>& aNewVersion) { | ||||
| 15331 | AssertIsOnOwningThread(); | ||||
| 15332 | MOZ_ASSERT(aDatabaseActorInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseActorInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseActorInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseActorInfo" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15332 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseActorInfo" ")"); do { MOZ_CrashSequence(__null, 15332); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15333 | MOZ_ASSERT(mState == State::BeginVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::BeginVersionChange", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15333); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange" ")"); do { MOZ_CrashSequence(__null, 15333); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15334 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15334); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 15334); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15335 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15335 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 15335); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15336 | |||||
| 15337 | const uint32_t expectedCount = mDeleting ? 0 : 1; | ||||
| 15338 | const uint32_t liveCount = aDatabaseActorInfo->mLiveDatabases.length(); | ||||
| 15339 | if (liveCount > expectedCount) { | ||||
| 15340 | nsTArray<MaybeBlockedDatabaseInfo> maybeBlockedDatabases; | ||||
| 15341 | for (Database* const database : aDatabaseActorInfo->mLiveDatabases) { | ||||
| 15342 | if ((!aOpeningDatabase || database != &aOpeningDatabase.ref()) && | ||||
| 15343 | !database->IsClosed() && | ||||
| 15344 | NS_WARN_IF(!maybeBlockedDatabases.AppendElement(NS_warn_if_impl(!maybeBlockedDatabases.AppendElement( SafeRefPtr {database, AcquireStrongRefFromRawPtr{}}, fallible), "!maybeBlockedDatabases.AppendElement( SafeRefPtr{database, AcquireStrongRefFromRawPtr{}}, fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15345 ) | ||||
| 15345 | SafeRefPtr{database, AcquireStrongRefFromRawPtr{}}, fallible))NS_warn_if_impl(!maybeBlockedDatabases.AppendElement( SafeRefPtr {database, AcquireStrongRefFromRawPtr{}}, fallible), "!maybeBlockedDatabases.AppendElement( SafeRefPtr{database, AcquireStrongRefFromRawPtr{}}, fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15345 )) { | ||||
| 15346 | return NS_ERROR_OUT_OF_MEMORY; | ||||
| 15347 | } | ||||
| 15348 | } | ||||
| 15349 | |||||
| 15350 | mMaybeBlockedDatabases = std::move(maybeBlockedDatabases); | ||||
| 15351 | } | ||||
| 15352 | |||||
| 15353 | // We don't want to wait forever if we were not able to send the | ||||
| 15354 | // message. | ||||
| 15355 | mMaybeBlockedDatabases.RemoveLastElements( | ||||
| 15356 | mMaybeBlockedDatabases.end() - | ||||
| 15357 | std::remove_if(mMaybeBlockedDatabases.begin(), | ||||
| 15358 | mMaybeBlockedDatabases.end(), | ||||
| 15359 | [aOldVersion, &aNewVersion](auto& maybeBlockedDatabase) { | ||||
| 15360 | return !maybeBlockedDatabase->SendVersionChange( | ||||
| 15361 | aOldVersion, aNewVersion); | ||||
| 15362 | })); | ||||
| 15363 | |||||
| 15364 | return NS_OK; | ||||
| 15365 | } // namespace indexedDB | ||||
| 15366 | |||||
| 15367 | bool FactoryOp::MustWaitFor(const FactoryOp& aExistingOp) { | ||||
| 15368 | AssertIsOnOwningThread(); | ||||
| 15369 | |||||
| 15370 | // If the persistence types don't overlap, the op can proceed. | ||||
| 15371 | if (aExistingOp.mPersistenceType != mPersistenceType) { | ||||
| 15372 | return false; | ||||
| 15373 | } | ||||
| 15374 | |||||
| 15375 | // If the origins don't overlap, the op can proceed. | ||||
| 15376 | if (aExistingOp.mOriginMetadata.mOrigin != mOriginMetadata.mOrigin) { | ||||
| 15377 | return false; | ||||
| 15378 | } | ||||
| 15379 | |||||
| 15380 | // If the database ids don't overlap, the op doesn't need to wait. | ||||
| 15381 | if (aExistingOp.mDatabaseId.isSome() && mDatabaseId.isSome() && | ||||
| 15382 | aExistingOp.mDatabaseId.ref() != mDatabaseId.ref()) { | ||||
| 15383 | return false; | ||||
| 15384 | } | ||||
| 15385 | |||||
| 15386 | // mDatabaseId being nothing means that this is GetDatabasesOp which | ||||
| 15387 | // must be serialized with other GetDatabaseOps. | ||||
| 15388 | return aExistingOp.mDatabaseId.isNothing() == mDatabaseId.isNothing(); | ||||
| 15389 | } | ||||
| 15390 | |||||
| 15391 | // Run() assumes that the caller holds a strong reference to the object that | ||||
| 15392 | // can't be cleared while Run() is being executed. | ||||
| 15393 | // So if you call Run() directly (as opposed to dispatching to an event queue) | ||||
| 15394 | // you need to make sure there's such a reference. | ||||
| 15395 | // See bug 1356824 for more details. | ||||
| 15396 | NS_IMETHODIMPnsresult | ||||
| 15397 | FactoryOp::Run() { | ||||
| 15398 | const auto handleError = [this](const nsresult rv) { | ||||
| 15399 | if (mState != State::SendingResults) { | ||||
| 15400 | SetFailureCodeIfUnset(rv); | ||||
| 15401 | |||||
| 15402 | // Must set mState before dispatching otherwise we will race with the | ||||
| 15403 | // owning thread. | ||||
| 15404 | mState = State::SendingResults; | ||||
| 15405 | |||||
| 15406 | if (IsOnOwningThread()) { | ||||
| 15407 | SendResults(); | ||||
| 15408 | } else { | ||||
| 15409 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget)) ), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15410 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" ")"); do { MOZ_CrashSequence(__null, 15410); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 15410 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget)) ), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15410 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" ")"); do { MOZ_CrashSequence(__null, 15410); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 15411 | } | ||||
| 15412 | } | ||||
| 15413 | }; | ||||
| 15414 | |||||
| 15415 | switch (mState) { | ||||
| 15416 | case State::Initial: | ||||
| 15417 | QM_WARNONLY_TRY(MOZ_TO_RESULT(Open()), handleError){auto tryResult1210 = (ToResult(Open())); static_assert(std:: is_empty_v<typename decltype(tryResult1210)::ok_type>); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { auto tryTempError = tryResult1210.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(Open())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Warning); handleError (tryTempError); }}; | ||||
| 15418 | break; | ||||
| 15419 | |||||
| 15420 | case State::DirectoryWorkOpen: | ||||
| 15421 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDirectoryWork()), handleError){auto tryResult1211 = (ToResult(DoDirectoryWork())); static_assert (std::is_empty_v<typename decltype(tryResult1211)::ok_type >); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { auto tryTempError = tryResult1211.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DoDirectoryWork())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15421 , mozilla::dom::quota::Severity::Warning); handleError(tryTempError ); }}; | ||||
| 15422 | break; | ||||
| 15423 | |||||
| 15424 | case State::DirectoryWorkDone: | ||||
| 15425 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryWorkDone()), handleError){auto tryResult1212 = (ToResult(DirectoryWorkDone())); static_assert (std::is_empty_v<typename decltype(tryResult1212)::ok_type >); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { auto tryTempError = tryResult1212.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryWorkDone())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15425 , mozilla::dom::quota::Severity::Warning); handleError(tryTempError ); }}; | ||||
| 15426 | break; | ||||
| 15427 | |||||
| 15428 | case State::DatabaseOpenPending: | ||||
| 15429 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DatabaseOpen()), handleError){auto tryResult1213 = (ToResult(DatabaseOpen())); static_assert (std::is_empty_v<typename decltype(tryResult1213)::ok_type >); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { auto tryTempError = tryResult1213.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DatabaseOpen())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15429, mozilla::dom::quota::Severity::Warning); handleError (tryTempError); }}; | ||||
| 15430 | break; | ||||
| 15431 | |||||
| 15432 | case State::DatabaseWorkOpen: | ||||
| 15433 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDatabaseWork()), handleError){auto tryResult1214 = (ToResult(DoDatabaseWork())); static_assert (std::is_empty_v<typename decltype(tryResult1214)::ok_type >); if ((__builtin_expect(!!(tryResult1214.isErr()), 0))) { auto tryTempError = tryResult1214.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DoDatabaseWork())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15433 , mozilla::dom::quota::Severity::Warning); handleError(tryTempError ); }}; | ||||
| 15434 | break; | ||||
| 15435 | |||||
| 15436 | case State::BeginVersionChange: | ||||
| 15437 | QM_WARNONLY_TRY(MOZ_TO_RESULT(BeginVersionChange()), handleError){auto tryResult1215 = (ToResult(BeginVersionChange())); static_assert (std::is_empty_v<typename decltype(tryResult1215)::ok_type >); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) { auto tryTempError = tryResult1215.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(BeginVersionChange())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15437 , mozilla::dom::quota::Severity::Warning); handleError(tryTempError ); }}; | ||||
| 15438 | break; | ||||
| 15439 | |||||
| 15440 | case State::WaitingForTransactionsToComplete: | ||||
| 15441 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DispatchToWorkThread()), handleError){auto tryResult1216 = (ToResult(DispatchToWorkThread())); static_assert (std::is_empty_v<typename decltype(tryResult1216)::ok_type >); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { auto tryTempError = tryResult1216.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DispatchToWorkThread())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15441 , mozilla::dom::quota::Severity::Warning); handleError(tryTempError ); }}; | ||||
| 15442 | break; | ||||
| 15443 | |||||
| 15444 | case State::DatabaseWorkVersionUpdate: | ||||
| 15445 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DoVersionUpdate()), handleError){auto tryResult1217 = (ToResult(DoVersionUpdate())); static_assert (std::is_empty_v<typename decltype(tryResult1217)::ok_type >); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { auto tryTempError = tryResult1217.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DoVersionUpdate())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15445 , mozilla::dom::quota::Severity::Warning); handleError(tryTempError ); }}; | ||||
| 15446 | break; | ||||
| 15447 | |||||
| 15448 | case State::SendingResults: | ||||
| 15449 | SendResults(); | ||||
| 15450 | break; | ||||
| 15451 | |||||
| 15452 | default: | ||||
| 15453 | MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15453); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")" ); do { MOZ_CrashSequence(__null, 15453); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 15454 | } | ||||
| 15455 | |||||
| 15456 | return NS_OK; | ||||
| 15457 | } | ||||
| 15458 | |||||
| 15459 | void FactoryOp::DirectoryLockAcquired(ClientDirectoryLockHandle aLockHandle) { | ||||
| 15460 | AssertIsOnOwningThread(); | ||||
| 15461 | MOZ_ASSERT(aLockHandle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aLockHandle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aLockHandle))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aLockHandle", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15461); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLockHandle" ")"); do { MOZ_CrashSequence(__null, 15461); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15462 | MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryOpenPending)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mState == State::DirectoryOpenPending))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15462 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { MOZ_CrashSequence(__null, 15462); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15463 | MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15463 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 15463); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15464 | |||||
| 15465 | mDirectoryLockHandle = std::move(aLockHandle); | ||||
| 15466 | |||||
| 15467 | MOZ_ASSERT(mDirectoryLockHandle->Id() >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLockHandle->Id() >= 0)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mDirectoryLockHandle->Id() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle->Id() >= 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15467 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle->Id() >= 0" ")"); do { MOZ_CrashSequence(__null, 15467); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15468 | mDirectoryLockId = mDirectoryLockHandle->Id(); | ||||
| 15469 | |||||
| 15470 | auto cleanupAndReturn = [self = RefPtr(this)](const nsresult rv) { | ||||
| 15471 | self->SetFailureCodeIfUnset(rv); | ||||
| 15472 | |||||
| 15473 | // The caller holds a strong reference to us, no need for a self reference | ||||
| 15474 | // before calling Run(). | ||||
| 15475 | |||||
| 15476 | self->mState = State::SendingResults; | ||||
| 15477 | MOZ_ALWAYS_SUCCEEDS(self->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (self->Run())), 1)))), 1))) { } else { do { do { } while ( false); MOZ_ReportCrash("" "NS_SUCCEEDED(self->Run())", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15477); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(self->Run())" ")"); do { MOZ_CrashSequence(__null, 15477); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 15478 | }; | ||||
| 15479 | |||||
| 15480 | if (mDirectoryLockHandle->Invalidated()) { | ||||
| 15481 | return cleanupAndReturn(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); | ||||
| 15482 | } | ||||
| 15483 | |||||
| 15484 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryOpen()), cleanupAndReturn){auto tryResult1218 = (ToResult(DirectoryOpen())); static_assert (std::is_empty_v<typename decltype(tryResult1218)::ok_type >); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { auto tryTempError = tryResult1218.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryOpen())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15484, mozilla::dom::quota::Severity::Warning); cleanupAndReturn(tryTempError ); }}; | ||||
| 15485 | } | ||||
| 15486 | |||||
| 15487 | void FactoryOp::DirectoryLockFailed() { | ||||
| 15488 | AssertIsOnOwningThread(); | ||||
| 15489 | MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryOpenPending)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mState == State::DirectoryOpenPending))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15489 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { MOZ_CrashSequence(__null, 15489); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15490 | MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15490 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 15490); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15491 | |||||
| 15492 | if (!HasFailed()) { | ||||
| 15493 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15493, idbInternalErrMsg.get()); } while (0); | ||||
| 15494 | SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | ||||
| 15495 | } | ||||
| 15496 | |||||
| 15497 | // The caller holds a strong reference to us, no need for a self reference | ||||
| 15498 | // before calling Run(). | ||||
| 15499 | |||||
| 15500 | mState = State::SendingResults; | ||||
| 15501 | MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (Run())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(Run())", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15501); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(Run())" ")"); do { MOZ_CrashSequence(__null, 15501); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 15502 | } | ||||
| 15503 | |||||
| 15504 | nsresult FactoryRequestOp::DoDirectoryWork() { | ||||
| 15505 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15505 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 15505); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 15506 | } | ||||
| 15507 | |||||
| 15508 | void FactoryRequestOp::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 15509 | AssertIsOnBackgroundThread(); | ||||
| 15510 | |||||
| 15511 | NoteActorDestroyed(); | ||||
| 15512 | } | ||||
| 15513 | |||||
| 15514 | OpenDatabaseOp::OpenDatabaseOp(SafeRefPtr<Factory> aFactory, | ||||
| 15515 | const Maybe<ContentParentId>& aContentParentId, | ||||
| 15516 | const CommonFactoryRequestParams& aParams) | ||||
| 15517 | : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams, | ||||
| 15518 | /* aDeleting */ false), | ||||
| 15519 | mMetadata(MakeSafeRefPtr<FullDatabaseMetadata>(aParams.metadata())), | ||||
| 15520 | mRequestedVersion(aParams.metadata().version()), | ||||
| 15521 | mVersionChangeOp(nullptr), | ||||
| 15522 | mTelemetryId(0) {} | ||||
| 15523 | |||||
| 15524 | void OpenDatabaseOp::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 15525 | AssertIsOnOwningThread(); | ||||
| 15526 | |||||
| 15527 | FactoryRequestOp::ActorDestroy(aWhy); | ||||
| 15528 | |||||
| 15529 | if (mVersionChangeOp) { | ||||
| 15530 | mVersionChangeOp->NoteActorDestroyed(); | ||||
| 15531 | } | ||||
| 15532 | } | ||||
| 15533 | |||||
| 15534 | nsresult OpenDatabaseOp::DatabaseOpen() { | ||||
| 15535 | AssertIsOnOwningThread(); | ||||
| 15536 | MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15536); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending" ")"); do { MOZ_CrashSequence(__null, 15536); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15537 | |||||
| 15538 | nsresult rv = SendToIOThread(); | ||||
| 15539 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15539)) { | ||||
| 15540 | return rv; | ||||
| 15541 | } | ||||
| 15542 | |||||
| 15543 | return NS_OK; | ||||
| 15544 | } | ||||
| 15545 | |||||
| 15546 | nsresult OpenDatabaseOp::DoDatabaseWork() { | ||||
| 15547 | AssertIsOnIOThread(); | ||||
| 15548 | MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15548); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { MOZ_CrashSequence(__null, 15548); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15549 | |||||
| 15550 | AUTO_PROFILER_LABEL("OpenDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject15550( "OpenDatabaseOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 15551 | |||||
| 15552 | QM_TRY(OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread()),{auto tryResult1219 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread ())); static_assert(std::is_empty_v<typename decltype(tryResult1219 )::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr ()), 0))) { auto tryTempError = tryResult1219.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15553, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15553, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 15553 | NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1219 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread ())); static_assert(std::is_empty_v<typename decltype(tryResult1219 )::ok_type>); if ((__builtin_expect(!!(tryResult1219.isErr ()), 0))) { auto tryTempError = tryResult1219.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15553, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15553, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | ||||
| 15554 | |||||
| 15555 | if (!OperationMayProceed()) { | ||||
| 15556 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15556, idbInternalErrMsg.get()); } while (0); | ||||
| 15557 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 15558 | } | ||||
| 15559 | |||||
| 15560 | const nsAString& databaseName = mCommonParams.metadata().name(); | ||||
| 15561 | const PersistenceType persistenceType = | ||||
| 15562 | mCommonParams.metadata().persistenceType(); | ||||
| 15563 | |||||
| 15564 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 15565 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15565); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 15565); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15566 | |||||
| 15567 | QM_TRY_INSPECT(auto tryResult1222 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220 ;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221 ;}; }())); if ((__builtin_expect(!!(tryResult1222.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221;}; }())" , tryResult1222.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult1222 .propagateErr(); } const auto& dbDirectory = tryResult1222 .inspect(); | ||||
| 15568 | const auto& dbDirectory,auto tryResult1222 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220 ;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221 ;}; }())); if ((__builtin_expect(!!(tryResult1222.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221;}; }())" , tryResult1222.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult1222 .propagateErr(); } const auto& dbDirectory = tryResult1222 .inspect(); | ||||
| 15569 | ([persistenceType, "aManager,auto tryResult1222 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220 ;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221 ;}; }())); if ((__builtin_expect(!!(tryResult1222.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221;}; }())" , tryResult1222.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult1222 .propagateErr(); } const auto& dbDirectory = tryResult1222 .inspect(); | ||||
| 15570 | this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> {auto tryResult1222 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220 ;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221 ;}; }())); if ((__builtin_expect(!!(tryResult1222.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221;}; }())" , tryResult1222.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult1222 .propagateErr(); } const auto& dbDirectory = tryResult1222 .inspect(); | ||||
| 15571 | if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult1222 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220 ;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221 ;}; }())); if ((__builtin_expect(!!(tryResult1222.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221;}; }())" , tryResult1222.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult1222 .propagateErr(); } const auto& dbDirectory = tryResult1222 .inspect(); | ||||
| 15572 | QM_TRY_RETURN(quotaManager->GetOriginDirectory(mOriginMetadata));auto tryResult1222 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220 ;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221 ;}; }())); if ((__builtin_expect(!!(tryResult1222.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221;}; }())" , tryResult1222.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult1222 .propagateErr(); } const auto& dbDirectory = tryResult1222 .inspect(); | ||||
| 15573 | }auto tryResult1222 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220 ;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221 ;}; }())); if ((__builtin_expect(!!(tryResult1222.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221;}; }())" , tryResult1222.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult1222 .propagateErr(); } const auto& dbDirectory = tryResult1222 .inspect(); | ||||
| 15574 | |||||
| 15575 | QM_TRY_RETURN(auto tryResult1222 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220 ;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221 ;}; }())); if ((__builtin_expect(!!(tryResult1222.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221;}; }())" , tryResult1222.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult1222 .propagateErr(); } const auto& dbDirectory = tryResult1222 .inspect(); | ||||
| 15576 | quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata));auto tryResult1222 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220 ;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221 ;}; }())); if ((__builtin_expect(!!(tryResult1222.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221;}; }())" , tryResult1222.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult1222 .propagateErr(); } const auto& dbDirectory = tryResult1222 .inspect(); | ||||
| 15577 | }()))auto tryResult1222 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220 ;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221 ;}; }())); if ((__builtin_expect(!!(tryResult1222.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1220 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15572, mozilla::dom::quota::Severity::Error); } return tryResult1220;}; } {auto tryResult1221 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); } return tryResult1221;}; }())" , tryResult1222.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult1222 .propagateErr(); } const auto& dbDirectory = tryResult1222 .inspect();; | ||||
| 15578 | |||||
| 15579 | QM_TRY(MOZ_TO_RESULT({auto tryResult1223 = (ToResult(dbDirectory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1223 )::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1223.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15580, mozilla::dom::quota::Severity::Error); return tryResult1223 .propagateErr(); }} | ||||
| 15580 | dbDirectory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1223 = (ToResult(dbDirectory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1223 )::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1223.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15580, mozilla::dom::quota::Severity::Error); return tryResult1223 .propagateErr(); }}; | ||||
| 15581 | |||||
| 15582 | { | ||||
| 15583 | QM_TRY_INSPECT(const bool& exists,auto tryResult1224 = (::mozilla::ToResultInvokeMember( (dbDirectory ), &::mozilla::detail::DerefedType<decltype(dbDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1224.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists )" , tryResult1224.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15584, mozilla::dom::quota::Severity::Error); return tryResult1224 .propagateErr(); } const bool& exists = tryResult1224.inspect (); | ||||
| 15584 | MOZ_TO_RESULT_INVOKE_MEMBER(dbDirectory, Exists))auto tryResult1224 = (::mozilla::ToResultInvokeMember( (dbDirectory ), &::mozilla::detail::DerefedType<decltype(dbDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1224.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists )" , tryResult1224.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15584, mozilla::dom::quota::Severity::Error); return tryResult1224 .propagateErr(); } const bool& exists = tryResult1224.inspect ();; | ||||
| 15585 | |||||
| 15586 | if (!exists) { | ||||
| 15587 | QM_TRY(MOZ_TO_RESULT(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))){auto tryResult1225 = (ToResult(dbDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect (!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15587, mozilla::dom::quota::Severity::Error); return tryResult1225 .propagateErr(); }}; | ||||
| 15588 | } | ||||
| 15589 | #ifdef DEBUG1 | ||||
| 15590 | else { | ||||
| 15591 | bool isDirectory; | ||||
| 15592 | MOZ_ASSERT(NS_SUCCEEDED(dbDirectory->IsDirectory(&isDirectory)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory ->IsDirectory(&isDirectory))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory) )), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15592 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 15592); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15593 | MOZ_ASSERT(isDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(isDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15593); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 15593); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15594 | } | ||||
| 15595 | #endif | ||||
| 15596 | } | ||||
| 15597 | |||||
| 15598 | const auto databaseFilenameBase = | ||||
| 15599 | GetDatabaseFilenameBase(databaseName, mOriginMetadata.mIsPrivate); | ||||
| 15600 | |||||
| 15601 | QM_TRY_INSPECT(const auto& markerFile,auto tryResult1226 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)); if ((__builtin_expect(!!(tryResult1226 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)" , tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15603, mozilla::dom::quota::Severity::Error); return tryResult1226 .propagateErr(); } const auto& markerFile = tryResult1226 .inspect(); | ||||
| 15602 | CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix +auto tryResult1226 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)); if ((__builtin_expect(!!(tryResult1226 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)" , tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15603, mozilla::dom::quota::Severity::Error); return tryResult1226 .propagateErr(); } const auto& markerFile = tryResult1226 .inspect(); | ||||
| 15603 | databaseFilenameBase))auto tryResult1226 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)); if ((__builtin_expect(!!(tryResult1226 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)" , tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15603, mozilla::dom::quota::Severity::Error); return tryResult1226 .propagateErr(); } const auto& markerFile = tryResult1226 .inspect();; | ||||
| 15604 | |||||
| 15605 | QM_TRY_INSPECT(const bool& exists,auto tryResult1227 = (::mozilla::ToResultInvokeMember( (markerFile ), &::mozilla::detail::DerefedType<decltype(markerFile )>::Exists )); if ((__builtin_expect(!!(tryResult1227.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists )" , tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15606, mozilla::dom::quota::Severity::Error); return tryResult1227 .propagateErr(); } const bool& exists = tryResult1227.inspect (); | ||||
| 15606 | MOZ_TO_RESULT_INVOKE_MEMBER(markerFile, Exists))auto tryResult1227 = (::mozilla::ToResultInvokeMember( (markerFile ), &::mozilla::detail::DerefedType<decltype(markerFile )>::Exists )); if ((__builtin_expect(!!(tryResult1227.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists )" , tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15606, mozilla::dom::quota::Severity::Error); return tryResult1227 .propagateErr(); } const bool& exists = tryResult1227.inspect ();; | ||||
| 15607 | |||||
| 15608 | if (exists) { | ||||
| 15609 | // Delete the database and directroy since they should be deleted in | ||||
| 15610 | // previous operation. | ||||
| 15611 | // Note: only update usage to the QuotaManager when mEnforcingQuota == true | ||||
| 15612 | QM_TRY(MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory({auto tryResult1228 = (ToResult(RemoveDatabaseFilesAndDirectory ( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))) ; static_assert(std::is_empty_v<typename decltype(tryResult1228 )::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))" , tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15615, mozilla::dom::quota::Severity::Error); return tryResult1228 .propagateErr(); }} | ||||
| 15613 | *dbDirectory, databaseFilenameBase,{auto tryResult1228 = (ToResult(RemoveDatabaseFilesAndDirectory ( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))) ; static_assert(std::is_empty_v<typename decltype(tryResult1228 )::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))" , tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15615, mozilla::dom::quota::Severity::Error); return tryResult1228 .propagateErr(); }} | ||||
| 15614 | mEnforcingQuota ? quotaManager : nullptr, persistenceType,{auto tryResult1228 = (ToResult(RemoveDatabaseFilesAndDirectory ( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))) ; static_assert(std::is_empty_v<typename decltype(tryResult1228 )::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))" , tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15615, mozilla::dom::quota::Severity::Error); return tryResult1228 .propagateErr(); }} | ||||
| 15615 | mOriginMetadata, databaseName))){auto tryResult1228 = (ToResult(RemoveDatabaseFilesAndDirectory ( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))) ; static_assert(std::is_empty_v<typename decltype(tryResult1228 )::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))" , tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15615, mozilla::dom::quota::Severity::Error); return tryResult1228 .propagateErr(); }}; | ||||
| 15616 | } | ||||
| 15617 | |||||
| 15618 | QM_TRY_INSPECT(auto tryResult1229 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1229.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)" , tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15620, mozilla::dom::quota::Severity::Error); return tryResult1229 .propagateErr(); } const auto& dbFile = tryResult1229.inspect (); | ||||
| 15619 | const auto& dbFile,auto tryResult1229 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1229.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)" , tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15620, mozilla::dom::quota::Severity::Error); return tryResult1229 .propagateErr(); } const auto& dbFile = tryResult1229.inspect (); | ||||
| 15620 | CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix))auto tryResult1229 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1229.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)" , tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15620, mozilla::dom::quota::Severity::Error); return tryResult1229 .propagateErr(); } const auto& dbFile = tryResult1229.inspect ();; | ||||
| 15621 | |||||
| 15622 | mTelemetryId = TelemetryIdForFile(dbFile); | ||||
| 15623 | |||||
| 15624 | #ifdef DEBUG1 | ||||
| 15625 | { | ||||
| 15626 | QM_TRY_INSPECT(auto tryResult1230 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!! (tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult1230 .propagateErr(); } const auto& databaseFilePath = tryResult1230 .inspect(); | ||||
| 15627 | const auto& databaseFilePath,auto tryResult1230 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!! (tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult1230 .propagateErr(); } const auto& databaseFilePath = tryResult1230 .inspect(); | ||||
| 15628 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult1230 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!! (tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult1230 .propagateErr(); } const auto& databaseFilePath = tryResult1230 .inspect();; | ||||
| 15629 | |||||
| 15630 | MOZ_ASSERT(databaseFilePath == mDatabaseFilePath.ref())do { static_assert( mozilla::detail::AssertionConditionType< decltype(databaseFilePath == mDatabaseFilePath.ref())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(databaseFilePath == mDatabaseFilePath.ref()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("databaseFilePath == mDatabaseFilePath.ref()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15630 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()" ")"); do { MOZ_CrashSequence(__null, 15630); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15631 | } | ||||
| 15632 | #endif | ||||
| 15633 | |||||
| 15634 | QM_TRY_INSPECT(auto tryResult1231 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15637, mozilla::dom::quota::Severity::Error); return tryResult1231 .propagateErr(); } const auto& fmDirectory = tryResult1231 .inspect(); | ||||
| 15635 | const auto& fmDirectory,auto tryResult1231 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15637, mozilla::dom::quota::Severity::Error); return tryResult1231 .propagateErr(); } const auto& fmDirectory = tryResult1231 .inspect(); | ||||
| 15636 | CloneFileAndAppend(*dbDirectory, databaseFilenameBase +auto tryResult1231 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15637, mozilla::dom::quota::Severity::Error); return tryResult1231 .propagateErr(); } const auto& fmDirectory = tryResult1231 .inspect(); | ||||
| 15637 | kFileManagerDirectoryNameSuffix))auto tryResult1231 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15637, mozilla::dom::quota::Severity::Error); return tryResult1231 .propagateErr(); } const auto& fmDirectory = tryResult1231 .inspect();; | ||||
| 15638 | |||||
| 15639 | IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get(); | ||||
| 15640 | MOZ_ASSERT(idm)do { static_assert( mozilla::detail::AssertionConditionType< decltype(idm)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(idm))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("idm", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15640); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")"); do { MOZ_CrashSequence(__null, 15640); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 15641 | |||||
| 15642 | SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager( | ||||
| 15643 | persistenceType, mOriginMetadata.mOrigin, databaseName); | ||||
| 15644 | |||||
| 15645 | if (!fileManager) { | ||||
| 15646 | fileManager = MakeSafeRefPtr<DatabaseFileManager>( | ||||
| 15647 | persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(), | ||||
| 15648 | mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing); | ||||
| 15649 | } | ||||
| 15650 | |||||
| 15651 | Maybe<const CipherKey> maybeKey = | ||||
| 15652 | mInPrivateBrowsing | ||||
| 15653 | ? Some(fileManager->MutableCipherKeyManagerRef().Ensure()) | ||||
| 15654 | : Nothing(); | ||||
| 15655 | |||||
| 15656 | 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()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15656 ); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()" ")"); do { MOZ_CrashSequence(__null, 15656); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15657 | |||||
| 15658 | QM_TRY_UNWRAP(auto tryResult1232 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult1232.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult1232.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15662, mozilla::dom::quota::Severity::Error); return tryResult1232 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1232.unwrap(); | ||||
| 15659 | NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1232 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult1232.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult1232.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15662, mozilla::dom::quota::Severity::Error); return tryResult1232 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1232.unwrap(); | ||||
| 15660 | CreateStorageConnection(*dbFile, *fmDirectory, databaseName,auto tryResult1232 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult1232.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult1232.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15662, mozilla::dom::quota::Severity::Error); return tryResult1232 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1232.unwrap(); | ||||
| 15661 | mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult1232 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult1232.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult1232.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15662, mozilla::dom::quota::Severity::Error); return tryResult1232 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1232.unwrap(); | ||||
| 15662 | mTelemetryId, maybeKey))auto tryResult1232 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult1232.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult1232.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15662, mozilla::dom::quota::Severity::Error); return tryResult1232 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1232.unwrap();; | ||||
| 15663 | |||||
| 15664 | AutoSetProgressHandler asph; | ||||
| 15665 | QM_TRY(MOZ_TO_RESULT(asph.Register(*connection, this))){auto tryResult1233 = (ToResult(asph.Register(*connection, this ))); static_assert(std::is_empty_v<typename decltype(tryResult1233 )::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(asph.Register(*connection, this))" , tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15665, mozilla::dom::quota::Severity::Error); return tryResult1233 .propagateErr(); }}; | ||||
| 15666 | |||||
| 15667 | QM_TRY(MOZ_TO_RESULT(LoadDatabaseInformation(*connection))){auto tryResult1234 = (ToResult(LoadDatabaseInformation(*connection ))); static_assert(std::is_empty_v<typename decltype(tryResult1234 )::ok_type>); if ((__builtin_expect(!!(tryResult1234.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(LoadDatabaseInformation(*connection))" , tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15667, mozilla::dom::quota::Severity::Error); return tryResult1234 .propagateErr(); }}; | ||||
| 15668 | |||||
| 15669 | MOZ_ASSERT(mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata->mNextObjectStoreId > mMetadata-> mObjectStores.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15669 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count()" ")"); do { MOZ_CrashSequence(__null, 15669); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15670 | MOZ_ASSERT(mMetadata->mNextIndexId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata->mNextIndexId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata->mNextIndexId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMetadata->mNextIndexId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15670); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextIndexId > 0" ")"); do { MOZ_CrashSequence(__null, 15670); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15671 | |||||
| 15672 | // See if we need to do a versionchange transaction | ||||
| 15673 | |||||
| 15674 | // Optional version semantics. | ||||
| 15675 | if (!mRequestedVersion) { | ||||
| 15676 | // If the requested version was not specified and the database was created, | ||||
| 15677 | // treat it as if version 1 were requested. | ||||
| 15678 | // Otherwise, treat it as if the current version were requested. | ||||
| 15679 | mRequestedVersion = mMetadata->mCommonMetadata.version() == 0 | ||||
| 15680 | ? 1 | ||||
| 15681 | : mMetadata->mCommonMetadata.version(); | ||||
| 15682 | } | ||||
| 15683 | |||||
| 15684 | QM_TRY(OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion),{auto tryResult1235 = (OkIf(mMetadata->mCommonMetadata.version () <= mRequestedVersion)); static_assert(std::is_empty_v< typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect (!!(tryResult1235.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15685, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_VERSION_ERR); }} | ||||
| 15685 | NS_ERROR_DOM_INDEXEDDB_VERSION_ERR){auto tryResult1235 = (OkIf(mMetadata->mCommonMetadata.version () <= mRequestedVersion)); static_assert(std::is_empty_v< typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect (!!(tryResult1235.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15685, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_VERSION_ERR); }}; | ||||
| 15686 | |||||
| 15687 | if (!fileManager->Initialized()) { | ||||
| 15688 | QM_TRY(MOZ_TO_RESULT(fileManager->Init({auto tryResult1236 = (ToResult(fileManager->Init( fmDirectory , mMetadata->mCommonMetadata.version(), *connection))); static_assert (std::is_empty_v<typename decltype(tryResult1236)::ok_type >); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(fileManager->Init( fmDirectory, mMetadata->mCommonMetadata.version(), *connection))" , tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15689, mozilla::dom::quota::Severity::Error); return tryResult1236 .propagateErr(); }} | ||||
| 15689 | fmDirectory, mMetadata->mCommonMetadata.version(), *connection))){auto tryResult1236 = (ToResult(fileManager->Init( fmDirectory , mMetadata->mCommonMetadata.version(), *connection))); static_assert (std::is_empty_v<typename decltype(tryResult1236)::ok_type >); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(fileManager->Init( fmDirectory, mMetadata->mCommonMetadata.version(), *connection))" , tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15689, mozilla::dom::quota::Severity::Error); return tryResult1236 .propagateErr(); }}; | ||||
| 15690 | |||||
| 15691 | idm->AddFileManager(fileManager.clonePtr()); | ||||
| 15692 | } | ||||
| 15693 | |||||
| 15694 | mFileManager = std::move(fileManager); | ||||
| 15695 | |||||
| 15696 | // Must close connection before dispatching otherwise we might race with the | ||||
| 15697 | // connection thread which needs to open the same database. | ||||
| 15698 | asph.Unregister(); | ||||
| 15699 | |||||
| 15700 | MOZ_ALWAYS_SUCCEEDS(connection->Close())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->Close())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(connection->Close())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15700 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->Close())" ")"); do { MOZ_CrashSequence(__null, 15700); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 15701 | |||||
| 15702 | SleepIfEnabled( | ||||
| 15703 | StaticPrefs::dom_indexedDB_databaseInitialization_pauseOnIOThreadMs()); | ||||
| 15704 | |||||
| 15705 | // Must set mState before dispatching otherwise we will race with the owning | ||||
| 15706 | // thread. | ||||
| 15707 | mState = (mMetadata->mCommonMetadata.version() == mRequestedVersion) | ||||
| 15708 | ? State::SendingResults | ||||
| 15709 | : State::BeginVersionChange; | ||||
| 15710 | |||||
| 15711 | QM_TRY(MOZ_TO_RESULT({auto tryResult1237 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect (!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15712, mozilla::dom::quota::Severity::Error); return tryResult1237 .propagateErr(); }} | ||||
| 15712 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1237 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect (!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15712, mozilla::dom::quota::Severity::Error); return tryResult1237 .propagateErr(); }}; | ||||
| 15713 | |||||
| 15714 | return NS_OK; | ||||
| 15715 | } | ||||
| 15716 | |||||
| 15717 | nsresult OpenDatabaseOp::LoadDatabaseInformation( | ||||
| 15718 | mozIStorageConnection& aConnection) { | ||||
| 15719 | AssertIsOnIOThread(); | ||||
| 15720 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15720); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"); do { MOZ_CrashSequence(__null, 15720); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15721 | |||||
| 15722 | { | ||||
| 15723 | // Load version information. | ||||
| 15724 | QM_TRY_INSPECT(auto tryResult1238 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15728, mozilla::dom::quota::Severity::Error); return tryResult1238 .propagateErr(); } const auto& stmt = tryResult1238.inspect (); | ||||
| 15725 | const auto& stmt,auto tryResult1238 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15728, mozilla::dom::quota::Severity::Error); return tryResult1238 .propagateErr(); } const auto& stmt = tryResult1238.inspect (); | ||||
| 15726 | CreateAndExecuteSingleStepStatement<auto tryResult1238 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15728, mozilla::dom::quota::Severity::Error); return tryResult1238 .propagateErr(); } const auto& stmt = tryResult1238.inspect (); | ||||
| 15727 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult1238 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15728, mozilla::dom::quota::Severity::Error); return tryResult1238 .propagateErr(); } const auto& stmt = tryResult1238.inspect (); | ||||
| 15728 | aConnection, "SELECT name, origin, version FROM database"_ns))auto tryResult1238 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15728, mozilla::dom::quota::Severity::Error); return tryResult1238 .propagateErr(); } const auto& stmt = tryResult1238.inspect ();; | ||||
| 15729 | |||||
| 15730 | QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult1239 = (OkIf(stmt)); static_assert(std::is_empty_v <typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect (!!(tryResult1239.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15730, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(stmt)", tryTempError , NS_ERROR_FILE_CORRUPTED); }}; | ||||
| 15731 | |||||
| 15732 | QM_TRY_INSPECT(const auto& databaseName, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1240 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15733, mozilla::dom::quota::Severity::Error); return tryResult1240 .propagateErr(); } const auto& databaseName = tryResult1240 .inspect(); | ||||
| 15733 | nsString, stmt, GetString, 0))auto tryResult1240 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15733, mozilla::dom::quota::Severity::Error); return tryResult1240 .propagateErr(); } const auto& databaseName = tryResult1240 .inspect();; | ||||
| 15734 | |||||
| 15735 | QM_TRY(OkIf(mCommonParams.metadata().name() == databaseName),{auto tryResult1241 = (OkIf(mCommonParams.metadata().name() == databaseName)); static_assert(std::is_empty_v<typename decltype (tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1241 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mCommonParams.metadata().name() == databaseName)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15736, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCommonParams.metadata().name() == databaseName)" , tryTempError, NS_ERROR_FILE_CORRUPTED); }} | ||||
| 15736 | NS_ERROR_FILE_CORRUPTED){auto tryResult1241 = (OkIf(mCommonParams.metadata().name() == databaseName)); static_assert(std::is_empty_v<typename decltype (tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1241 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mCommonParams.metadata().name() == databaseName)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15736, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCommonParams.metadata().name() == databaseName)" , tryTempError, NS_ERROR_FILE_CORRUPTED); }}; | ||||
| 15737 | |||||
| 15738 | QM_TRY_INSPECT(const auto& origin, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1242 = (::mozilla::ToResultInvoke< nsCString >( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect (!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)" , tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15739, mozilla::dom::quota::Severity::Error); return tryResult1242 .propagateErr(); } const auto& origin = tryResult1242.inspect (); | ||||
| 15739 | nsCString, stmt, GetUTF8String, 1))auto tryResult1242 = (::mozilla::ToResultInvoke< nsCString >( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect (!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)" , tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15739, mozilla::dom::quota::Severity::Error); return tryResult1242 .propagateErr(); } const auto& origin = tryResult1242.inspect ();; | ||||
| 15740 | |||||
| 15741 | // We can't just compare these strings directly. See bug 1339081 comment 69. | ||||
| 15742 | QM_TRY(OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin,{auto tryResult1243 = (OkIf(QuotaManager::AreOriginsEqualOnDisk (mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v <typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect (!!(tryResult1243.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15744, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, NS_ERROR_FILE_CORRUPTED); }} | ||||
| 15743 | origin)),{auto tryResult1243 = (OkIf(QuotaManager::AreOriginsEqualOnDisk (mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v <typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect (!!(tryResult1243.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15744, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, NS_ERROR_FILE_CORRUPTED); }} | ||||
| 15744 | NS_ERROR_FILE_CORRUPTED){auto tryResult1243 = (OkIf(QuotaManager::AreOriginsEqualOnDisk (mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v <typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect (!!(tryResult1243.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15744, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, NS_ERROR_FILE_CORRUPTED); }}; | ||||
| 15745 | |||||
| 15746 | QM_TRY_INSPECT(const int64_t& version,auto tryResult1244 = (::mozilla::ToResultInvokeMember( (stmt) , &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 2)); if ((__builtin_expect(!!(tryResult1244.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 2)" , tryResult1244.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15747, mozilla::dom::quota::Severity::Error); return tryResult1244 .propagateErr(); } const int64_t& version = tryResult1244 .inspect(); | ||||
| 15747 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 2))auto tryResult1244 = (::mozilla::ToResultInvokeMember( (stmt) , &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 2)); if ((__builtin_expect(!!(tryResult1244.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 2)" , tryResult1244.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15747, mozilla::dom::quota::Severity::Error); return tryResult1244 .propagateErr(); } const int64_t& version = tryResult1244 .inspect();; | ||||
| 15748 | |||||
| 15749 | mMetadata->mCommonMetadata.version() = uint64_t(version); | ||||
| 15750 | } | ||||
| 15751 | |||||
| 15752 | ObjectStoreTable& objectStores = mMetadata->mObjectStores; | ||||
| 15753 | |||||
| 15754 | QM_TRY_INSPECT(auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15755 | const auto& lastObjectStoreId,auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15756 | ([&aConnection,auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15757 | &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15758 | // Load object store names and ids.auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15759 | QM_TRY_INSPECT(auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15760 | const auto& stmt,auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15761 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15762 | nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15763 | "SELECT id, auto_increment, name, key_path "auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15764 | "FROM object_store"_ns));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15765 | |||||
| 15766 | IndexOrObjectStoreId lastObjectStoreId = 0;auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15767 | |||||
| 15768 | QM_TRY(CollectWhileHasResult(auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15769 | *stmt,auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15770 | [&lastObjectStoreId, &objectStores,auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15771 | usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15772 | usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15773 | auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15774 | QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15775 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 0));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15776 | |||||
| 15777 | if (!usedIds) {auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15778 | usedIds.emplace();auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15779 | }auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15780 | |||||
| 15781 | QM_TRY(OkIf(objectStoreId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15782 | QM_TRY(OkIf(!usedIds.ref().Contains(objectStoreId)),auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15783 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15784 | |||||
| 15785 | QM_TRY(OkIf(usedIds.ref().Insert(objectStoreId, fallible)),auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15786 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15787 | |||||
| 15788 | nsString name;auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15789 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15790 | |||||
| 15791 | if (!usedNames) {auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15792 | usedNames.emplace();auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15793 | }auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15794 | |||||
| 15795 | QM_TRY(OkIf(!usedNames.ref().Contains(name)),auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15796 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15797 | |||||
| 15798 | QM_TRY(OkIf(usedNames.ref().Insert(name, fallible)),auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15799 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15800 | |||||
| 15801 | ObjectStoreMetadata commonMetadata;auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15802 | commonMetadata.id() = objectStoreId;auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15803 | commonMetadata.name() = std::move(name);auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15804 | |||||
| 15805 | QM_TRY_INSPECT(auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15806 | const int32_t& columnType,auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15807 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetTypeOfIndex, 3));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15808 | |||||
| 15809 | if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) {auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15810 | commonMetadata.keyPath() = KeyPath(0);auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15811 | } else {auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15812 | MOZ_ASSERT(columnType == mozIStorageStatement::VALUE_TYPE_TEXT);auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15813 | |||||
| 15814 | nsString keyPathSerialization;auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15815 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15816 | |||||
| 15817 | commonMetadata.keyPath() =auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15818 | KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15819 | QM_TRY(OkIf(commonMetadata.keyPath().IsValid()),auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15820 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15821 | }auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15822 | |||||
| 15823 | QM_TRY_INSPECT(const int64_t& nextAutoIncrementId,auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15824 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15825 | |||||
| 15826 | commonMetadata.autoIncrement() = !!nextAutoIncrementId;auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15827 | |||||
| 15828 | QM_TRY(OkIf(objectStores.InsertOrUpdate(auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15829 | objectStoreId,auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15830 | MakeSafeRefPtr<FullObjectStoreMetadata>(auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15831 | std::move(commonMetadata),auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15832 | FullObjectStoreMetadata::AutoIncrementIds{auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15833 | nextAutoIncrementId, nextAutoIncrementId}),auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15834 | fallible)),auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15835 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15836 | |||||
| 15837 | lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId);auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15838 | |||||
| 15839 | return Ok{};auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15840 | }));auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15841 | |||||
| 15842 | return lastObjectStoreId;auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect(); | ||||
| 15843 | }()))auto tryResult1259 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1245 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15764, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } const auto& stmt = tryResult1245.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1247)::ok_type >); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1248)::ok_type >); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1250)::ok_type >); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1251 )::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1252)::ok_type >); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15807, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const int32_t& columnType = tryResult1253 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15812); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect (!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1254 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15815, mozilla::dom::quota::Severity::Error); return tryResult1254 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15824, mozilla::dom::quota::Severity::Error); return tryResult1256 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect (!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1258 )::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15840, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1245 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); } const auto& stmt = tryResult1245.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1258 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1246.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15812); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1256.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1246 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1246.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15775, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1246.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1247 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1248 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15783, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1249 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15786, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1250 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15789, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1251 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15796, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1252 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15799, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1253 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1253.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15807, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); } const int32_t& columnType = tryResult1253.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15812); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15812); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1254 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1254.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15815, mozilla::dom::quota::Severity::Error); return tryResult1254.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1255 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1255)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1255.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1256 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1256.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15824, mozilla::dom::quota::Severity::Error); return tryResult1256.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1256.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1257 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1257)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1257.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15835, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15840, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15843, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const auto& lastObjectStoreId = tryResult1259 .inspect();; | ||||
| 15844 | |||||
| 15845 | QM_TRY_INSPECT(auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15846 | const auto& lastIndexId,auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15847 | ([this, &aConnection,auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15848 | &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15849 | // Load index informationauto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15850 | QM_TRY_INSPECT(auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15851 | const auto& stmt,auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15852 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15853 | nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15854 | "SELECT "auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15855 | "id, object_store_id, name, key_path, "auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15856 | "unique_index, multientry, "auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15857 | "locale, is_auto_locale "auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15858 | "FROM object_store_index"_ns));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15859 | |||||
| 15860 | IndexOrObjectStoreId lastIndexId = 0;auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15861 | |||||
| 15862 | QM_TRY(CollectWhileHasResult(auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15863 | *stmt,auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15864 | [this, &lastIndexId, &objectStores, &aConnection,auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15865 | usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15866 | usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15867 | auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15868 | QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15869 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15870 | |||||
| 15871 | auto objectStoreMetadata = objectStores.Lookup(objectStoreId);auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15872 | QM_TRY(OkIf(static_cast<bool>(objectStoreMetadata)),auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15873 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15874 | |||||
| 15875 | MOZ_ASSERT((*objectStoreMetadata)->mCommonMetadata.id() ==auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15876 | objectStoreId);auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15877 | |||||
| 15878 | IndexOrObjectStoreId indexId;auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15879 | QM_TRY(MOZ_TO_RESULT(stmt.GetInt64(0, &indexId)));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15880 | |||||
| 15881 | if (!usedIds) {auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15882 | usedIds.emplace();auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15883 | }auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15884 | |||||
| 15885 | QM_TRY(OkIf(indexId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15886 | QM_TRY(OkIf(!usedIds.ref().Contains(indexId)),auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15887 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15888 | |||||
| 15889 | QM_TRY(OkIf(usedIds.ref().Insert(indexId, fallible)),auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15890 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15891 | |||||
| 15892 | nsString name;auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15893 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15894 | |||||
| 15895 | const nsAutoString hashName =auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15896 | IntToString(indexId) + u":"_ns + name;auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15897 | |||||
| 15898 | if (!usedNames) {auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15899 | usedNames.emplace();auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15900 | }auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15901 | |||||
| 15902 | QM_TRY(OkIf(!usedNames.ref().Contains(hashName)),auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15903 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15904 | |||||
| 15905 | QM_TRY(OkIf(usedNames.ref().Insert(hashName, fallible)),auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15906 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15907 | |||||
| 15908 | auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>();auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15909 | indexMetadata->mCommonMetadata.id() = indexId;auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15910 | indexMetadata->mCommonMetadata.name() = name;auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15911 | |||||
| 15912 | #ifdef DEBUGauto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15913 | {auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15914 | int32_t columnType;auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15915 | nsresult rv = stmt.GetTypeOfIndex(3, &columnType);auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15916 | MOZ_ASSERT(NS_SUCCEEDED(rv));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15917 | MOZ_ASSERT(columnType != mozIStorageStatement::VALUE_TYPE_NULL);auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15918 | }auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15919 | #endifauto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15920 | |||||
| 15921 | nsString keyPathSerialization;auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15922 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15923 | |||||
| 15924 | indexMetadata->mCommonMetadata.keyPath() =auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15925 | KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15926 | QM_TRY(OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid()),auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15927 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15928 | |||||
| 15929 | int32_t scratch;auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15930 | QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(4, &scratch)));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15931 | |||||
| 15932 | indexMetadata->mCommonMetadata.unique() = !!scratch;auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15933 | |||||
| 15934 | QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(5, &scratch)));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15935 | |||||
| 15936 | indexMetadata->mCommonMetadata.multiEntry() = !!scratch;auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15937 | |||||
| 15938 | const bool localeAware = !stmt.IsNull(6);auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15939 | if (localeAware) {auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15940 | QM_TRY(MOZ_TO_RESULT(stmt.GetUTF8String(auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15941 | 6, indexMetadata->mCommonMetadata.locale())));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15942 | |||||
| 15943 | QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(7, &scratch)));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15944 | |||||
| 15945 | indexMetadata->mCommonMetadata.autoLocale() = !!scratch;auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15946 | |||||
| 15947 | // Update locale-aware indexes if necessaryauto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15948 | const nsCString& indexedLocale =auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15949 | indexMetadata->mCommonMetadata.locale();auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15950 | const bool& isAutoLocale =auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15951 | indexMetadata->mCommonMetadata.autoLocale();auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15952 | const nsCString& systemLocale = mFactory->GetSystemLocale();auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15953 | if (!systemLocale.IsEmpty() && isAutoLocale &&auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15954 | !indexedLocale.Equals(systemLocale)) {auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15955 | QM_TRY(MOZ_TO_RESULT(UpdateLocaleAwareIndex(auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15956 | aConnection, indexMetadata->mCommonMetadata,auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15957 | systemLocale)));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15958 | }auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15959 | }auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15960 | |||||
| 15961 | QM_TRY(OkIf((*objectStoreMetadata)auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15962 | ->mIndexes.InsertOrUpdate(auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15963 | indexId, std::move(indexMetadata), fallible)),auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15964 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15965 | |||||
| 15966 | lastIndexId = std::max(lastIndexId, indexId);auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15967 | |||||
| 15968 | return Ok{};auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15969 | }));auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15970 | |||||
| 15971 | return lastIndexId;auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect(); | ||||
| 15972 | }()))auto tryResult1279 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15858, mozilla::dom::quota::Severity::Error); return tryResult1260 .propagateErr(); } const auto& stmt = tryResult1260.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1261 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect (!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15873 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15876 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15876); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15879, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect (!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect (!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1266)::ok_type >); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1267)::ok_type >); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15893, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1268 )::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1269)::ok_type >); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15916); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1270)::ok_type> ); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15922, mozilla::dom::quota::Severity::Error); return tryResult1270 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1272 )::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect (!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1273.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934 , mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1274)::ok_type >); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15941, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1275.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15943 , mozilla::dom::quota::Severity::Error); return tryResult1275 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1276 )::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15957, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1278)::ok_type >); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15969, mozilla::dom::quota::Severity::Error); return tryResult1278 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1260 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15858, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); } const auto& stmt = tryResult1260.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1278 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15876); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15916); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15917); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1270.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1272.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1275.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1261 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1261.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1261.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1262 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15873, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15876); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15876); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1263 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15879, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1264 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15885, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15887, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1266 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1266.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15890, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1267 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15893, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1268 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1269 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1269.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15906, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15916); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15916); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15917); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15917); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1270 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1270.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15922, mozilla::dom::quota::Severity::Error); return tryResult1270.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1271 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15927, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1272 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1272)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1272.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); return tryResult1272.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1273 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1273.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15934, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1274 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1274)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); }}; {auto tryResult1275 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1275.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15943, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1276 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15957, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; } } {auto tryResult1277 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15964, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15969, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return lastIndexId; }())" , tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); return tryResult1279 .propagateErr(); } const auto& lastIndexId = tryResult1279 .inspect();; | ||||
| 15973 | |||||
| 15974 | QM_TRY(OkIf(lastObjectStoreId != INT64_MAX),{auto tryResult1280 = (OkIf(lastObjectStoreId != (9223372036854775807L ))); static_assert(std::is_empty_v<typename decltype(tryResult1280 )::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr ()), 0))) { auto tryTempError = tryResult1280.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(lastObjectStoreId != (9223372036854775807L))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(lastObjectStoreId != (9223372036854775807L))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 15975 | NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1280 = (OkIf(lastObjectStoreId != (9223372036854775807L ))); static_assert(std::is_empty_v<typename decltype(tryResult1280 )::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr ()), 0))) { auto tryTempError = tryResult1280.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(lastObjectStoreId != (9223372036854775807L))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(lastObjectStoreId != (9223372036854775807L))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | ||||
| 15976 | QM_TRY(OkIf(lastIndexId != INT64_MAX), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1281 = (OkIf(lastIndexId != (9223372036854775807L ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { auto tryTempError = tryResult1281.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(lastIndexId != (9223372036854775807L))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15977, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15977, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(lastIndexId != (9223372036854775807L))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 15977 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1281 = (OkIf(lastIndexId != (9223372036854775807L ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { auto tryTempError = tryResult1281.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(lastIndexId != (9223372036854775807L))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15977, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15977, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(lastIndexId != (9223372036854775807L))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | ||||
| 15978 | |||||
| 15979 | mMetadata->mNextObjectStoreId = lastObjectStoreId + 1; | ||||
| 15980 | mMetadata->mNextIndexId = lastIndexId + 1; | ||||
| 15981 | |||||
| 15982 | return NS_OK; | ||||
| 15983 | } | ||||
| 15984 | |||||
| 15985 | /* static */ | ||||
| 15986 | nsresult OpenDatabaseOp::UpdateLocaleAwareIndex( | ||||
| 15987 | mozIStorageConnection& aConnection, const IndexMetadata& aIndexMetadata, | ||||
| 15988 | const nsCString& aLocale) { | ||||
| 15989 | const auto indexTable = | ||||
| 15990 | aIndexMetadata.unique() ? "unique_index_data"_ns : "index_data"_ns; | ||||
| 15991 | |||||
| 15992 | // The parameter names are not used, parameters are bound by index only | ||||
| 15993 | // locally in the same function. | ||||
| 15994 | const nsCString readQuery = "SELECT value, object_data_key FROM "_ns + | ||||
| 15995 | indexTable + " WHERE index_id = :index_id"_ns; | ||||
| 15996 | |||||
| 15997 | QM_TRY_INSPECT(const auto& readStmt,auto tryResult1282 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1282 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)" , tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16000, mozilla::dom::quota::Severity::Error); return tryResult1282 .propagateErr(); } const auto& readStmt = tryResult1282.inspect (); | ||||
| 15998 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1282 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1282 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)" , tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16000, mozilla::dom::quota::Severity::Error); return tryResult1282 .propagateErr(); } const auto& readStmt = tryResult1282.inspect (); | ||||
| 15999 | nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1282 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1282 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)" , tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16000, mozilla::dom::quota::Severity::Error); return tryResult1282 .propagateErr(); } const auto& readStmt = tryResult1282.inspect (); | ||||
| 16000 | CreateStatement, readQuery))auto tryResult1282 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1282 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)" , tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16000, mozilla::dom::quota::Severity::Error); return tryResult1282 .propagateErr(); } const auto& readStmt = tryResult1282.inspect ();; | ||||
| 16001 | |||||
| 16002 | QM_TRY(MOZ_TO_RESULT(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))){auto tryResult1283 = (ToResult(readStmt->BindInt64ByIndex (0, aIndexMetadata.id()))); static_assert(std::is_empty_v< typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect (!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; | ||||
| 16003 | |||||
| 16004 | QM_TRY(CollectWhileHasResult({auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16005 | *readStmt,{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16006 | [&aConnection, &indexTable, &aIndexMetadata, &aLocale,{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16007 | writeStmt = nsCOMPtr<mozIStorageStatement>{}]({auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16008 | auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16009 | if (!writeStmt) {{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16010 | QM_TRY_UNWRAP({auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16011 | writeStmt,{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16012 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16013 | nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16014 | "UPDATE "_ns + indexTable + "SET value_locale = :"_ns +{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16015 | kStmtParamNameValueLocale + " WHERE index_id = :"_ns +{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16016 | kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16017 | kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16018 | kStmtParamNameObjectDataKey));{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16019 | }{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16020 | |||||
| 16021 | mozStorageStatementScoper scoper(writeStmt);{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16022 | QM_TRY(MOZ_TO_RESULT(writeStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16023 | aIndexMetadata.id())));{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16024 | |||||
| 16025 | Key oldKey, objectStorePosition;{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16026 | QM_TRY(MOZ_TO_RESULT(oldKey.SetFromStatement(&readStmt, 0)));{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16027 | QM_TRY(MOZ_TO_RESULT({auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16028 | oldKey.BindToStatement(writeStmt, kStmtParamNameValue)));{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16029 | |||||
| 16030 | QM_TRY_INSPECT(const auto& newSortKey,{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16031 | oldKey.ToLocaleAwareKey(aLocale));{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16032 | |||||
| 16033 | QM_TRY(MOZ_TO_RESULT({auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16034 | newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale)));{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16035 | QM_TRY({auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16036 | MOZ_TO_RESULT(objectStorePosition.SetFromStatement(&readStmt, 1)));{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16037 | QM_TRY(MOZ_TO_RESULT(objectStorePosition.BindToStatement({auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16038 | writeStmt, kStmtParamNameObjectDataKey)));{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16039 | |||||
| 16040 | QM_TRY(MOZ_TO_RESULT(writeStmt->Execute()));{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16041 | |||||
| 16042 | return Ok{};{auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }} | ||||
| 16043 | })){auto tryResult1293 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1284 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (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(!!(tryResult1284.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)" , tryResult1284.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16018, mozilla::dom::quota::Severity::Error); return tryResult1284 .propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16023, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1286)::ok_type >); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16026, mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect (!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16028, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1288.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16031, mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); } const auto& newSortKey = tryResult1288 .inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16034, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect (!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16036, mozilla::dom::quota::Severity::Error); return tryResult1290 .propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16038, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16040, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect (!!(tryResult1293.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 tryResult1284 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1284.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)\", tryResult1284.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16018, mozilla::dom::quota::Severity::Error); return tryResult1284.propagateErr(); } writeStmt = tryResult1284.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1285 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16023, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1286 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16026, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; {auto tryResult1287 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16028, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; auto tryResult1288 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16031, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); } const auto& newSortKey = tryResult1288.inspect();; {auto tryResult1289 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16034, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; {auto tryResult1290 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16036, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; {auto tryResult1291 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16038, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; {auto tryResult1292 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1292)::ok_type>); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16040, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); }}; return Ok{}; })" , tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16043, mozilla::dom::quota::Severity::Error); return tryResult1293 .propagateErr(); }}; | ||||
| 16044 | |||||
| 16045 | // The parameter names are not used, parameters are bound by index only | ||||
| 16046 | // locally in the same function. | ||||
| 16047 | static constexpr auto metaQuery = | ||||
| 16048 | "UPDATE object_store_index SET " | ||||
| 16049 | "locale = :locale WHERE id = :id"_ns; | ||||
| 16050 | |||||
| 16051 | QM_TRY_INSPECT(const auto& metaStmt,auto tryResult1294 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1294 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)" , tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16054, mozilla::dom::quota::Severity::Error); return tryResult1294 .propagateErr(); } const auto& metaStmt = tryResult1294.inspect (); | ||||
| 16052 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1294 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1294 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)" , tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16054, mozilla::dom::quota::Severity::Error); return tryResult1294 .propagateErr(); } const auto& metaStmt = tryResult1294.inspect (); | ||||
| 16053 | nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1294 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1294 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)" , tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16054, mozilla::dom::quota::Severity::Error); return tryResult1294 .propagateErr(); } const auto& metaStmt = tryResult1294.inspect (); | ||||
| 16054 | CreateStatement, metaQuery))auto tryResult1294 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1294 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)" , tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16054, mozilla::dom::quota::Severity::Error); return tryResult1294 .propagateErr(); } const auto& metaStmt = tryResult1294.inspect ();; | ||||
| 16055 | |||||
| 16056 | QM_TRY(MOZ_TO_RESULT({auto tryResult1295 = (ToResult(metaStmt->BindStringByIndex (0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v <typename decltype(tryResult1295)::ok_type>); if ((__builtin_expect (!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))" , tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16057, mozilla::dom::quota::Severity::Error); return tryResult1295 .propagateErr(); }} | ||||
| 16057 | metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))){auto tryResult1295 = (ToResult(metaStmt->BindStringByIndex (0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v <typename decltype(tryResult1295)::ok_type>); if ((__builtin_expect (!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))" , tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16057, mozilla::dom::quota::Severity::Error); return tryResult1295 .propagateErr(); }}; | ||||
| 16058 | |||||
| 16059 | QM_TRY(MOZ_TO_RESULT(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))){auto tryResult1296 = (ToResult(metaStmt->BindInt64ByIndex (1, aIndexMetadata.id()))); static_assert(std::is_empty_v< typename decltype(tryResult1296)::ok_type>); if ((__builtin_expect (!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))" , tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16059, mozilla::dom::quota::Severity::Error); return tryResult1296 .propagateErr(); }}; | ||||
| 16060 | |||||
| 16061 | QM_TRY(MOZ_TO_RESULT(metaStmt->Execute())){auto tryResult1297 = (ToResult(metaStmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1297)::ok_type >); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(metaStmt->Execute())" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16061, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); }}; | ||||
| 16062 | |||||
| 16063 | return NS_OK; | ||||
| 16064 | } | ||||
| 16065 | |||||
| 16066 | nsresult OpenDatabaseOp::BeginVersionChange() { | ||||
| 16067 | AssertIsOnOwningThread(); | ||||
| 16068 | MOZ_ASSERT(mState == State::BeginVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::BeginVersionChange", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange" ")"); do { MOZ_CrashSequence(__null, 16068); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16069 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16069); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16069); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16070 | MOZ_ASSERT(mMetadata->mCommonMetadata.version() <= mRequestedVersion)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata->mCommonMetadata.version() <= mRequestedVersion )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mMetadata->mCommonMetadata.version() <= mRequestedVersion ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mMetadata->mCommonMetadata.version() <= mRequestedVersion" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16070 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.version() <= mRequestedVersion" ")"); do { MOZ_CrashSequence(__null, 16070); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16071 | MOZ_ASSERT(!mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase" ")"); do { MOZ_CrashSequence(__null, 16071); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16072 | MOZ_ASSERT(!mVersionChangeTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mVersionChangeTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mVersionChangeTransaction)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mVersionChangeTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16072 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction" ")"); do { MOZ_CrashSequence(__null, 16072); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16073 | |||||
| 16074 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16074) || | ||||
| 16075 | IsActorDestroyed()) { | ||||
| 16076 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, idbInternalErrMsg.get()); } while (0); | ||||
| 16077 | QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1298 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR )); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16077, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; | ||||
| 16078 | } | ||||
| 16079 | |||||
| 16080 | EnsureDatabaseActor(); | ||||
| 16081 | |||||
| 16082 | if (mDatabase->IsInvalidated()) { | ||||
| 16083 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, idbInternalErrMsg.get()); } while (0); | ||||
| 16084 | QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1299 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR )); static_assert(std::is_empty_v<typename decltype(tryResult1299 )::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16084, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; | ||||
| 16085 | } | ||||
| 16086 | |||||
| 16087 | MOZ_ASSERT(!mDatabase->IsClosed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabase->IsClosed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabase->IsClosed()))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabase->IsClosed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16087 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase->IsClosed()" ")"); do { MOZ_CrashSequence(__null, 16087); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16088 | |||||
| 16089 | DatabaseActorInfo* info; | ||||
| 16090 | MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get( mDatabaseId.ref(), &info)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16090 ); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)" ")"); do { MOZ_CrashSequence(__null, 16090); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 16091 | |||||
| 16092 | MOZ_ASSERT(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr ()))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr ())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16092 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr())" ")"); do { MOZ_CrashSequence(__null, 16092); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16093 | MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16093 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16093); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16094 | MOZ_ASSERT(info->mMetadata == mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mMetadata == mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(info->mMetadata == mMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "info->mMetadata == mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16094); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == mMetadata" ")"); do { MOZ_CrashSequence(__null, 16094); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16095 | |||||
| 16096 | const Maybe<uint64_t> newVersion = Some(mRequestedVersion); | ||||
| 16097 | |||||
| 16098 | QM_TRY(MOZ_TO_RESULT(SendVersionChangeMessages({auto tryResult1300 = (ToResult(SendVersionChangeMessages( info , mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version (), newVersion))); static_assert(std::is_empty_v<typename decltype (tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16100, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }} | ||||
| 16099 | info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(),{auto tryResult1300 = (ToResult(SendVersionChangeMessages( info , mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version (), newVersion))); static_assert(std::is_empty_v<typename decltype (tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16100, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }} | ||||
| 16100 | newVersion))){auto tryResult1300 = (ToResult(SendVersionChangeMessages( info , mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version (), newVersion))); static_assert(std::is_empty_v<typename decltype (tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16100, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; | ||||
| 16101 | |||||
| 16102 | if (mMaybeBlockedDatabases.IsEmpty()) { | ||||
| 16103 | // We don't need to wait on any databases, just jump to the transaction | ||||
| 16104 | // pool. | ||||
| 16105 | WaitForTransactions(); | ||||
| 16106 | return NS_OK; | ||||
| 16107 | } | ||||
| 16108 | |||||
| 16109 | // If the actor gets destroyed, mWaitingFactoryOp will hold the last strong | ||||
| 16110 | // reference to us. | ||||
| 16111 | info->mWaitingFactoryOp = this; | ||||
| 16112 | |||||
| 16113 | mState = State::WaitingForOtherDatabasesToClose; | ||||
| 16114 | return NS_OK; | ||||
| 16115 | } | ||||
| 16116 | |||||
| 16117 | bool OpenDatabaseOp::AreActorsAlive() { | ||||
| 16118 | AssertIsOnOwningThread(); | ||||
| 16119 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16119); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { MOZ_CrashSequence(__null, 16119); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16120 | |||||
| 16121 | return !(IsActorDestroyed() || mDatabase->IsActorDestroyed()); | ||||
| 16122 | } | ||||
| 16123 | |||||
| 16124 | void OpenDatabaseOp::SendBlockedNotification() { | ||||
| 16125 | AssertIsOnOwningThread(); | ||||
| 16126 | MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForOtherDatabasesToClose)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16126 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose" ")"); do { MOZ_CrashSequence(__null, 16126); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16127 | |||||
| 16128 | if (!IsActorDestroyed()) { | ||||
| 16129 | (void)SendBlocked(mMetadata->mCommonMetadata.version()); | ||||
| 16130 | } | ||||
| 16131 | } | ||||
| 16132 | |||||
| 16133 | nsresult OpenDatabaseOp::DispatchToWorkThread() { | ||||
| 16134 | AssertIsOnOwningThread(); | ||||
| 16135 | MOZ_ASSERT(mState == State::WaitingForTransactionsToComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForTransactionsToComplete)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForTransactionsToComplete))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForTransactionsToComplete" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16135 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete" ")"); do { MOZ_CrashSequence(__null, 16135); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16136 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16136); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16136); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16137 | // There's no other place which creates a version change transaction | ||||
| 16138 | // and sets mVersionChangeTransaction. | ||||
| 16139 | MOZ_ASSERT(!mVersionChangeTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mVersionChangeTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mVersionChangeTransaction)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mVersionChangeTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16139 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction" ")"); do { MOZ_CrashSequence(__null, 16139); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16140 | |||||
| 16141 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16141) || | ||||
| 16142 | IsActorDestroyed() || mDatabase->IsInvalidated()) { | ||||
| 16143 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16143, idbInternalErrMsg.get()); } while (0); | ||||
| 16144 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16145 | } | ||||
| 16146 | |||||
| 16147 | DatabaseActorInfo* info; | ||||
| 16148 | MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get( mDatabaseId.ref(), &info)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16148 ); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)" ")"); do { MOZ_CrashSequence(__null, 16148); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 16149 | |||||
| 16150 | MOZ_ASSERT(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr ()))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr ())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16150 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr())" ")"); do { MOZ_CrashSequence(__null, 16150); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16151 | MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16151 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16151); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16152 | MOZ_ASSERT(info->mMetadata == mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mMetadata == mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(info->mMetadata == mMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "info->mMetadata == mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16152); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == mMetadata" ")"); do { MOZ_CrashSequence(__null, 16152); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16153 | |||||
| 16154 | auto transaction = MakeSafeRefPtr<VersionChangeTransaction>(this); | ||||
| 16155 | |||||
| 16156 | if (NS_WARN_IF(!transaction->CopyDatabaseMetadata())NS_warn_if_impl(!transaction->CopyDatabaseMetadata(), "!transaction->CopyDatabaseMetadata()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16156 )) { | ||||
| 16157 | return NS_ERROR_OUT_OF_MEMORY; | ||||
| 16158 | } | ||||
| 16159 | |||||
| 16160 | MOZ_ASSERT(info->mMetadata != mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mMetadata != mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(info->mMetadata != mMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "info->mMetadata != mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16160); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata != mMetadata" ")"); do { MOZ_CrashSequence(__null, 16160); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16161 | mMetadata = info->mMetadata.clonePtr(); | ||||
| 16162 | |||||
| 16163 | mVersionChangeTransaction = std::move(transaction); | ||||
| 16164 | |||||
| 16165 | MOZ_ASSERT(mVersionChangeTransaction->GetMode() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(mVersionChangeTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16166 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 16166); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16166 | IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mVersionChangeTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16166 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 16166); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16167 | |||||
| 16168 | mState = State::DatabaseWorkVersionChange; | ||||
| 16169 | |||||
| 16170 | // Intentionally empty. | ||||
| 16171 | nsTArray<nsString> objectStoreNames; | ||||
| 16172 | |||||
| 16173 | const int64_t loggingSerialNumber = | ||||
| 16174 | mVersionChangeTransaction->LoggingSerialNumber(); | ||||
| 16175 | const nsID& backgroundChildLoggingId = | ||||
| 16176 | mVersionChangeTransaction->GetLoggingInfo()->Id(); | ||||
| 16177 | |||||
| 16178 | if (NS_WARN_IF(!mDatabase->RegisterTransaction(*mVersionChangeTransaction))NS_warn_if_impl(!mDatabase->RegisterTransaction(*mVersionChangeTransaction ), "!mDatabase->RegisterTransaction(*mVersionChangeTransaction)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16178 )) { | ||||
| 16179 | return NS_ERROR_OUT_OF_MEMORY; | ||||
| 16180 | } | ||||
| 16181 | |||||
| 16182 | if (!gConnectionPool) { | ||||
| 16183 | gConnectionPool = new ConnectionPool(); | ||||
| 16184 | } | ||||
| 16185 | |||||
| 16186 | RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this); | ||||
| 16187 | |||||
| 16188 | uint64_t transactionId = versionChangeOp->StartOnConnectionPool( | ||||
| 16189 | backgroundChildLoggingId, mVersionChangeTransaction->DatabaseId(), | ||||
| 16190 | loggingSerialNumber, objectStoreNames, | ||||
| 16191 | /* aIsWriteTransaction */ true); | ||||
| 16192 | |||||
| 16193 | mVersionChangeOp = versionChangeOp; | ||||
| 16194 | |||||
| 16195 | versionChangeOp->NoteTransactionActiveRequest(); | ||||
| 16196 | mVersionChangeTransaction->Init(transactionId); | ||||
| 16197 | |||||
| 16198 | return NS_OK; | ||||
| 16199 | } | ||||
| 16200 | |||||
| 16201 | nsresult OpenDatabaseOp::SendUpgradeNeeded() { | ||||
| 16202 | AssertIsOnOwningThread(); | ||||
| 16203 | MOZ_ASSERT(mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkVersionChange)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mState == State::DatabaseWorkVersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16203 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange" ")"); do { MOZ_CrashSequence(__null, 16203); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16204 | MOZ_ASSERT(mVersionChangeTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mVersionChangeTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16204 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction" ")"); do { MOZ_CrashSequence(__null, 16204); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16205 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16205); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16206 | MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16206); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { MOZ_CrashSequence(__null, 16206); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16207 | MOZ_ASSERT_IF(!IsActorDestroyed(), mDatabase)do { if (!IsActorDestroyed()) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mDatabase)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16207); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { MOZ_CrashSequence(__null, 16207); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 16208 | |||||
| 16209 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16209) || | ||||
| 16210 | IsActorDestroyed()) { | ||||
| 16211 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16211, idbInternalErrMsg.get()); } while (0); | ||||
| 16212 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16213 | } | ||||
| 16214 | |||||
| 16215 | const SafeRefPtr<VersionChangeTransaction> transaction = | ||||
| 16216 | std::move(mVersionChangeTransaction); | ||||
| 16217 | |||||
| 16218 | nsresult rv = EnsureDatabaseActorIsAlive(); | ||||
| 16219 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16219)) { | ||||
| 16220 | return rv; | ||||
| 16221 | } | ||||
| 16222 | |||||
| 16223 | // Transfer ownership to IPDL. | ||||
| 16224 | transaction->SetActorAlive(); | ||||
| 16225 | |||||
| 16226 | if (!mDatabase->SendPBackgroundIDBVersionChangeTransactionConstructor( | ||||
| 16227 | transaction.unsafeGetRawPtr(), mMetadata->mCommonMetadata.version(), | ||||
| 16228 | mRequestedVersion, mMetadata->mNextObjectStoreId, | ||||
| 16229 | mMetadata->mNextIndexId)) { | ||||
| 16230 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16230, idbInternalErrMsg.get()); } while (0); | ||||
| 16231 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16232 | } | ||||
| 16233 | |||||
| 16234 | return NS_OK; | ||||
| 16235 | } | ||||
| 16236 | |||||
| 16237 | nsresult OpenDatabaseOp::DoVersionUpdate() { | ||||
| 16238 | AssertIsOnIOThread(); | ||||
| 16239 | MOZ_ASSERT(mState == State::DatabaseWorkVersionUpdate)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkVersionUpdate)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mState == State::DatabaseWorkVersionUpdate))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionUpdate" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16239 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionUpdate" ")"); do { MOZ_CrashSequence(__null, 16239); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16240 | MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16240); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { MOZ_CrashSequence(__null, 16240); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16241 | |||||
| 16242 | AUTO_PROFILER_LABEL("OpenDatabaseOp::DoVersionUpdate", DOM)mozilla::AutoProfilerLabel raiiObject16242( "OpenDatabaseOp::DoVersionUpdate" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 16243 | |||||
| 16244 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16244) || | ||||
| 16245 | !OperationMayProceed()) { | ||||
| 16246 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16246, idbInternalErrMsg.get()); } while (0); | ||||
| 16247 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16248 | } | ||||
| 16249 | |||||
| 16250 | mFileManager->UpdateDatabaseVersion(mRequestedVersion); | ||||
| 16251 | |||||
| 16252 | mState = State::SendingResults; | ||||
| 16253 | |||||
| 16254 | QM_TRY(MOZ_TO_RESULT({auto tryResult1301 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect (!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16255, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); }} | ||||
| 16255 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1301 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect (!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16255, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); }}; | ||||
| 16256 | |||||
| 16257 | return NS_OK; | ||||
| 16258 | } | ||||
| 16259 | |||||
| 16260 | void OpenDatabaseOp::SendResults() { | ||||
| 16261 | AssertIsOnOwningThread(); | ||||
| 16262 | MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::SendingResults", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16262); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16262); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16263 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16263); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16263); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16264 | MOZ_ASSERT_IF(!HasFailed(), !mVersionChangeTransaction)do { if (!HasFailed()) { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(!mVersionChangeTransaction )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mVersionChangeTransaction))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("!mVersionChangeTransaction" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction" ")"); do { MOZ_CrashSequence(__null, 16264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 16265 | |||||
| 16266 | if (mCompleteCallback) { | ||||
| 16267 | auto completeCallback = std::move(mCompleteCallback); | ||||
| 16268 | completeCallback(); | ||||
| 16269 | } | ||||
| 16270 | |||||
| 16271 | DebugOnly<DatabaseActorInfo*> info = nullptr; | ||||
| 16272 | MOZ_ASSERT_IF(mDatabaseId.isSome() && gLiveDatabaseHashtable &&do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable && gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16274 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16274); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 16273 | gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info),do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable && gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16274 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16274); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 16274 | !info->mWaitingFactoryOp)do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable && gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16274 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16274); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 16275 | |||||
| 16276 | if (mVersionChangeTransaction) { | ||||
| 16277 | MOZ_ASSERT(HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16277); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()" ")"); do { MOZ_CrashSequence(__null, 16277); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16278 | |||||
| 16279 | mVersionChangeTransaction->Abort(ResultCode(), /* aForce */ true); | ||||
| 16280 | mVersionChangeTransaction = nullptr; | ||||
| 16281 | } | ||||
| 16282 | |||||
| 16283 | if (IsActorDestroyed()) { | ||||
| 16284 | SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | ||||
| 16285 | } else { | ||||
| 16286 | FactoryRequestResponse response; | ||||
| 16287 | |||||
| 16288 | if (!HasFailed()) { | ||||
| 16289 | // If we just successfully completed a versionchange operation then we | ||||
| 16290 | // need to update the version in our metadata. | ||||
| 16291 | mMetadata->mCommonMetadata.version() = mRequestedVersion; | ||||
| 16292 | |||||
| 16293 | nsresult rv = EnsureDatabaseActorIsAlive(); | ||||
| 16294 | if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { | ||||
| 16295 | // We successfully opened a database so use its actor as the success | ||||
| 16296 | // result for this request. | ||||
| 16297 | |||||
| 16298 | // XXX OpenDatabaseRequestResponse stores a raw pointer, can this be | ||||
| 16299 | // avoided? | ||||
| 16300 | response = OpenDatabaseRequestResponse{ | ||||
| 16301 | WrapNotNull(mDatabase.unsafeGetRawPtr())}; | ||||
| 16302 | } else { | ||||
| 16303 | response = ClampResultCode(rv); | ||||
| 16304 | #ifdef DEBUG1 | ||||
| 16305 | SetFailureCode(response.get_nsresult()); | ||||
| 16306 | #endif | ||||
| 16307 | } | ||||
| 16308 | } else { | ||||
| 16309 | #ifdef DEBUG1 | ||||
| 16310 | // If something failed then our metadata pointer is now bad. No one should | ||||
| 16311 | // ever touch it again though so just null it out in DEBUG builds to make | ||||
| 16312 | // sure we find such cases. | ||||
| 16313 | mMetadata = nullptr; | ||||
| 16314 | #endif | ||||
| 16315 | response = ClampResultCode(ResultCode()); | ||||
| 16316 | } | ||||
| 16317 | |||||
| 16318 | (void)PBackgroundIDBFactoryRequestParent::Send__delete__(this, response); | ||||
| 16319 | } | ||||
| 16320 | |||||
| 16321 | if (mDatabase) { | ||||
| 16322 | MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16322 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 16322); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16323 | |||||
| 16324 | if (HasFailed()) { | ||||
| 16325 | mDatabase->Invalidate(); | ||||
| 16326 | } | ||||
| 16327 | |||||
| 16328 | // Make sure to release the database on this thread. | ||||
| 16329 | mDatabase = nullptr; | ||||
| 16330 | |||||
| 16331 | CleanupMetadata(); | ||||
| 16332 | } else if (mDirectoryLockHandle) { | ||||
| 16333 | // ConnectionClosedCallback will call CleanupMetadata(). | ||||
| 16334 | nsCOMPtr<nsIRunnable> callback = NewRunnableMethod( | ||||
| 16335 | "dom::indexedDB::OpenDatabaseOp::ConnectionClosedCallback", this, | ||||
| 16336 | &OpenDatabaseOp::ConnectionClosedCallback); | ||||
| 16337 | |||||
| 16338 | RefPtr<WaitForTransactionsHelper> helper = | ||||
| 16339 | new WaitForTransactionsHelper(mDatabaseId.ref(), callback); | ||||
| 16340 | helper->WaitForTransactions(); | ||||
| 16341 | } else { | ||||
| 16342 | CleanupMetadata(); | ||||
| 16343 | } | ||||
| 16344 | |||||
| 16345 | FinishSendResults(); | ||||
| 16346 | } | ||||
| 16347 | |||||
| 16348 | void OpenDatabaseOp::ConnectionClosedCallback() { | ||||
| 16349 | AssertIsOnOwningThread(); | ||||
| 16350 | MOZ_ASSERT(HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16350); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()" ")"); do { MOZ_CrashSequence(__null, 16350); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16351 | MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16351 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 16351); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16352 | |||||
| 16353 | { | ||||
| 16354 | auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle); | ||||
| 16355 | } | ||||
| 16356 | |||||
| 16357 | CleanupMetadata(); | ||||
| 16358 | } | ||||
| 16359 | |||||
| 16360 | void OpenDatabaseOp::EnsureDatabaseActor() { | ||||
| 16361 | AssertIsOnOwningThread(); | ||||
| 16362 | MOZ_ASSERT(mState == State::BeginVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange || mState == State ::DatabaseWorkVersionChange || mState == State::SendingResults )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::BeginVersionChange || mState == State ::DatabaseWorkVersionChange || mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16364 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16364); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16363 | mState == State::DatabaseWorkVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange || mState == State ::DatabaseWorkVersionChange || mState == State::SendingResults )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::BeginVersionChange || mState == State ::DatabaseWorkVersionChange || mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16364 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16364); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16364 | mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange || mState == State ::DatabaseWorkVersionChange || mState == State::SendingResults )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::BeginVersionChange || mState == State ::DatabaseWorkVersionChange || mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16364 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16364); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16365 | MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16365); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { MOZ_CrashSequence(__null, 16365); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16366 | MOZ_ASSERT(mDatabaseFilePath.isSome())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseFilePath.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabaseFilePath.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseFilePath.isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16366 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath.isSome()" ")"); do { MOZ_CrashSequence(__null, 16366); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16367 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16367 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 16367); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16368 | |||||
| 16369 | if (mDatabase) { | ||||
| 16370 | return; | ||||
| 16371 | } | ||||
| 16372 | |||||
| 16373 | MOZ_ASSERT(mMetadata->mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata->mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata->mDatabaseId.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMetadata->mDatabaseId.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16373); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16373); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16374 | mMetadata->mDatabaseId = mDatabaseId.ref(); | ||||
| 16375 | |||||
| 16376 | MOZ_ASSERT(mMetadata->mFilePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata->mFilePath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata->mFilePath.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMetadata->mFilePath.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16376); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mFilePath.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16376); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16377 | mMetadata->mFilePath = mDatabaseFilePath.ref(); | ||||
| 16378 | |||||
| 16379 | DatabaseActorInfo* info; | ||||
| 16380 | if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { | ||||
| 16381 | AssertMetadataConsistency(*info->mMetadata); | ||||
| 16382 | mMetadata = info->mMetadata.clonePtr(); | ||||
| 16383 | } | ||||
| 16384 | |||||
| 16385 | Maybe<const CipherKey> maybeKey = | ||||
| 16386 | mInPrivateBrowsing ? mFileManager->MutableCipherKeyManagerRef().Get() | ||||
| 16387 | : Nothing(); | ||||
| 16388 | |||||
| 16389 | 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()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16389 ); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()" ")"); do { MOZ_CrashSequence(__null, 16389); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16390 | |||||
| 16391 | const bool directoryLockInvalidated = mDirectoryLockHandle->Invalidated(); | ||||
| 16392 | |||||
| 16393 | // XXX Shouldn't Manager() return already_AddRefed when | ||||
| 16394 | // PBackgroundIDBFactoryParent is declared refcounted? | ||||
| 16395 | mDatabase = MakeSafeRefPtr<Database>( | ||||
| 16396 | SafeRefPtr{static_cast<Factory*>(Manager()), | ||||
| 16397 | AcquireStrongRefFromRawPtr{}}, | ||||
| 16398 | mCommonParams.principalInfo(), mContentParentId, mOriginMetadata, | ||||
| 16399 | mTelemetryId, mMetadata.clonePtr(), mFileManager.clonePtr(), | ||||
| 16400 | std::move(mDirectoryLockHandle), mInPrivateBrowsing, maybeKey); | ||||
| 16401 | |||||
| 16402 | if (info) { | ||||
| 16403 | info->mLiveDatabases.insertBack(mDatabase.unsafeGetRawPtr()); | ||||
| 16404 | } else { | ||||
| 16405 | // XXX Maybe use LookupOrInsertWith above, to avoid a second lookup here? | ||||
| 16406 | info = gLiveDatabaseHashtable | ||||
| 16407 | ->InsertOrUpdate( | ||||
| 16408 | mDatabaseId.ref(), | ||||
| 16409 | MakeUnique<DatabaseActorInfo>( | ||||
| 16410 | mMetadata.clonePtr(), | ||||
| 16411 | WrapNotNullUnchecked(mDatabase.unsafeGetRawPtr()))) | ||||
| 16412 | .get(); | ||||
| 16413 | } | ||||
| 16414 | |||||
| 16415 | if (directoryLockInvalidated) { | ||||
| 16416 | mDatabase->Invalidate(); | ||||
| 16417 | } | ||||
| 16418 | |||||
| 16419 | // Balanced in Database::CleanupMetadata(). | ||||
| 16420 | IncreaseBusyCount(); | ||||
| 16421 | } | ||||
| 16422 | |||||
| 16423 | nsresult OpenDatabaseOp::EnsureDatabaseActorIsAlive() { | ||||
| 16424 | AssertIsOnOwningThread(); | ||||
| 16425 | MOZ_ASSERT(mState == State::DatabaseWorkVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkVersionChange || mState == State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkVersionChange || mState == State::SendingResults))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16426 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16426); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16426 | mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkVersionChange || mState == State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkVersionChange || mState == State::SendingResults))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16426 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16426); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16427 | MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16427); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { MOZ_CrashSequence(__null, 16427); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16428 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16428 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 16428); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16429 | |||||
| 16430 | EnsureDatabaseActor(); | ||||
| 16431 | |||||
| 16432 | if (mDatabase->IsActorAlive()) { | ||||
| 16433 | return NS_OK; | ||||
| 16434 | } | ||||
| 16435 | |||||
| 16436 | auto* const factory = static_cast<Factory*>(Manager()); | ||||
| 16437 | |||||
| 16438 | QM_TRY_INSPECT(const auto& spec, MetadataToSpec())auto tryResult1302 = (MetadataToSpec()); if ((__builtin_expect (!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError ("MetadataToSpec()", tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16438, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); } const auto& spec = tryResult1302.inspect ();; | ||||
| 16439 | |||||
| 16440 | mDatabase->SetActorAlive(); | ||||
| 16441 | |||||
| 16442 | if (!factory->SendPBackgroundIDBDatabaseConstructor( | ||||
| 16443 | mDatabase.unsafeGetRawPtr(), spec, WrapNotNull(this))) { | ||||
| 16444 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16444, idbInternalErrMsg.get()); } while (0); | ||||
| 16445 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16446 | } | ||||
| 16447 | |||||
| 16448 | if (mDatabase->IsInvalidated()) { | ||||
| 16449 | (void)mDatabase->SendInvalidate(); | ||||
| 16450 | } | ||||
| 16451 | |||||
| 16452 | return NS_OK; | ||||
| 16453 | } | ||||
| 16454 | |||||
| 16455 | Result<DatabaseSpec, nsresult> OpenDatabaseOp::MetadataToSpec() const { | ||||
| 16456 | AssertIsOnOwningThread(); | ||||
| 16457 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16457); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"); do { MOZ_CrashSequence(__null, 16457); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16458 | |||||
| 16459 | DatabaseSpec spec; | ||||
| 16460 | spec.metadata() = mMetadata->mCommonMetadata; | ||||
| 16461 | |||||
| 16462 | QM_TRY_UNWRAP(spec.objectStores(),auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16463 | TransformIntoNewArrayAbortOnErr(auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16464 | mMetadata->mObjectStores,auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16465 | [](const auto& objectStoreEntry)auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16466 | -> mozilla::Result<ObjectStoreSpec, nsresult> {auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16467 | FullObjectStoreMetadata* metadata =auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16468 | objectStoreEntry.GetWeak();auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16469 | MOZ_ASSERT(objectStoreEntry.GetKey());auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16470 | MOZ_ASSERT(metadata);auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16471 | |||||
| 16472 | ObjectStoreSpec objectStoreSpec;auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16473 | objectStoreSpec.metadata() = metadata->mCommonMetadata;auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16474 | |||||
| 16475 | QM_TRY_UNWRAP(auto indexes,auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16476 | TransformIntoNewArray(auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16477 | metadata->mIndexes,auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16478 | [](const auto& indexEntry) {auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16479 | FullIndexMetadata* indexMetadata =auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16480 | indexEntry.GetWeak();auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16481 | MOZ_ASSERT(indexEntry.GetKey());auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16482 | MOZ_ASSERT(indexMetadata);auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16483 | |||||
| 16484 | return indexMetadata->mCommonMetadata;auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16485 | },auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16486 | fallible));auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16487 | |||||
| 16488 | objectStoreSpec.indexes() = std::move(indexes);auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16489 | |||||
| 16490 | return objectStoreSpec;auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16491 | },auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap (); | ||||
| 16492 | fallible))auto tryResult1304 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16469 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16469); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16486, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16469); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16469); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16470); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16470); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1303 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16482); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16481); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16482); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16482); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16486, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); } auto indexes = tryResult1303.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16492, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); } spec.objectStores() = tryResult1304.unwrap ();; | ||||
| 16493 | |||||
| 16494 | return spec; | ||||
| 16495 | } | ||||
| 16496 | |||||
| 16497 | #ifdef DEBUG1 | ||||
| 16498 | |||||
| 16499 | void OpenDatabaseOp::AssertMetadataConsistency( | ||||
| 16500 | const FullDatabaseMetadata& aMetadata) { | ||||
| 16501 | AssertIsOnBackgroundThread(); | ||||
| 16502 | |||||
| 16503 | const FullDatabaseMetadata& thisDB = *mMetadata; | ||||
| 16504 | const FullDatabaseMetadata& otherDB = aMetadata; | ||||
| 16505 | |||||
| 16506 | MOZ_ASSERT(&thisDB != &otherDB)do { static_assert( mozilla::detail::AssertionConditionType< decltype(&thisDB != &otherDB)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(&thisDB != &otherDB) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("&thisDB != &otherDB" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16506 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "&thisDB != &otherDB" ")"); do { MOZ_CrashSequence(__null, 16506); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16507 | |||||
| 16508 | MOZ_ASSERT(thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata .name())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata .name()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16508 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name()" ")"); do { MOZ_CrashSequence(__null, 16508); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16509 | MOZ_ASSERT(thisDB.mCommonMetadata.version() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata .version())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16510 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()" ")"); do { MOZ_CrashSequence(__null, 16510); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16510 | otherDB.mCommonMetadata.version())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata .version())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16510 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()" ")"); do { MOZ_CrashSequence(__null, 16510); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16511 | MOZ_ASSERT(thisDB.mCommonMetadata.persistenceType() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mCommonMetadata.persistenceType() == otherDB. mCommonMetadata.persistenceType())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.persistenceType () == otherDB.mCommonMetadata.persistenceType()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16512 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()" ")"); do { MOZ_CrashSequence(__null, 16512); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16512 | otherDB.mCommonMetadata.persistenceType())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mCommonMetadata.persistenceType() == otherDB. mCommonMetadata.persistenceType())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.persistenceType () == otherDB.mCommonMetadata.persistenceType()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16512 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()" ")"); do { MOZ_CrashSequence(__null, 16512); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16513 | MOZ_ASSERT(thisDB.mDatabaseId == otherDB.mDatabaseId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mDatabaseId == otherDB.mDatabaseId)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(thisDB.mDatabaseId == otherDB.mDatabaseId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisDB.mDatabaseId == otherDB.mDatabaseId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16513 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mDatabaseId == otherDB.mDatabaseId" ")"); do { MOZ_CrashSequence(__null, 16513); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16514 | MOZ_ASSERT(thisDB.mFilePath == otherDB.mFilePath)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mFilePath == otherDB.mFilePath)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(thisDB.mFilePath == otherDB.mFilePath))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisDB.mFilePath == otherDB.mFilePath" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mFilePath == otherDB.mFilePath" ")"); do { MOZ_CrashSequence(__null, 16514); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16515 | |||||
| 16516 | // |thisDB| reflects the latest objectStore and index ids that have committed | ||||
| 16517 | // to disk. The in-memory metadata |otherDB| keeps track of objectStores and | ||||
| 16518 | // indexes that were created and then removed as well, so the next ids for | ||||
| 16519 | // |otherDB| may be higher than for |thisDB|. | ||||
| 16520 | MOZ_ASSERT(thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16520) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 16520); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16521 | MOZ_ASSERT(thisDB.mNextIndexId <= otherDB.mNextIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mNextIndexId <= otherDB.mNextIndexId)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(thisDB.mNextIndexId <= otherDB.mNextIndexId))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("thisDB.mNextIndexId <= otherDB.mNextIndexId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16521 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextIndexId <= otherDB.mNextIndexId" ")"); do { MOZ_CrashSequence(__null, 16521); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16522 | |||||
| 16523 | MOZ_ASSERT(thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mObjectStores.Count() == otherDB.mObjectStores .Count())>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(thisDB.mObjectStores.Count() == otherDB .mObjectStores.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16523 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count()" ")"); do { MOZ_CrashSequence(__null, 16523); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16524 | |||||
| 16525 | for (const auto& thisObjectStore : thisDB.mObjectStores.Values()) { | ||||
| 16526 | MOZ_ASSERT(thisObjectStore)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16526 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore" ")" ); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 16527 | MOZ_ASSERT(!thisObjectStore->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!thisObjectStore->mDeleted)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!thisObjectStore->mDeleted ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!thisObjectStore->mDeleted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisObjectStore->mDeleted" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16528 | |||||
| 16529 | auto otherObjectStore = MatchMetadataNameOrId( | ||||
| 16530 | otherDB.mObjectStores, thisObjectStore->mCommonMetadata.id()); | ||||
| 16531 | MOZ_ASSERT(otherObjectStore)do { static_assert( mozilla::detail::AssertionConditionType< decltype(otherObjectStore)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(otherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("otherObjectStore" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16531 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherObjectStore" ")"); do { MOZ_CrashSequence(__null, 16531); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16532 | |||||
| 16533 | MOZ_ASSERT(thisObjectStore != &otherObjectStore.ref())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore != &otherObjectStore.ref())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(thisObjectStore != &otherObjectStore.ref()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore != &otherObjectStore.ref()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16533 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore != &otherObjectStore.ref()" ")"); do { MOZ_CrashSequence(__null, 16533); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16534 | |||||
| 16535 | MOZ_ASSERT(thisObjectStore->mCommonMetadata.id() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.id() == otherObjectStore ->mCommonMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata .id() == otherObjectStore->mCommonMetadata.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16536 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()" ")"); do { MOZ_CrashSequence(__null, 16536); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16536 | otherObjectStore->mCommonMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.id() == otherObjectStore ->mCommonMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata .id() == otherObjectStore->mCommonMetadata.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16536 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()" ")"); do { MOZ_CrashSequence(__null, 16536); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16537 | MOZ_ASSERT(thisObjectStore->mCommonMetadata.name() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.name() == otherObjectStore ->mCommonMetadata.name())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata .name() == otherObjectStore->mCommonMetadata.name()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16538 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()" ")"); do { MOZ_CrashSequence(__null, 16538); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16538 | otherObjectStore->mCommonMetadata.name())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.name() == otherObjectStore ->mCommonMetadata.name())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata .name() == otherObjectStore->mCommonMetadata.name()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16538 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()" ")"); do { MOZ_CrashSequence(__null, 16538); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16539 | MOZ_ASSERT(thisObjectStore->mCommonMetadata.autoIncrement() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore ->mCommonMetadata.autoIncrement()))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()" ")"); do { MOZ_CrashSequence(__null, 16540); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16540 | otherObjectStore->mCommonMetadata.autoIncrement())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore ->mCommonMetadata.autoIncrement()))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()" ")"); do { MOZ_CrashSequence(__null, 16540); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16541 | MOZ_ASSERT(thisObjectStore->mCommonMetadata.keyPath() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore ->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata .keyPath() == otherObjectStore->mCommonMetadata.keyPath()) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16542 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()" ")"); do { MOZ_CrashSequence(__null, 16542); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16542 | otherObjectStore->mCommonMetadata.keyPath())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore ->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata .keyPath() == otherObjectStore->mCommonMetadata.keyPath()) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16542 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()" ")"); do { MOZ_CrashSequence(__null, 16542); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16543 | // mNextAutoIncrementId and mCommittedAutoIncrementId may be modified | ||||
| 16544 | // concurrently with this OpenOp, so it is not possible to assert equality | ||||
| 16545 | // here. It's also possible that we've written the new ids to disk but not | ||||
| 16546 | // yet updated the in-memory count. | ||||
| 16547 | // TODO The first part of the comment should probably be rephrased. I think | ||||
| 16548 | // it still applies but it sounds as if this were thread-unsafe like it was | ||||
| 16549 | // before, which isn't true anymore. | ||||
| 16550 | { | ||||
| 16551 | const auto&& thisAutoIncrementIds = | ||||
| 16552 | thisObjectStore->mAutoIncrementIds.Lock(); | ||||
| 16553 | const auto&& otherAutoIncrementIds = | ||||
| 16554 | otherObjectStore->mAutoIncrementIds.Lock(); | ||||
| 16555 | |||||
| 16556 | MOZ_ASSERT(thisAutoIncrementIds->next <= otherAutoIncrementIds->next)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisAutoIncrementIds->next <= otherAutoIncrementIds ->next)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(thisAutoIncrementIds->next <= otherAutoIncrementIds->next))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("thisAutoIncrementIds->next <= otherAutoIncrementIds->next" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16556 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->next <= otherAutoIncrementIds->next" ")"); do { MOZ_CrashSequence(__null, 16556); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16557 | MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisAutoIncrementIds->committed <= otherAutoIncrementIds ->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds ->next)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds-> committed == otherAutoIncrementIds->next))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16559 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" ")"); do { MOZ_CrashSequence(__null, 16559); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16558 | thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisAutoIncrementIds->committed <= otherAutoIncrementIds ->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds ->next)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds-> committed == otherAutoIncrementIds->next))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16559 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" ")"); do { MOZ_CrashSequence(__null, 16559); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16559 | thisAutoIncrementIds->committed == otherAutoIncrementIds->next)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisAutoIncrementIds->committed <= otherAutoIncrementIds ->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds ->next)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds-> committed == otherAutoIncrementIds->next))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16559 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" ")"); do { MOZ_CrashSequence(__null, 16559); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16560 | } | ||||
| 16561 | MOZ_ASSERT(!otherObjectStore->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!otherObjectStore->mDeleted)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!otherObjectStore->mDeleted ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!otherObjectStore->mDeleted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherObjectStore->mDeleted" ")"); do { MOZ_CrashSequence(__null, 16561); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16562 | |||||
| 16563 | MOZ_ASSERT(thisObjectStore->mIndexes.Count() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mIndexes.Count() == otherObjectStore ->mIndexes.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mIndexes .Count() == otherObjectStore->mIndexes.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16564 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()" ")"); do { MOZ_CrashSequence(__null, 16564); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16564 | otherObjectStore->mIndexes.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mIndexes.Count() == otherObjectStore ->mIndexes.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mIndexes .Count() == otherObjectStore->mIndexes.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16564 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()" ")"); do { MOZ_CrashSequence(__null, 16564); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16565 | |||||
| 16566 | for (const auto& thisIndex : thisObjectStore->mIndexes.Values()) { | ||||
| 16567 | MOZ_ASSERT(thisIndex)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16567); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex" ")"); do { MOZ_CrashSequence(__null, 16567); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16568 | MOZ_ASSERT(!thisIndex->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!thisIndex->mDeleted)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!thisIndex->mDeleted))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!thisIndex->mDeleted" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16568 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisIndex->mDeleted" ")"); do { MOZ_CrashSequence(__null, 16568); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16569 | |||||
| 16570 | auto otherIndex = MatchMetadataNameOrId(otherObjectStore->mIndexes, | ||||
| 16571 | thisIndex->mCommonMetadata.id()); | ||||
| 16572 | MOZ_ASSERT(otherIndex)do { static_assert( mozilla::detail::AssertionConditionType< decltype(otherIndex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(otherIndex))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("otherIndex", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16572); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherIndex" ")"); do { MOZ_CrashSequence(__null, 16572); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16573 | |||||
| 16574 | MOZ_ASSERT(thisIndex != &otherIndex.ref())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex != &otherIndex.ref())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex != &otherIndex .ref()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("thisIndex != &otherIndex.ref()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex != &otherIndex.ref()" ")"); do { MOZ_CrashSequence(__null, 16574); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16575 | |||||
| 16576 | MOZ_ASSERT(thisIndex->mCommonMetadata.id() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.id() == otherIndex-> mCommonMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .id() == otherIndex->mCommonMetadata.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16577 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()" ")"); do { MOZ_CrashSequence(__null, 16577); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16577 | otherIndex->mCommonMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.id() == otherIndex-> mCommonMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .id() == otherIndex->mCommonMetadata.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16577 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()" ")"); do { MOZ_CrashSequence(__null, 16577); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16578 | MOZ_ASSERT(thisIndex->mCommonMetadata.name() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.name() == otherIndex-> mCommonMetadata.name())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .name() == otherIndex->mCommonMetadata.name()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16579 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()" ")"); do { MOZ_CrashSequence(__null, 16579); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16579 | otherIndex->mCommonMetadata.name())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.name() == otherIndex-> mCommonMetadata.name())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .name() == otherIndex->mCommonMetadata.name()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16579 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()" ")"); do { MOZ_CrashSequence(__null, 16579); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16580 | MOZ_ASSERT(thisIndex->mCommonMetadata.keyPath() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.keyPath() == otherIndex ->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .keyPath() == otherIndex->mCommonMetadata.keyPath()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16581 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()" ")"); do { MOZ_CrashSequence(__null, 16581); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16581 | otherIndex->mCommonMetadata.keyPath())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.keyPath() == otherIndex ->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .keyPath() == otherIndex->mCommonMetadata.keyPath()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16581 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()" ")"); do { MOZ_CrashSequence(__null, 16581); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16582 | MOZ_ASSERT(thisIndex->mCommonMetadata.unique() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.unique() == otherIndex ->mCommonMetadata.unique())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .unique() == otherIndex->mCommonMetadata.unique()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16583 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()" ")"); do { MOZ_CrashSequence(__null, 16583); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16583 | otherIndex->mCommonMetadata.unique())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.unique() == otherIndex ->mCommonMetadata.unique())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .unique() == otherIndex->mCommonMetadata.unique()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16583 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()" ")"); do { MOZ_CrashSequence(__null, 16583); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16584 | MOZ_ASSERT(thisIndex->mCommonMetadata.multiEntry() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.multiEntry() == otherIndex ->mCommonMetadata.multiEntry())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .multiEntry() == otherIndex->mCommonMetadata.multiEntry()) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16585 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()" ")"); do { MOZ_CrashSequence(__null, 16585); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16585 | otherIndex->mCommonMetadata.multiEntry())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.multiEntry() == otherIndex ->mCommonMetadata.multiEntry())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .multiEntry() == otherIndex->mCommonMetadata.multiEntry()) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16585 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()" ")"); do { MOZ_CrashSequence(__null, 16585); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16586 | MOZ_ASSERT(!otherIndex->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!otherIndex->mDeleted)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!otherIndex->mDeleted))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!otherIndex->mDeleted" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16586 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherIndex->mDeleted" ")"); do { MOZ_CrashSequence(__null, 16586); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16587 | } | ||||
| 16588 | } | ||||
| 16589 | } | ||||
| 16590 | |||||
| 16591 | #endif // DEBUG | ||||
| 16592 | |||||
| 16593 | nsresult OpenDatabaseOp::VersionChangeOp::DoDatabaseWork( | ||||
| 16594 | DatabaseConnection* aConnection) { | ||||
| 16595 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16595); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 16595); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16596 | aConnection->AssertIsOnConnectionThread(); | ||||
| 16597 | MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16597 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 16597); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 16598 | MOZ_ASSERT(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16598 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { MOZ_CrashSequence(__null, 16598); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16599 | |||||
| 16600 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16600) || | ||||
| 16601 | !OperationMayProceed()) { | ||||
| 16602 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16602, idbInternalErrMsg.get()); } while (0); | ||||
| 16603 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16604 | } | ||||
| 16605 | |||||
| 16606 | AUTO_PROFILER_LABEL("OpenDatabaseOp::VersionChangeOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16606( "OpenDatabaseOp::VersionChangeOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 16607 | |||||
| 16608 | 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) | ||||
| 16609 | 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) | ||||
| 16610 | 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); | ||||
| 16611 | |||||
| 16612 | Transaction().SetActiveOnConnectionThread(); | ||||
| 16613 | |||||
| 16614 | QM_TRY(MOZ_TO_RESULT({auto tryResult1305 = (ToResult(aConnection->BeginWriteTransaction (Transaction().GetDurability()))); static_assert(std::is_empty_v <typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect (!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16615, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }} | ||||
| 16615 | aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult1305 = (ToResult(aConnection->BeginWriteTransaction (Transaction().GetDurability()))); static_assert(std::is_empty_v <typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect (!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16615, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; | ||||
| 16616 | |||||
| 16617 | // The parameter names are not used, parameters are bound by index only | ||||
| 16618 | // locally in the same function. | ||||
| 16619 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1307 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1306 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1306 )::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16624, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect (!!(tryResult1307.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1306 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16624, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; return Ok{}; })))" , tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16627, mozilla::dom::quota::Severity::Error); return tryResult1307 .propagateErr(); }} | ||||
| 16620 | "UPDATE database SET version = :version;"_ns,{auto tryResult1307 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1306 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1306 )::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16624, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect (!!(tryResult1307.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1306 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16624, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; return Ok{}; })))" , tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16627, mozilla::dom::quota::Severity::Error); return tryResult1307 .propagateErr(); }} | ||||
| 16621 | ([&self = *this]({auto tryResult1307 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1306 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1306 )::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16624, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect (!!(tryResult1307.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1306 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16624, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; return Ok{}; })))" , tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16627, mozilla::dom::quota::Severity::Error); return tryResult1307 .propagateErr(); }} | ||||
| 16622 | mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult1307 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1306 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1306 )::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16624, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect (!!(tryResult1307.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1306 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16624, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; return Ok{}; })))" , tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16627, mozilla::dom::quota::Severity::Error); return tryResult1307 .propagateErr(); }} | ||||
| 16623 | QM_TRY(MOZ_TO_RESULT({auto tryResult1307 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1306 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1306 )::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16624, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect (!!(tryResult1307.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1306 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16624, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; return Ok{}; })))" , tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16627, mozilla::dom::quota::Severity::Error); return tryResult1307 .propagateErr(); }} | ||||
| 16624 | updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion))));{auto tryResult1307 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1306 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1306 )::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16624, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect (!!(tryResult1307.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1306 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16624, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; return Ok{}; })))" , tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16627, mozilla::dom::quota::Severity::Error); return tryResult1307 .propagateErr(); }} | ||||
| 16625 | |||||
| 16626 | return Ok{};{auto tryResult1307 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1306 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1306 )::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16624, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect (!!(tryResult1307.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1306 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16624, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; return Ok{}; })))" , tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16627, mozilla::dom::quota::Severity::Error); return tryResult1307 .propagateErr(); }} | ||||
| 16627 | })))){auto tryResult1307 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1306 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1306 )::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16624, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect (!!(tryResult1307.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1306 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16624, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; return Ok{}; })))" , tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16627, mozilla::dom::quota::Severity::Error); return tryResult1307 .propagateErr(); }}; | ||||
| 16628 | |||||
| 16629 | return NS_OK; | ||||
| 16630 | } | ||||
| 16631 | |||||
| 16632 | TransactionOpResult OpenDatabaseOp::VersionChangeOp::SendSuccessResult() { | ||||
| 16633 | AssertIsOnOwningThread(); | ||||
| 16634 | MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16634 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 16634); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 16635 | MOZ_ASSERT(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16635 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { MOZ_CrashSequence(__null, 16635); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16636 | MOZ_ASSERT(mOpenDatabaseOp->mVersionChangeOp == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp->mVersionChangeOp == this)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mOpenDatabaseOp->mVersionChangeOp == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mVersionChangeOp == this" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16636 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this" ")"); do { MOZ_CrashSequence(__null, 16636); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16637 | |||||
| 16638 | nsresult rv = mOpenDatabaseOp->SendUpgradeNeeded(); | ||||
| 16639 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16639)) { | ||||
| 16640 | return rv; | ||||
| 16641 | } | ||||
| 16642 | |||||
| 16643 | return NS_OK; | ||||
| 16644 | } | ||||
| 16645 | |||||
| 16646 | bool OpenDatabaseOp::VersionChangeOp::SendFailureResult( | ||||
| 16647 | const TransactionOpResult& aResult) { | ||||
| 16648 | AssertIsOnOwningThread(); | ||||
| 16649 | MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16649 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 16649); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 16650 | MOZ_ASSERT(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16650 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { MOZ_CrashSequence(__null, 16650); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16651 | MOZ_ASSERT(mOpenDatabaseOp->mVersionChangeOp == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp->mVersionChangeOp == this)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mOpenDatabaseOp->mVersionChangeOp == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mVersionChangeOp == this" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16651 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this" ")"); do { MOZ_CrashSequence(__null, 16651); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16652 | |||||
| 16653 | mOpenDatabaseOp->SetFailureCode(aResult.mCode); | ||||
| 16654 | mOpenDatabaseOp->mState = State::SendingResults; | ||||
| 16655 | |||||
| 16656 | MOZ_ALWAYS_SUCCEEDS(mOpenDatabaseOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mOpenDatabaseOp->Run())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mOpenDatabaseOp->Run())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16656 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOpenDatabaseOp->Run())" ")"); do { MOZ_CrashSequence(__null, 16656); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 16657 | |||||
| 16658 | return false; | ||||
| 16659 | } | ||||
| 16660 | |||||
| 16661 | void OpenDatabaseOp::VersionChangeOp::Cleanup() { | ||||
| 16662 | AssertIsOnOwningThread(); | ||||
| 16663 | MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16663 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 16663); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 16664 | MOZ_ASSERT(mOpenDatabaseOp->mVersionChangeOp == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp->mVersionChangeOp == this)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mOpenDatabaseOp->mVersionChangeOp == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mVersionChangeOp == this" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16664 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this" ")"); do { MOZ_CrashSequence(__null, 16664); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16665 | |||||
| 16666 | mOpenDatabaseOp->mVersionChangeOp = nullptr; | ||||
| 16667 | mOpenDatabaseOp = nullptr; | ||||
| 16668 | |||||
| 16669 | #ifdef DEBUG1 | ||||
| 16670 | // A bit hacky but the VersionChangeOp is not generated in response to a | ||||
| 16671 | // child request like most other database operations. Do this to make our | ||||
| 16672 | // assertions happy. | ||||
| 16673 | // | ||||
| 16674 | // XXX: Depending on timing, in most cases, NoteActorDestroyed will not have | ||||
| 16675 | // been destroyed before, but in some cases it has. This should be reworked in | ||||
| 16676 | // a way this hack is not necessary. There are also several similar cases in | ||||
| 16677 | // other *Op classes. | ||||
| 16678 | if (!IsActorDestroyed()) { | ||||
| 16679 | NoteActorDestroyed(); | ||||
| 16680 | } | ||||
| 16681 | #endif | ||||
| 16682 | |||||
| 16683 | TransactionDatabaseOperationBase::Cleanup(); | ||||
| 16684 | } | ||||
| 16685 | |||||
| 16686 | void DeleteDatabaseOp::LoadPreviousVersion(nsIFile& aDatabaseFile) { | ||||
| 16687 | AssertIsOnIOThread(); | ||||
| 16688 | MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { MOZ_CrashSequence(__null, 16688); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16689 | MOZ_ASSERT(!mPreviousVersion)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mPreviousVersion)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mPreviousVersion))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mPreviousVersion" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16689 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPreviousVersion" ")"); do { MOZ_CrashSequence(__null, 16689); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16690 | |||||
| 16691 | AUTO_PROFILER_LABEL("DeleteDatabaseOp::LoadPreviousVersion", DOM)mozilla::AutoProfilerLabel raiiObject16691( "DeleteDatabaseOp::LoadPreviousVersion" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 16692 | |||||
| 16693 | nsresult rv; | ||||
| 16694 | |||||
| 16695 | nsCOMPtr<mozIStorageService> ss = | ||||
| 16696 | do_GetService(MOZ_STORAGE_SERVICE_CONTRACTID"@mozilla.org/storage/service;1", &rv); | ||||
| 16697 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16697)) { | ||||
| 16698 | return; | ||||
| 16699 | } | ||||
| 16700 | |||||
| 16701 | IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get(); | ||||
| 16702 | MOZ_ASSERT(idm)do { static_assert( mozilla::detail::AssertionConditionType< decltype(idm)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(idm))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("idm", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16702); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")"); do { MOZ_CrashSequence(__null, 16702); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 16703 | |||||
| 16704 | const PersistenceType persistenceType = | ||||
| 16705 | mCommonParams.metadata().persistenceType(); | ||||
| 16706 | const nsAString& databaseName = mCommonParams.metadata().name(); | ||||
| 16707 | |||||
| 16708 | SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager( | ||||
| 16709 | persistenceType, mOriginMetadata.mOrigin, databaseName); | ||||
| 16710 | |||||
| 16711 | if (!fileManager) { | ||||
| 16712 | fileManager = MakeSafeRefPtr<DatabaseFileManager>( | ||||
| 16713 | persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(), | ||||
| 16714 | mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing); | ||||
| 16715 | } | ||||
| 16716 | |||||
| 16717 | const auto maybeKey = | ||||
| 16718 | mInPrivateBrowsing | ||||
| 16719 | ? Some(fileManager->MutableCipherKeyManagerRef().Ensure()) | ||||
| 16720 | : Nothing(); | ||||
| 16721 | |||||
| 16722 | 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()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16722 ); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()" ")"); do { MOZ_CrashSequence(__null, 16722); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16723 | |||||
| 16724 | // Pass -1 as the directoryLockId to disable quota checking, since we might | ||||
| 16725 | // temporarily exceed quota before deleting the database. | ||||
| 16726 | QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult1308 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey )); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1308.unwrapErr() ; mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16727, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const auto& dbFileUrl = tryResult1308.inspect(); | ||||
| 16727 | GetDatabaseFileURL(aDatabaseFile, -1, maybeKey), QM_VOID)auto tryResult1308 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey )); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1308.unwrapErr() ; mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16727, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const auto& dbFileUrl = tryResult1308.inspect();; | ||||
| 16728 | |||||
| 16729 | QM_TRY_UNWRAP(const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1309 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl )); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1309.unwrapErr() ; mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16730, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult1309.unwrap(); | ||||
| 16730 | OpenDatabaseAndHandleBusy(*ss, *dbFileUrl), QM_VOID)auto tryResult1309 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl )); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1309.unwrapErr() ; mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16730, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult1309.unwrap();; | ||||
| 16731 | |||||
| 16732 | #ifdef DEBUG1 | ||||
| 16733 | { | ||||
| 16734 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1310 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1310.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16738, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const auto& stmt = tryResult1310.inspect(); | ||||
| 16735 | CreateAndExecuteSingleStepStatement<auto tryResult1310 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1310.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16738, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const auto& stmt = tryResult1310.inspect(); | ||||
| 16736 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult1310 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1310.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16738, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const auto& stmt = tryResult1310.inspect(); | ||||
| 16737 | *connection, "SELECT name FROM database"_ns),auto tryResult1310 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1310.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16738, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const auto& stmt = tryResult1310.inspect(); | ||||
| 16738 | QM_VOID)auto tryResult1310 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1310.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16738, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const auto& stmt = tryResult1310.inspect();; | ||||
| 16739 | |||||
| 16740 | QM_TRY(OkIf(stmt), QM_VOID){auto tryResult1311 = (OkIf(stmt)); static_assert(std::is_empty_v <typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect (!!(tryResult1311.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1311.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16740, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; }}; | ||||
| 16741 | |||||
| 16742 | nsString databaseName; | ||||
| 16743 | rv = stmt->GetString(0, databaseName); | ||||
| 16744 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16744)) { | ||||
| 16745 | return; | ||||
| 16746 | } | ||||
| 16747 | |||||
| 16748 | 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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16748 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCommonParams.metadata().name() == databaseName" ")"); do { MOZ_CrashSequence(__null, 16748); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16749 | } | ||||
| 16750 | #endif | ||||
| 16751 | |||||
| 16752 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1312 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1312.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16756, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const auto& stmt = tryResult1312.inspect(); | ||||
| 16753 | CreateAndExecuteSingleStepStatement<auto tryResult1312 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1312.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16756, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const auto& stmt = tryResult1312.inspect(); | ||||
| 16754 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult1312 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1312.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16756, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const auto& stmt = tryResult1312.inspect(); | ||||
| 16755 | *connection, "SELECT version FROM database"_ns),auto tryResult1312 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1312.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16756, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const auto& stmt = tryResult1312.inspect(); | ||||
| 16756 | QM_VOID)auto tryResult1312 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1312.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16756, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const auto& stmt = tryResult1312.inspect();; | ||||
| 16757 | |||||
| 16758 | QM_TRY(OkIf(stmt), QM_VOID){auto tryResult1313 = (OkIf(stmt)); static_assert(std::is_empty_v <typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect (!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16758, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; }}; | ||||
| 16759 | |||||
| 16760 | int64_t version; | ||||
| 16761 | rv = stmt->GetInt64(0, &version); | ||||
| 16762 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16762)) { | ||||
| 16763 | return; | ||||
| 16764 | } | ||||
| 16765 | |||||
| 16766 | mPreviousVersion = uint64_t(version); | ||||
| 16767 | } | ||||
| 16768 | |||||
| 16769 | nsresult DeleteDatabaseOp::DatabaseOpen() { | ||||
| 16770 | AssertIsOnOwningThread(); | ||||
| 16771 | MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16771); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending" ")"); do { MOZ_CrashSequence(__null, 16771); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16772 | |||||
| 16773 | nsresult rv = SendToIOThread(); | ||||
| 16774 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16774)) { | ||||
| 16775 | return rv; | ||||
| 16776 | } | ||||
| 16777 | |||||
| 16778 | return NS_OK; | ||||
| 16779 | } | ||||
| 16780 | |||||
| 16781 | nsresult DeleteDatabaseOp::DoDatabaseWork() { | ||||
| 16782 | AssertIsOnIOThread(); | ||||
| 16783 | MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16783); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { MOZ_CrashSequence(__null, 16783); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16784 | MOZ_ASSERT(mOriginMetadata.mPersistenceType ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOriginMetadata.mPersistenceType == mCommonParams.metadata ().persistenceType())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16785 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()" ")"); do { MOZ_CrashSequence(__null, 16785); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16785 | mCommonParams.metadata().persistenceType())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOriginMetadata.mPersistenceType == mCommonParams.metadata ().persistenceType())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16785 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()" ")"); do { MOZ_CrashSequence(__null, 16785); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16786 | |||||
| 16787 | AUTO_PROFILER_LABEL("DeleteDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16787( "DeleteDatabaseOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 16788 | |||||
| 16789 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16789) || | ||||
| 16790 | !OperationMayProceed()) { | ||||
| 16791 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16791, idbInternalErrMsg.get()); } while (0); | ||||
| 16792 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16793 | } | ||||
| 16794 | |||||
| 16795 | const nsAString& databaseName = mCommonParams.metadata().name(); | ||||
| 16796 | |||||
| 16797 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 16798 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 16798); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16799 | |||||
| 16800 | QM_TRY_UNWRAP(auto directory,auto tryResult1314 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16801, mozilla::dom::quota::Severity::Error); return tryResult1314 .propagateErr(); } auto directory = tryResult1314.unwrap(); | ||||
| 16801 | quotaManager->GetOriginDirectory(mOriginMetadata))auto tryResult1314 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16801, mozilla::dom::quota::Severity::Error); return tryResult1314 .propagateErr(); } auto directory = tryResult1314.unwrap();; | ||||
| 16802 | |||||
| 16803 | QM_TRY(MOZ_TO_RESULT({auto tryResult1315 = (ToResult(directory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1315 )::ok_type>); if ((__builtin_expect(!!(tryResult1315.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16804, mozilla::dom::quota::Severity::Error); return tryResult1315 .propagateErr(); }} | ||||
| 16804 | directory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1315 = (ToResult(directory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1315 )::ok_type>); if ((__builtin_expect(!!(tryResult1315.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16804, mozilla::dom::quota::Severity::Error); return tryResult1315 .propagateErr(); }}; | ||||
| 16805 | |||||
| 16806 | QM_TRY_UNWRAP(mDatabaseDirectoryPath, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1316 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (directory)>::GetPath), (directory) )); if ((__builtin_expect (!!(tryResult1316.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory) )" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16807, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } mDatabaseDirectoryPath = tryResult1316.unwrap (); | ||||
| 16807 | nsString, directory, GetPath))auto tryResult1316 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (directory)>::GetPath), (directory) )); if ((__builtin_expect (!!(tryResult1316.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory) )" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16807, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } mDatabaseDirectoryPath = tryResult1316.unwrap ();; | ||||
| 16808 | |||||
| 16809 | mDatabaseFilenameBase = | ||||
| 16810 | GetDatabaseFilenameBase(databaseName, mOriginMetadata.mIsPrivate); | ||||
| 16811 | |||||
| 16812 | QM_TRY_INSPECT(auto tryResult1317 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1317.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16814, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } const auto& dbFile = tryResult1317.inspect (); | ||||
| 16813 | const auto& dbFile,auto tryResult1317 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1317.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16814, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } const auto& dbFile = tryResult1317.inspect (); | ||||
| 16814 | CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix))auto tryResult1317 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1317.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16814, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } const auto& dbFile = tryResult1317.inspect ();; | ||||
| 16815 | |||||
| 16816 | #ifdef DEBUG1 | ||||
| 16817 | { | ||||
| 16818 | QM_TRY_INSPECT(auto tryResult1318 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!! (tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1318.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16820, mozilla::dom::quota::Severity::Error); return tryResult1318 .propagateErr(); } const auto& databaseFilePath = tryResult1318 .inspect(); | ||||
| 16819 | const auto& databaseFilePath,auto tryResult1318 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!! (tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1318.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16820, mozilla::dom::quota::Severity::Error); return tryResult1318 .propagateErr(); } const auto& databaseFilePath = tryResult1318 .inspect(); | ||||
| 16820 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult1318 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!! (tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1318.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16820, mozilla::dom::quota::Severity::Error); return tryResult1318 .propagateErr(); } const auto& databaseFilePath = tryResult1318 .inspect();; | ||||
| 16821 | |||||
| 16822 | MOZ_ASSERT(databaseFilePath == mDatabaseFilePath.ref())do { static_assert( mozilla::detail::AssertionConditionType< decltype(databaseFilePath == mDatabaseFilePath.ref())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(databaseFilePath == mDatabaseFilePath.ref()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("databaseFilePath == mDatabaseFilePath.ref()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()" ")"); do { MOZ_CrashSequence(__null, 16822); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16823 | } | ||||
| 16824 | #endif | ||||
| 16825 | |||||
| 16826 | QM_TRY_INSPECT(const bool& exists,auto tryResult1319 = (::mozilla::ToResultInvokeMember( (dbFile ), &::mozilla::detail::DerefedType<decltype(dbFile)> ::Exists )); if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists )" , tryResult1319.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16827, mozilla::dom::quota::Severity::Error); return tryResult1319 .propagateErr(); } const bool& exists = tryResult1319.inspect (); | ||||
| 16827 | MOZ_TO_RESULT_INVOKE_MEMBER(dbFile, Exists))auto tryResult1319 = (::mozilla::ToResultInvokeMember( (dbFile ), &::mozilla::detail::DerefedType<decltype(dbFile)> ::Exists )); if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists )" , tryResult1319.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16827, mozilla::dom::quota::Severity::Error); return tryResult1319 .propagateErr(); } const bool& exists = tryResult1319.inspect ();; | ||||
| 16828 | |||||
| 16829 | if (exists) { | ||||
| 16830 | // Parts of this function may fail but that shouldn't prevent us from | ||||
| 16831 | // deleting the file eventually. | ||||
| 16832 | LoadPreviousVersion(*dbFile); | ||||
| 16833 | |||||
| 16834 | mState = State::BeginVersionChange; | ||||
| 16835 | } else { | ||||
| 16836 | mState = State::SendingResults; | ||||
| 16837 | } | ||||
| 16838 | |||||
| 16839 | QM_TRY(MOZ_TO_RESULT({auto tryResult1320 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect (!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16840, mozilla::dom::quota::Severity::Error); return tryResult1320 .propagateErr(); }} | ||||
| 16840 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1320 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect (!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16840, mozilla::dom::quota::Severity::Error); return tryResult1320 .propagateErr(); }}; | ||||
| 16841 | |||||
| 16842 | return NS_OK; | ||||
| 16843 | } | ||||
| 16844 | |||||
| 16845 | nsresult DeleteDatabaseOp::BeginVersionChange() { | ||||
| 16846 | AssertIsOnOwningThread(); | ||||
| 16847 | MOZ_ASSERT(mState == State::BeginVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::BeginVersionChange", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16847); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange" ")"); do { MOZ_CrashSequence(__null, 16847); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16848 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16848); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16848); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16849 | |||||
| 16850 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16850) || | ||||
| 16851 | IsActorDestroyed()) { | ||||
| 16852 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16852, idbInternalErrMsg.get()); } while (0); | ||||
| 16853 | QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1321 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR )); static_assert(std::is_empty_v<typename decltype(tryResult1321 )::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)" , tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16853, mozilla::dom::quota::Severity::Error); return tryResult1321 .propagateErr(); }}; | ||||
| 16854 | } | ||||
| 16855 | |||||
| 16856 | DatabaseActorInfo* info; | ||||
| 16857 | if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { | ||||
| 16858 | MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16858 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16858); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16859 | |||||
| 16860 | nsresult rv = | ||||
| 16861 | SendVersionChangeMessages(info, Nothing(), mPreviousVersion, Nothing()); | ||||
| 16862 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16862)) { | ||||
| 16863 | return rv; | ||||
| 16864 | } | ||||
| 16865 | |||||
| 16866 | if (!mMaybeBlockedDatabases.IsEmpty()) { | ||||
| 16867 | // If the actor gets destroyed, mWaitingFactoryOp will hold the last | ||||
| 16868 | // strong reference to us. | ||||
| 16869 | info->mWaitingFactoryOp = this; | ||||
| 16870 | |||||
| 16871 | mState = State::WaitingForOtherDatabasesToClose; | ||||
| 16872 | return NS_OK; | ||||
| 16873 | } | ||||
| 16874 | } | ||||
| 16875 | |||||
| 16876 | // No other databases need to be notified, just make sure that all | ||||
| 16877 | // transactions are complete. | ||||
| 16878 | WaitForTransactions(); | ||||
| 16879 | return NS_OK; | ||||
| 16880 | } | ||||
| 16881 | |||||
| 16882 | bool DeleteDatabaseOp::AreActorsAlive() { | ||||
| 16883 | AssertIsOnOwningThread(); | ||||
| 16884 | |||||
| 16885 | return !IsActorDestroyed(); | ||||
| 16886 | } | ||||
| 16887 | |||||
| 16888 | nsresult DeleteDatabaseOp::DispatchToWorkThread() { | ||||
| 16889 | AssertIsOnOwningThread(); | ||||
| 16890 | MOZ_ASSERT(mState == State::WaitingForTransactionsToComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForTransactionsToComplete)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForTransactionsToComplete))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForTransactionsToComplete" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16890 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete" ")"); do { MOZ_CrashSequence(__null, 16890); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16891 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16891); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16891); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16892 | |||||
| 16893 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16893) || | ||||
| 16894 | IsActorDestroyed()) { | ||||
| 16895 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16895, idbInternalErrMsg.get()); } while (0); | ||||
| 16896 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16897 | } | ||||
| 16898 | |||||
| 16899 | mState = State::DatabaseWorkVersionChange; | ||||
| 16900 | |||||
| 16901 | RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this); | ||||
| 16902 | |||||
| 16903 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 16904 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16904); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 16904); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16905 | |||||
| 16906 | nsresult rv = quotaManager->IOThread()->Dispatch(versionChangeOp.forget(), | ||||
| 16907 | NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL); | ||||
| 16908 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16908)) { | ||||
| 16909 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16909, idbInternalErrMsg.get()); } while (0); | ||||
| 16910 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16911 | } | ||||
| 16912 | |||||
| 16913 | return NS_OK; | ||||
| 16914 | } | ||||
| 16915 | |||||
| 16916 | void DeleteDatabaseOp::SendBlockedNotification() { | ||||
| 16917 | AssertIsOnOwningThread(); | ||||
| 16918 | MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForOtherDatabasesToClose)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16918 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose" ")"); do { MOZ_CrashSequence(__null, 16918); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16919 | |||||
| 16920 | if (!IsActorDestroyed()) { | ||||
| 16921 | (void)SendBlocked(mPreviousVersion); | ||||
| 16922 | } | ||||
| 16923 | } | ||||
| 16924 | |||||
| 16925 | nsresult DeleteDatabaseOp::DoVersionUpdate() { | ||||
| 16926 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16926 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 16926); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 16927 | } | ||||
| 16928 | |||||
| 16929 | void DeleteDatabaseOp::SendResults() { | ||||
| 16930 | AssertIsOnOwningThread(); | ||||
| 16931 | MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::SendingResults", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16931); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16931); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16932 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16932); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16933 | |||||
| 16934 | DebugOnly<DatabaseActorInfo*> info = nullptr; | ||||
| 16935 | MOZ_ASSERT_IF(mDatabaseId.isSome() && gLiveDatabaseHashtable &&do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable && gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16937 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16937); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 16936 | gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info),do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable && gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16937 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16937); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 16937 | !info->mWaitingFactoryOp)do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable && gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16937 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16937); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 16938 | |||||
| 16939 | if (!IsActorDestroyed()) { | ||||
| 16940 | FactoryRequestResponse response; | ||||
| 16941 | |||||
| 16942 | if (!HasFailed()) { | ||||
| 16943 | response = DeleteDatabaseRequestResponse(mPreviousVersion); | ||||
| 16944 | } else { | ||||
| 16945 | response = ClampResultCode(ResultCode()); | ||||
| 16946 | } | ||||
| 16947 | |||||
| 16948 | (void)PBackgroundIDBFactoryRequestParent::Send__delete__(this, response); | ||||
| 16949 | } | ||||
| 16950 | |||||
| 16951 | { | ||||
| 16952 | auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle); | ||||
| 16953 | } | ||||
| 16954 | |||||
| 16955 | CleanupMetadata(); | ||||
| 16956 | |||||
| 16957 | FinishSendResults(); | ||||
| 16958 | } | ||||
| 16959 | |||||
| 16960 | nsresult DeleteDatabaseOp::VersionChangeOp::RunOnIOThread() { | ||||
| 16961 | AssertIsOnIOThread(); | ||||
| 16962 | MOZ_ASSERT(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { MOZ_CrashSequence(__null, 16962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16963 | |||||
| 16964 | AUTO_PROFILER_LABEL("DeleteDatabaseOp::VersionChangeOp::RunOnIOThread", DOM)mozilla::AutoProfilerLabel raiiObject16964( "DeleteDatabaseOp::VersionChangeOp::RunOnIOThread" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 16965 | |||||
| 16966 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16966) || | ||||
| 16967 | !OperationMayProceed()) { | ||||
| 16968 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16968, idbInternalErrMsg.get()); } while (0); | ||||
| 16969 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16970 | } | ||||
| 16971 | |||||
| 16972 | const PersistenceType& persistenceType = | ||||
| 16973 | mDeleteDatabaseOp->mCommonParams.metadata().persistenceType(); | ||||
| 16974 | |||||
| 16975 | QuotaManager* quotaManager = | ||||
| 16976 | mDeleteDatabaseOp->mEnforcingQuota ? QuotaManager::Get() : nullptr; | ||||
| 16977 | |||||
| 16978 | MOZ_ASSERT_IF(mDeleteDatabaseOp->mEnforcingQuota, quotaManager)do { if (mDeleteDatabaseOp->mEnforcingQuota) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(quotaManager )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16978); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 16978); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 16979 | |||||
| 16980 | nsCOMPtr<nsIFile> directory = | ||||
| 16981 | GetFileForPath(mDeleteDatabaseOp->mDatabaseDirectoryPath); | ||||
| 16982 | if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16982)) { | ||||
| 16983 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16983, idbInternalErrMsg.get()); } while (0); | ||||
| 16984 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16985 | } | ||||
| 16986 | |||||
| 16987 | nsresult rv = RemoveDatabaseFilesAndDirectory( | ||||
| 16988 | *directory, mDeleteDatabaseOp->mDatabaseFilenameBase, quotaManager, | ||||
| 16989 | persistenceType, mDeleteDatabaseOp->mOriginMetadata, | ||||
| 16990 | mDeleteDatabaseOp->mCommonParams.metadata().name()); | ||||
| 16991 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16991)) { | ||||
| 16992 | return rv; | ||||
| 16993 | } | ||||
| 16994 | |||||
| 16995 | rv = mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL); | ||||
| 16996 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16996)) { | ||||
| 16997 | return rv; | ||||
| 16998 | } | ||||
| 16999 | |||||
| 17000 | return NS_OK; | ||||
| 17001 | } | ||||
| 17002 | |||||
| 17003 | void DeleteDatabaseOp::VersionChangeOp::RunOnOwningThread() { | ||||
| 17004 | AssertIsOnOwningThread(); | ||||
| 17005 | MOZ_ASSERT(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17005 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { MOZ_CrashSequence(__null, 17005); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17006 | |||||
| 17007 | const RefPtr<DeleteDatabaseOp> deleteOp = std::move(mDeleteDatabaseOp); | ||||
| 17008 | |||||
| 17009 | if (deleteOp->IsActorDestroyed()) { | ||||
| 17010 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17010, idbInternalErrMsg.get()); } while (0); | ||||
| 17011 | deleteOp->SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | ||||
| 17012 | } else if (HasFailed()) { | ||||
| 17013 | deleteOp->SetFailureCodeIfUnset(ResultCode()); | ||||
| 17014 | } else { | ||||
| 17015 | DatabaseActorInfo* info; | ||||
| 17016 | |||||
| 17017 | // Inform all the other databases that they are now invalidated. That | ||||
| 17018 | // should remove the previous metadata from our table. | ||||
| 17019 | if (gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref(), &info)) { | ||||
| 17020 | MOZ_ASSERT(!info->mLiveDatabases.isEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mLiveDatabases.isEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mLiveDatabases.isEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!info->mLiveDatabases.isEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17020); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.isEmpty()" ")"); do { MOZ_CrashSequence(__null, 17020); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17021 | MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17021 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 17021); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17022 | |||||
| 17023 | nsTArray<SafeRefPtr<Database>> liveDatabases; | ||||
| 17024 | if (NS_WARN_IF(!liveDatabases.SetCapacity(info->mLiveDatabases.length(),NS_warn_if_impl(!liveDatabases.SetCapacity(info->mLiveDatabases .length(), fallible), "!liveDatabases.SetCapacity(info->mLiveDatabases.length(), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17025 ) | ||||
| 17025 | fallible))NS_warn_if_impl(!liveDatabases.SetCapacity(info->mLiveDatabases .length(), fallible), "!liveDatabases.SetCapacity(info->mLiveDatabases.length(), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17025 )) { | ||||
| 17026 | deleteOp->SetFailureCode(NS_ERROR_OUT_OF_MEMORY); | ||||
| 17027 | } else { | ||||
| 17028 | std::transform(info->mLiveDatabases.begin(), info->mLiveDatabases.end(), | ||||
| 17029 | MakeBackInserter(liveDatabases), | ||||
| 17030 | [](Database* const aDatabase) -> SafeRefPtr<Database> { | ||||
| 17031 | return {aDatabase, AcquireStrongRefFromRawPtr{}}; | ||||
| 17032 | }); | ||||
| 17033 | |||||
| 17034 | #ifdef DEBUG1 | ||||
| 17035 | // The code below should result in the deletion of |info|. Set to null | ||||
| 17036 | // here to make sure we find invalid uses later. | ||||
| 17037 | info = nullptr; | ||||
| 17038 | #endif | ||||
| 17039 | |||||
| 17040 | for (const auto& database : liveDatabases) { | ||||
| 17041 | database->Invalidate(); | ||||
| 17042 | } | ||||
| 17043 | |||||
| 17044 | MOZ_ASSERT(!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId .ref()))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId .ref())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17044 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref())" ")"); do { MOZ_CrashSequence(__null, 17044); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17045 | } | ||||
| 17046 | } | ||||
| 17047 | } | ||||
| 17048 | |||||
| 17049 | // We hold a strong ref to the deleteOp, so it's safe to call Run() directly. | ||||
| 17050 | |||||
| 17051 | deleteOp->mState = State::SendingResults; | ||||
| 17052 | MOZ_ALWAYS_SUCCEEDS(deleteOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (deleteOp->Run())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(deleteOp->Run())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17052 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(deleteOp->Run())" ")"); do { MOZ_CrashSequence(__null, 17052); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 17053 | |||||
| 17054 | #ifdef DEBUG1 | ||||
| 17055 | // A bit hacky but the DeleteDatabaseOp::VersionChangeOp is not really a | ||||
| 17056 | // normal database operation that is tied to an actor. Do this to make our | ||||
| 17057 | // assertions happy. | ||||
| 17058 | NoteActorDestroyed(); | ||||
| 17059 | #endif | ||||
| 17060 | } | ||||
| 17061 | |||||
| 17062 | nsresult DeleteDatabaseOp::VersionChangeOp::Run() { | ||||
| 17063 | nsresult rv; | ||||
| 17064 | |||||
| 17065 | if (IsOnIOThread()) { | ||||
| 17066 | rv = RunOnIOThread(); | ||||
| 17067 | } else { | ||||
| 17068 | RunOnOwningThread(); | ||||
| 17069 | rv = NS_OK; | ||||
| 17070 | } | ||||
| 17071 | |||||
| 17072 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17072)) { | ||||
| 17073 | SetFailureCodeIfUnset(rv); | ||||
| 17074 | |||||
| 17075 | MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17075 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 17075); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 17076 | } | ||||
| 17077 | |||||
| 17078 | return NS_OK; | ||||
| 17079 | } | ||||
| 17080 | |||||
| 17081 | nsresult GetDatabasesOp::DatabasesNotAvailable() { | ||||
| 17082 | AssertIsOnIOThread(); | ||||
| 17083 | MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17083); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { MOZ_CrashSequence(__null, 17083); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17084 | |||||
| 17085 | mState = State::SendingResults; | ||||
| 17086 | |||||
| 17087 | QM_TRY(MOZ_TO_RESULT({auto tryResult1322 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect (!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17088, mozilla::dom::quota::Severity::Error); return tryResult1322 .propagateErr(); }} | ||||
| 17088 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1322 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect (!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17088, mozilla::dom::quota::Severity::Error); return tryResult1322 .propagateErr(); }}; | ||||
| 17089 | |||||
| 17090 | return NS_OK; | ||||
| 17091 | } | ||||
| 17092 | |||||
| 17093 | nsresult GetDatabasesOp::DoDirectoryWork() { | ||||
| 17094 | AssertIsOnIOThread(); | ||||
| 17095 | MOZ_ASSERT(mState == State::DirectoryWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DirectoryWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DirectoryWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17095); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkOpen" ")"); do { MOZ_CrashSequence(__null, 17095); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17096 | |||||
| 17097 | // This state (DirectoryWorkOpen) runs immediately on the I/O thread, before | ||||
| 17098 | // waiting for existing factory operations to complete (at which point | ||||
| 17099 | // DoDatabaseWork will be invoked). To match the spec, we must snapshot the | ||||
| 17100 | // current state of any databases that are being created (version = 0) or | ||||
| 17101 | // upgraded (version >= 1) now. If we only sampled these values in | ||||
| 17102 | // DoDatabaseWork, we would only see their post-creation/post-upgrade | ||||
| 17103 | // versions, which would be incorrect. | ||||
| 17104 | |||||
| 17105 | IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get(); | ||||
| 17106 | MOZ_ASSERT(idm)do { static_assert( mozilla::detail::AssertionConditionType< decltype(idm)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(idm))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("idm", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17106); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")"); do { MOZ_CrashSequence(__null, 17106); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 17107 | |||||
| 17108 | const auto& fileManagers = | ||||
| 17109 | idm->GetFileManagers(mPersistenceType, mOriginMetadata.mOrigin); | ||||
| 17110 | |||||
| 17111 | for (const auto& fileManager : fileManagers) { | ||||
| 17112 | auto& metadata = | ||||
| 17113 | mDatabaseMetadataTable.LookupOrInsert(fileManager->DatabaseFilePath()); | ||||
| 17114 | metadata.name() = fileManager->DatabaseName(); | ||||
| 17115 | metadata.version() = fileManager->DatabaseVersion(); | ||||
| 17116 | } | ||||
| 17117 | |||||
| 17118 | // Must set this before dispatching otherwise we will race with the IO thread. | ||||
| 17119 | mState = State::DirectoryWorkDone; | ||||
| 17120 | |||||
| 17121 | QM_TRY(MOZ_TO_RESULT(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))){auto tryResult1323 = (ToResult(mOwningEventTarget->Dispatch (this, nsIEventTarget::DISPATCH_NORMAL))); static_assert(std:: is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17121, mozilla::dom::quota::Severity::Error); return tryResult1323 .propagateErr(); }}; | ||||
| 17122 | |||||
| 17123 | return NS_OK; | ||||
| 17124 | } | ||||
| 17125 | |||||
| 17126 | nsresult GetDatabasesOp::DatabaseOpen() { | ||||
| 17127 | AssertIsOnOwningThread(); | ||||
| 17128 | MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17128); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending" ")"); do { MOZ_CrashSequence(__null, 17128); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17129 | |||||
| 17130 | nsresult rv = SendToIOThread(); | ||||
| 17131 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17131)) { | ||||
| 17132 | return rv; | ||||
| 17133 | } | ||||
| 17134 | |||||
| 17135 | return NS_OK; | ||||
| 17136 | } | ||||
| 17137 | |||||
| 17138 | nsresult GetDatabasesOp::DoDatabaseWork() { | ||||
| 17139 | AssertIsOnIOThread(); | ||||
| 17140 | MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17140); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { MOZ_CrashSequence(__null, 17140); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17141 | |||||
| 17142 | AUTO_PROFILER_LABEL("GetDatabasesOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17142( "GetDatabasesOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 17143 | |||||
| 17144 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17144) || | ||||
| 17145 | !OperationMayProceed()) { | ||||
| 17146 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17146, idbInternalErrMsg.get()); } while (0); | ||||
| 17147 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 17148 | } | ||||
| 17149 | |||||
| 17150 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 17151 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17151); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 17151); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17152 | |||||
| 17153 | { | ||||
| 17154 | QM_TRY_INSPECT(const bool& exists,auto tryResult1324 = (quotaManager->DoesOriginDirectoryExist (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1324.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)" , tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17155, mozilla::dom::quota::Severity::Error); return tryResult1324 .propagateErr(); } const bool& exists = tryResult1324.inspect (); | ||||
| 17155 | quotaManager->DoesOriginDirectoryExist(mOriginMetadata))auto tryResult1324 = (quotaManager->DoesOriginDirectoryExist (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1324.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)" , tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17155, mozilla::dom::quota::Severity::Error); return tryResult1324 .propagateErr(); } const bool& exists = tryResult1324.inspect ();; | ||||
| 17156 | if (!exists) { | ||||
| 17157 | return DatabasesNotAvailable(); | ||||
| 17158 | } | ||||
| 17159 | } | ||||
| 17160 | |||||
| 17161 | // XXX Is this really needed ? | ||||
| 17162 | QM_TRY((["aManager,{auto tryResult1327 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1325 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325 ;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1327)::ok_type >); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17171, mozilla::dom::quota::Severity::Error); return tryResult1327 .propagateErr(); }} | ||||
| 17163 | this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> {{auto tryResult1327 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1325 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325 ;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1327)::ok_type >); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17171, mozilla::dom::quota::Severity::Error); return tryResult1327 .propagateErr(); }} | ||||
| 17164 | if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {{auto tryResult1327 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1325 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325 ;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1327)::ok_type >); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17171, mozilla::dom::quota::Severity::Error); return tryResult1327 .propagateErr(); }} | ||||
| 17165 | QM_TRY_RETURN(quotaManager->GetOriginDirectory(mOriginMetadata));{auto tryResult1327 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1325 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325 ;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1327)::ok_type >); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17171, mozilla::dom::quota::Severity::Error); return tryResult1327 .propagateErr(); }} | ||||
| 17166 | }{auto tryResult1327 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1325 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325 ;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1327)::ok_type >); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17171, mozilla::dom::quota::Severity::Error); return tryResult1327 .propagateErr(); }} | ||||
| 17167 | |||||
| 17168 | QM_TRY_RETURN({auto tryResult1327 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1325 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325 ;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1327)::ok_type >); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17171, mozilla::dom::quota::Severity::Error); return tryResult1327 .propagateErr(); }} | ||||
| 17169 | quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata));{auto tryResult1327 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1325 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325 ;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1327)::ok_type >); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17171, mozilla::dom::quota::Severity::Error); return tryResult1327 .propagateErr(); }} | ||||
| 17170 | }(){auto tryResult1327 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1325 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325 ;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1327)::ok_type >); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17171, mozilla::dom::quota::Severity::Error); return tryResult1327 .propagateErr(); }} | ||||
| 17171 | .map([](const auto& res) { return Ok{}; }))){auto tryResult1327 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1325 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325 ;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1327)::ok_type >); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1325 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17165, mozilla::dom::quota::Severity::Error); } return tryResult1325;}; } {auto tryResult1326 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17169, mozilla::dom::quota::Severity::Error); } return tryResult1326;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17171, mozilla::dom::quota::Severity::Error); return tryResult1327 .propagateErr(); }}; | ||||
| 17172 | |||||
| 17173 | { | ||||
| 17174 | QM_TRY_INSPECT(const bool& exists,auto tryResult1328 = (quotaManager->DoesClientDirectoryExist ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17176, mozilla::dom::quota::Severity::Error); return tryResult1328 .propagateErr(); } const bool& exists = tryResult1328.inspect (); | ||||
| 17175 | quotaManager->DoesClientDirectoryExist(auto tryResult1328 = (quotaManager->DoesClientDirectoryExist ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17176, mozilla::dom::quota::Severity::Error); return tryResult1328 .propagateErr(); } const bool& exists = tryResult1328.inspect (); | ||||
| 17176 | ClientMetadata{mOriginMetadata, Client::IDB}))auto tryResult1328 = (quotaManager->DoesClientDirectoryExist ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17176, mozilla::dom::quota::Severity::Error); return tryResult1328 .propagateErr(); } const bool& exists = tryResult1328.inspect ();; | ||||
| 17177 | if (!exists) { | ||||
| 17178 | return DatabasesNotAvailable(); | ||||
| 17179 | } | ||||
| 17180 | } | ||||
| 17181 | |||||
| 17182 | QM_TRY_INSPECT(auto tryResult1331 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329 ;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1330.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17195, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } const auto& clientDirectory = tryResult1331 .inspect(); | ||||
| 17183 | const auto& clientDirectory,auto tryResult1331 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329 ;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1330.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17195, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } const auto& clientDirectory = tryResult1331 .inspect(); | ||||
| 17184 | (["aManager, this]()auto tryResult1331 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329 ;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1330.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17195, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } const auto& clientDirectory = tryResult1331 .inspect(); | ||||
| 17185 | -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> {auto tryResult1331 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329 ;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1330.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17195, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } const auto& clientDirectory = tryResult1331 .inspect(); | ||||
| 17186 | if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult1331 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329 ;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1330.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17195, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } const auto& clientDirectory = tryResult1331 .inspect(); | ||||
| 17187 | QM_TRY_RETURN(quotaManager->EnsurePersistentClientIsInitialized(auto tryResult1331 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329 ;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1330.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17195, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } const auto& clientDirectory = tryResult1331 .inspect(); | ||||
| 17188 | ClientMetadata{mOriginMetadata, Client::IDB}));auto tryResult1331 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329 ;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1330.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17195, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } const auto& clientDirectory = tryResult1331 .inspect(); | ||||
| 17189 | }auto tryResult1331 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329 ;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1330.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17195, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } const auto& clientDirectory = tryResult1331 .inspect(); | ||||
| 17190 | |||||
| 17191 | QM_TRY_RETURN(quotaManager->EnsureTemporaryClientIsInitialized(auto tryResult1331 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329 ;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1330.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17195, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } const auto& clientDirectory = tryResult1331 .inspect(); | ||||
| 17192 | ClientMetadata{mOriginMetadata, Client::IDB},auto tryResult1331 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329 ;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1330.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17195, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } const auto& clientDirectory = tryResult1331 .inspect(); | ||||
| 17193 | /* aCreateIfNonExistent */ true));auto tryResult1331 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329 ;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1330.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17195, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } const auto& clientDirectory = tryResult1331 .inspect(); | ||||
| 17194 | }()auto tryResult1331 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329 ;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1330.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17195, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } const auto& clientDirectory = tryResult1331 .inspect(); | ||||
| 17195 | .map([](const auto& res) { return res.first; })))auto tryResult1331 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329 ;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1329 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17188, mozilla::dom::quota::Severity::Error); } return tryResult1329;}; } {auto tryResult1330 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1330.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17193, mozilla::dom::quota::Severity::Error); } return tryResult1330;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17195, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } const auto& clientDirectory = tryResult1331 .inspect();; | ||||
| 17196 | |||||
| 17197 | QM_TRY_INSPECT(auto tryResult1332 = (QuotaClient::GetDatabaseFilenames(*clientDirectory , Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1332 .isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})" , tryResult1332.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17200, mozilla::dom::quota::Severity::Error); return tryResult1332 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult1332.inspect(); | ||||
| 17198 | (const auto& [subdirsToProcess, databaseFilenames]),auto tryResult1332 = (QuotaClient::GetDatabaseFilenames(*clientDirectory , Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1332 .isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})" , tryResult1332.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17200, mozilla::dom::quota::Severity::Error); return tryResult1332 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult1332.inspect(); | ||||
| 17199 | QuotaClient::GetDatabaseFilenames(*clientDirectory,auto tryResult1332 = (QuotaClient::GetDatabaseFilenames(*clientDirectory , Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1332 .isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})" , tryResult1332.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17200, mozilla::dom::quota::Severity::Error); return tryResult1332 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult1332.inspect(); | ||||
| 17200 | /* aCanceled */ Atomic<bool>{false}))auto tryResult1332 = (QuotaClient::GetDatabaseFilenames(*clientDirectory , Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1332 .isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})" , tryResult1332.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17200, mozilla::dom::quota::Severity::Error); return tryResult1332 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult1332.inspect();; | ||||
| 17201 | |||||
| 17202 | for (const auto& databaseFilename : databaseFilenames) { | ||||
| 17203 | QM_TRY_INSPECT(auto tryResult1333 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1333.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)" , tryResult1333.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17205, mozilla::dom::quota::Severity::Error); return tryResult1333 .propagateErr(); } const auto& databaseFile = tryResult1333 .inspect(); | ||||
| 17204 | const auto& databaseFile,auto tryResult1333 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1333.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)" , tryResult1333.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17205, mozilla::dom::quota::Severity::Error); return tryResult1333 .propagateErr(); } const auto& databaseFile = tryResult1333 .inspect(); | ||||
| 17205 | CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix))auto tryResult1333 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1333.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)" , tryResult1333.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17205, mozilla::dom::quota::Severity::Error); return tryResult1333 .propagateErr(); } const auto& databaseFile = tryResult1333 .inspect();; | ||||
| 17206 | |||||
| 17207 | nsString path; | ||||
| 17208 | databaseFile->GetPath(path); | ||||
| 17209 | |||||
| 17210 | // Use the snapshotted values from DoDirectoryWork which correctly | ||||
| 17211 | // snapshotted the state of any pending creations/upgrades. This does mean | ||||
| 17212 | // that we need to skip reporting databases that had a version of 0 at that | ||||
| 17213 | // time because they were still being created. In the event that any other | ||||
| 17214 | // creation or upgrade requests are made after our operation is created, | ||||
| 17215 | // this operation will block those, so it's not possible for this set of | ||||
| 17216 | // data to get out of sync. The snapshotting (using cached database name | ||||
| 17217 | // and version in DatabaseFileManager) also guarantees that we are not | ||||
| 17218 | // touching the SQLite database here on the QuotaManager I/O thread which | ||||
| 17219 | // is already open on the connection thread. | ||||
| 17220 | |||||
| 17221 | auto metadata = mDatabaseMetadataTable.Lookup(path); | ||||
| 17222 | if (metadata) { | ||||
| 17223 | if (metadata->version() != 0) { | ||||
| 17224 | mDatabaseMetadataArray.AppendElement(DatabaseMetadata( | ||||
| 17225 | metadata->name(), metadata->version(), mPersistenceType)); | ||||
| 17226 | } | ||||
| 17227 | |||||
| 17228 | continue; | ||||
| 17229 | } | ||||
| 17230 | |||||
| 17231 | // Since the database is not already open (there was no DatabaseFileManager | ||||
| 17232 | // for snapshotting in DoDirectoryWork which could provide us with the | ||||
| 17233 | // database name and version without needing to open the SQLite database), | ||||
| 17234 | // it is safe and necessary for us to open the database on this thread and | ||||
| 17235 | // retrieve its name and version. We do not need to worry about racing a | ||||
| 17236 | // database open because database opens can only be processed on this | ||||
| 17237 | // thread and we are performing the steps below synchronously. | ||||
| 17238 | |||||
| 17239 | QM_TRY_INSPECT(auto tryResult1334 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1334.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1334.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17242, mozilla::dom::quota::Severity::Error); return tryResult1334 .propagateErr(); } const auto& fmDirectory = tryResult1334 .inspect(); | ||||
| 17240 | const auto& fmDirectory,auto tryResult1334 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1334.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1334.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17242, mozilla::dom::quota::Severity::Error); return tryResult1334 .propagateErr(); } const auto& fmDirectory = tryResult1334 .inspect(); | ||||
| 17241 | CloneFileAndAppend(*clientDirectory,auto tryResult1334 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1334.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1334.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17242, mozilla::dom::quota::Severity::Error); return tryResult1334 .propagateErr(); } const auto& fmDirectory = tryResult1334 .inspect(); | ||||
| 17242 | databaseFilename + kFileManagerDirectoryNameSuffix))auto tryResult1334 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1334.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1334.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17242, mozilla::dom::quota::Severity::Error); return tryResult1334 .propagateErr(); } const auto& fmDirectory = tryResult1334 .inspect();; | ||||
| 17243 | |||||
| 17244 | QM_TRY_UNWRAP(auto tryResult1335 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult1335.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult1335.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17248, mozilla::dom::quota::Severity::Error); return tryResult1335 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1335.unwrap(); | ||||
| 17245 | const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1335 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult1335.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult1335.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17248, mozilla::dom::quota::Severity::Error); return tryResult1335 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1335.unwrap(); | ||||
| 17246 | CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(),auto tryResult1335 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult1335.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult1335.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17248, mozilla::dom::quota::Severity::Error); return tryResult1335 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1335.unwrap(); | ||||
| 17247 | mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult1335 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult1335.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult1335.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17248, mozilla::dom::quota::Severity::Error); return tryResult1335 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1335.unwrap(); | ||||
| 17248 | TelemetryIdForFile(databaseFile), Nothing{}))auto tryResult1335 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult1335.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult1335.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17248, mozilla::dom::quota::Severity::Error); return tryResult1335 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1335.unwrap();; | ||||
| 17249 | |||||
| 17250 | { | ||||
| 17251 | // Load version information. | ||||
| 17252 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1336 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1336.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)" , tryResult1336.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17255, mozilla::dom::quota::Severity::Error); return tryResult1336 .propagateErr(); } const auto& stmt = tryResult1336.inspect (); | ||||
| 17253 | CreateAndExecuteSingleStepStatement<auto tryResult1336 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1336.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)" , tryResult1336.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17255, mozilla::dom::quota::Severity::Error); return tryResult1336 .propagateErr(); } const auto& stmt = tryResult1336.inspect (); | ||||
| 17254 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult1336 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1336.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)" , tryResult1336.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17255, mozilla::dom::quota::Severity::Error); return tryResult1336 .propagateErr(); } const auto& stmt = tryResult1336.inspect (); | ||||
| 17255 | *connection, "SELECT name, version FROM database"_ns))auto tryResult1336 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1336.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)" , tryResult1336.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17255, mozilla::dom::quota::Severity::Error); return tryResult1336 .propagateErr(); } const auto& stmt = tryResult1336.inspect ();; | ||||
| 17256 | |||||
| 17257 | QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult1337 = (OkIf(stmt)); static_assert(std::is_empty_v <typename decltype(tryResult1337)::ok_type>); if ((__builtin_expect (!!(tryResult1337.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1337.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17257, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(stmt)", tryTempError , NS_ERROR_FILE_CORRUPTED); }}; | ||||
| 17258 | |||||
| 17259 | QM_TRY_INSPECT(auto tryResult1338 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult1338.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult1338.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17261, mozilla::dom::quota::Severity::Error); return tryResult1338 .propagateErr(); } const auto& databaseName = tryResult1338 .inspect(); | ||||
| 17260 | const auto& databaseName,auto tryResult1338 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult1338.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult1338.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17261, mozilla::dom::quota::Severity::Error); return tryResult1338 .propagateErr(); } const auto& databaseName = tryResult1338 .inspect(); | ||||
| 17261 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, stmt, GetString, 0))auto tryResult1338 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult1338.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult1338.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17261, mozilla::dom::quota::Severity::Error); return tryResult1338 .propagateErr(); } const auto& databaseName = tryResult1338 .inspect();; | ||||
| 17262 | |||||
| 17263 | QM_TRY_INSPECT(const int64_t& version,auto tryResult1339 = (::mozilla::ToResultInvokeMember( (stmt) , &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1339.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1339.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17264, mozilla::dom::quota::Severity::Error); return tryResult1339 .propagateErr(); } const int64_t& version = tryResult1339 .inspect(); | ||||
| 17264 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1))auto tryResult1339 = (::mozilla::ToResultInvokeMember( (stmt) , &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1339.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1339.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17264, mozilla::dom::quota::Severity::Error); return tryResult1339 .propagateErr(); } const int64_t& version = tryResult1339 .inspect();; | ||||
| 17265 | |||||
| 17266 | mDatabaseMetadataArray.AppendElement( | ||||
| 17267 | DatabaseMetadata(databaseName, version, mPersistenceType)); | ||||
| 17268 | } | ||||
| 17269 | } | ||||
| 17270 | |||||
| 17271 | mState = State::SendingResults; | ||||
| 17272 | |||||
| 17273 | QM_TRY(MOZ_TO_RESULT({auto tryResult1340 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1340)::ok_type>); if ((__builtin_expect (!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17274, mozilla::dom::quota::Severity::Error); return tryResult1340 .propagateErr(); }} | ||||
| 17274 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1340 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1340)::ok_type>); if ((__builtin_expect (!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17274, mozilla::dom::quota::Severity::Error); return tryResult1340 .propagateErr(); }}; | ||||
| 17275 | |||||
| 17276 | return NS_OK; | ||||
| 17277 | } | ||||
| 17278 | |||||
| 17279 | nsresult GetDatabasesOp::BeginVersionChange() { | ||||
| 17280 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17280 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 17280); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 17281 | } | ||||
| 17282 | |||||
| 17283 | bool GetDatabasesOp::AreActorsAlive() { | ||||
| 17284 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17284 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 17284); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 17285 | } | ||||
| 17286 | |||||
| 17287 | void GetDatabasesOp::SendBlockedNotification() { | ||||
| 17288 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17288 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 17288); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 17289 | } | ||||
| 17290 | |||||
| 17291 | nsresult GetDatabasesOp::DispatchToWorkThread() { | ||||
| 17292 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17292 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 17292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 17293 | } | ||||
| 17294 | |||||
| 17295 | nsresult GetDatabasesOp::DoVersionUpdate() { | ||||
| 17296 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17296 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 17296); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 17297 | } | ||||
| 17298 | |||||
| 17299 | void GetDatabasesOp::SendResults() { | ||||
| 17300 | AssertIsOnOwningThread(); | ||||
| 17301 | MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::SendingResults", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 17301); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17302 | |||||
| 17303 | #ifdef DEBUG1 | ||||
| 17304 | NoteActorDestroyed(); | ||||
| 17305 | #endif | ||||
| 17306 | |||||
| 17307 | if (HasFailed()) { | ||||
| 17308 | mResolver(ClampResultCode(ResultCode())); | ||||
| 17309 | } else { | ||||
| 17310 | std::sort(mDatabaseMetadataArray.begin(), mDatabaseMetadataArray.end(), | ||||
| 17311 | [](const auto& a, const auto& b) { return a.name() < b.name(); }); | ||||
| 17312 | mResolver(mDatabaseMetadataArray); | ||||
| 17313 | } | ||||
| 17314 | |||||
| 17315 | { | ||||
| 17316 | auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle); | ||||
| 17317 | } | ||||
| 17318 | |||||
| 17319 | CleanupMetadata(); | ||||
| 17320 | |||||
| 17321 | FinishSendResults(); | ||||
| 17322 | } | ||||
| 17323 | |||||
| 17324 | TransactionDatabaseOperationBase::TransactionDatabaseOperationBase( | ||||
| 17325 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId) | ||||
| 17326 | : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(), | ||||
| 17327 | aTransaction->GetLoggingInfo()->NextRequestSN()), | ||||
| 17328 | mTransaction(WrapNotNull(std::move(aTransaction))), | ||||
| 17329 | mRequestId(aRequestId), | ||||
| 17330 | mTransactionIsAborted((*mTransaction)->IsAborted()), | ||||
| 17331 | mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) { | ||||
| 17332 | MOZ_ASSERT(LoggingSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType< decltype(LoggingSerialNumber())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(LoggingSerialNumber()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("LoggingSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17332 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()" ")"); do { MOZ_CrashSequence(__null, 17332); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17333 | } | ||||
| 17334 | |||||
| 17335 | TransactionDatabaseOperationBase::TransactionDatabaseOperationBase( | ||||
| 17336 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 17337 | uint64_t aLoggingSerialNumber) | ||||
| 17338 | : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(), | ||||
| 17339 | aLoggingSerialNumber), | ||||
| 17340 | mTransaction(WrapNotNull(std::move(aTransaction))), | ||||
| 17341 | mRequestId(aRequestId), | ||||
| 17342 | mTransactionIsAborted((*mTransaction)->IsAborted()), | ||||
| 17343 | mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) {} | ||||
| 17344 | |||||
| 17345 | TransactionDatabaseOperationBase::~TransactionDatabaseOperationBase() { | ||||
| 17346 | MOZ_ASSERT(mInternalState == InternalState::Completed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::Completed)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::Completed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Completed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17346 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Completed" ")"); do { MOZ_CrashSequence(__null, 17346); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17347 | MOZ_ASSERT(!mNotedActiveRequest)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mNotedActiveRequest)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mNotedActiveRequest))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mNotedActiveRequest" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17347 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mNotedActiveRequest" ")"); do { MOZ_CrashSequence(__null, 17347); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17348 | MOZ_ASSERT(!mTransaction,do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransaction" " (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17350); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction" ") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")"); do { MOZ_CrashSequence(__null, 17350); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17349 | "TransactionDatabaseOperationBase::Cleanup() was not called by a "do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransaction" " (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17350); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction" ") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")"); do { MOZ_CrashSequence(__null, 17350); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17350 | "subclass!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransaction" " (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17350); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction" ") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")"); do { MOZ_CrashSequence(__null, 17350); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17351 | } | ||||
| 17352 | |||||
| 17353 | #ifdef DEBUG1 | ||||
| 17354 | |||||
| 17355 | void TransactionDatabaseOperationBase::AssertIsOnConnectionThread() const { | ||||
| 17356 | (*mTransaction)->AssertIsOnConnectionThread(); | ||||
| 17357 | } | ||||
| 17358 | |||||
| 17359 | #endif // DEBUG | ||||
| 17360 | |||||
| 17361 | uint64_t TransactionDatabaseOperationBase::StartOnConnectionPool( | ||||
| 17362 | const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId, | ||||
| 17363 | int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames, | ||||
| 17364 | bool aIsWriteTransaction) { | ||||
| 17365 | AssertIsOnOwningThread(); | ||||
| 17366 | MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::Initial)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17366 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial" ")"); do { MOZ_CrashSequence(__null, 17366); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17367 | |||||
| 17368 | // Must set mInternalState before dispatching otherwise we will race with the | ||||
| 17369 | // connection thread. | ||||
| 17370 | mInternalState = InternalState::DatabaseWork; | ||||
| 17371 | |||||
| 17372 | return gConnectionPool->Start(aBackgroundChildLoggingId, aDatabaseId, | ||||
| 17373 | aLoggingSerialNumber, aObjectStoreNames, | ||||
| 17374 | aIsWriteTransaction, this); | ||||
| 17375 | } | ||||
| 17376 | |||||
| 17377 | void TransactionDatabaseOperationBase::DispatchToConnectionPool() { | ||||
| 17378 | AssertIsOnOwningThread(); | ||||
| 17379 | MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::Initial)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17379 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial" ")"); do { MOZ_CrashSequence(__null, 17379); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17380 | |||||
| 17381 | (void)this->Run(); | ||||
| 17382 | } | ||||
| 17383 | |||||
| 17384 | void TransactionDatabaseOperationBase::RunOnConnectionThread() { | ||||
| 17385 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17385 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 17385); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17386 | MOZ_ASSERT(mInternalState == InternalState::DatabaseWork)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::DatabaseWork)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mInternalState == InternalState::DatabaseWork))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::DatabaseWork" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17386 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::DatabaseWork" ")"); do { MOZ_CrashSequence(__null, 17386); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17387 | MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17387); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { MOZ_CrashSequence(__null, 17387); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17388 | |||||
| 17389 | AUTO_PROFILER_LABEL("TransactionDatabaseOperationBase::RunOnConnectionThread",mozilla::AutoProfilerLabel raiiObject17390( "TransactionDatabaseOperationBase::RunOnConnectionThread" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 17390 | DOM)mozilla::AutoProfilerLabel raiiObject17390( "TransactionDatabaseOperationBase::RunOnConnectionThread" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 17391 | |||||
| 17392 | // There are several cases where we don't actually have to to any work here. | ||||
| 17393 | |||||
| 17394 | if (mTransactionIsAborted || (*mTransaction)->IsInvalidatedOnAnyThread()) { | ||||
| 17395 | // This transaction is already set to be aborted or invalidated. | ||||
| 17396 | SetFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); | ||||
| 17397 | } else if (!OperationMayProceed()) { | ||||
| 17398 | // The operation was canceled in some way, likely because the child process | ||||
| 17399 | // has crashed. | ||||
| 17400 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17400, idbInternalErrMsg.get()); } while (0); | ||||
| 17401 | OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | ||||
| 17402 | } else { | ||||
| 17403 | Database& database = (*mTransaction)->GetMutableDatabase(); | ||||
| 17404 | |||||
| 17405 | // Here we're actually going to perform the database operation. | ||||
| 17406 | nsresult rv = database.EnsureConnection(); | ||||
| 17407 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17407)) { | ||||
| 17408 | SetFailureCode(rv); | ||||
| 17409 | } else { | ||||
| 17410 | DatabaseConnection* connection = database.GetConnection(); | ||||
| 17411 | MOZ_ASSERT(connection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(connection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(connection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("connection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17411); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection" ")"); do { MOZ_CrashSequence(__null, 17411); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17412 | |||||
| 17413 | auto& storageConnection = connection->MutableStorageConnection(); | ||||
| 17414 | |||||
| 17415 | AutoSetProgressHandler autoProgress; | ||||
| 17416 | if (mLoggingSerialNumber) { | ||||
| 17417 | rv = autoProgress.Register(storageConnection, this); | ||||
| 17418 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17418)) { | ||||
| 17419 | SetFailureCode(rv); | ||||
| 17420 | } | ||||
| 17421 | } | ||||
| 17422 | |||||
| 17423 | if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { | ||||
| 17424 | if (mLoggingSerialNumber) { | ||||
| 17425 | 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 ) | ||||
| 17426 | "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 ) | ||||
| 17427 | 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 ) | ||||
| 17428 | 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 ); | ||||
| 17429 | } | ||||
| 17430 | |||||
| 17431 | rv = DoDatabaseWork(connection); | ||||
| 17432 | |||||
| 17433 | if (mLoggingSerialNumber) { | ||||
| 17434 | 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) | ||||
| 17435 | "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) | ||||
| 17436 | 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) | ||||
| 17437 | 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); | ||||
| 17438 | } | ||||
| 17439 | |||||
| 17440 | if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { | ||||
| 17441 | SetFailureCode(rv); | ||||
| 17442 | } | ||||
| 17443 | } | ||||
| 17444 | } | ||||
| 17445 | } | ||||
| 17446 | |||||
| 17447 | // Must set mInternalState before dispatching otherwise we will race with the | ||||
| 17448 | // owning thread. | ||||
| 17449 | if (HasPreprocessInfo()) { | ||||
| 17450 | mInternalState = InternalState::SendingPreprocess; | ||||
| 17451 | } else { | ||||
| 17452 | mInternalState = InternalState::SendingResults; | ||||
| 17453 | } | ||||
| 17454 | |||||
| 17455 | MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17455 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 17455); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 17456 | } | ||||
| 17457 | |||||
| 17458 | bool TransactionDatabaseOperationBase::HasPreprocessInfo() { return false; } | ||||
| 17459 | |||||
| 17460 | nsresult TransactionDatabaseOperationBase::SendPreprocessInfo() { | ||||
| 17461 | return NS_OK; | ||||
| 17462 | } | ||||
| 17463 | |||||
| 17464 | void TransactionDatabaseOperationBase::NoteContinueReceived() { | ||||
| 17465 | AssertIsOnOwningThread(); | ||||
| 17466 | MOZ_ASSERT(mInternalState == InternalState::WaitingForContinue)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::WaitingForContinue) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mInternalState == InternalState::WaitingForContinue) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::WaitingForContinue" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17466 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::WaitingForContinue" ")"); do { MOZ_CrashSequence(__null, 17466); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17467 | |||||
| 17468 | mWaitingForContinue = false; | ||||
| 17469 | |||||
| 17470 | mInternalState = InternalState::SendingResults; | ||||
| 17471 | |||||
| 17472 | // This TransactionDatabaseOperationBase can only be held alive by the IPDL. | ||||
| 17473 | // Run() can end up with clearing that last reference. So we need to add | ||||
| 17474 | // a self reference here. | ||||
| 17475 | RefPtr<TransactionDatabaseOperationBase> kungFuDeathGrip = this; | ||||
| 17476 | |||||
| 17477 | (void)this->Run(); | ||||
| 17478 | } | ||||
| 17479 | |||||
| 17480 | void TransactionDatabaseOperationBase::NoteTransactionActiveRequest() { | ||||
| 17481 | AssertIsOnOwningThread(); | ||||
| 17482 | MOZ_ASSERT(!mNotedActiveRequest)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mNotedActiveRequest)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mNotedActiveRequest))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mNotedActiveRequest" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17482 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mNotedActiveRequest" ")"); do { MOZ_CrashSequence(__null, 17482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17483 | |||||
| 17484 | (*mTransaction)->NoteActiveRequest(); | ||||
| 17485 | mNotedActiveRequest = true; | ||||
| 17486 | } | ||||
| 17487 | |||||
| 17488 | void TransactionDatabaseOperationBase::SendToConnectionPool() { | ||||
| 17489 | AssertIsOnOwningThread(); | ||||
| 17490 | MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::Initial)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17490 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial" ")"); do { MOZ_CrashSequence(__null, 17490); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17491 | |||||
| 17492 | // Must set mInternalState before dispatching otherwise we will race with the | ||||
| 17493 | // connection thread. | ||||
| 17494 | mInternalState = InternalState::DatabaseWork; | ||||
| 17495 | |||||
| 17496 | gConnectionPool->StartOp((*mTransaction)->TransactionId(), this); | ||||
| 17497 | |||||
| 17498 | NoteTransactionActiveRequest(); | ||||
| 17499 | } | ||||
| 17500 | |||||
| 17501 | void TransactionDatabaseOperationBase::SendPreprocess() { | ||||
| 17502 | AssertIsOnOwningThread(); | ||||
| 17503 | MOZ_ASSERT(mInternalState == InternalState::SendingPreprocess)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::SendingPreprocess)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mInternalState == InternalState::SendingPreprocess)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingPreprocess" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17503 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess" ")"); do { MOZ_CrashSequence(__null, 17503); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17504 | |||||
| 17505 | SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ true); | ||||
| 17506 | } | ||||
| 17507 | |||||
| 17508 | void TransactionDatabaseOperationBase::SendResults() { | ||||
| 17509 | AssertIsOnOwningThread(); | ||||
| 17510 | MOZ_ASSERT(mInternalState == InternalState::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::SendingResults)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mInternalState == InternalState::SendingResults))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingResults" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17510 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults" ")"); do { MOZ_CrashSequence(__null, 17510); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17511 | |||||
| 17512 | SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ false); | ||||
| 17513 | } | ||||
| 17514 | |||||
| 17515 | void TransactionDatabaseOperationBase::SendPreprocessInfoOrResults( | ||||
| 17516 | bool aSendPreprocessInfo) { | ||||
| 17517 | AssertIsOnOwningThread(); | ||||
| 17518 | MOZ_ASSERT(mInternalState == InternalState::SendingPreprocess ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17519 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults" ")"); do { MOZ_CrashSequence(__null, 17519); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17519 | mInternalState == InternalState::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17519 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults" ")"); do { MOZ_CrashSequence(__null, 17519); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17520 | |||||
| 17521 | // The flag is raised only when there is no mUpdateRefcountFunction for the | ||||
| 17522 | // executing operation. It assume that is because the previous | ||||
| 17523 | // StartTransactionOp was failed to begin a write transaction and it reported | ||||
| 17524 | // when this operation has already jumped to the Connection thread. | ||||
| 17525 | MOZ_DIAGNOSTIC_ASSERT_IF(mAssumingPreviousOperationFail,do { if (mAssumingPreviousOperationFail) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*mTransaction )->IsAborted())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*mTransaction)->IsAborted ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*mTransaction)->IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17526); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()" ")"); do { MOZ_CrashSequence(__null, 17526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 17526 | (*mTransaction)->IsAborted())do { if (mAssumingPreviousOperationFail) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*mTransaction )->IsAborted())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*mTransaction)->IsAborted ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*mTransaction)->IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17526); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()" ")"); do { MOZ_CrashSequence(__null, 17526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 17527 | |||||
| 17528 | if (NS_WARN_IF(IsActorDestroyed())NS_warn_if_impl(IsActorDestroyed(), "IsActorDestroyed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17528)) { | ||||
| 17529 | // Normally we wouldn't need to send any notifications if the actor was | ||||
| 17530 | // already destroyed, but this can be a VersionChangeOp which needs to | ||||
| 17531 | // notify its parent operation (OpenDatabaseOp) about the failure. | ||||
| 17532 | // So SendFailureResult needs to be called even when the actor was | ||||
| 17533 | // destroyed. Normal operations redundantly check if the actor was | ||||
| 17534 | // destroyed in SendSuccessResult and SendFailureResult, therefore it's | ||||
| 17535 | // ok to call it in all cases here. | ||||
| 17536 | if (!HasFailed()) { | ||||
| 17537 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17537, idbInternalErrMsg.get()); } while (0); | ||||
| 17538 | SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | ||||
| 17539 | } | ||||
| 17540 | } else if ((*mTransaction)->IsInvalidated() || (*mTransaction)->IsAborted()) { | ||||
| 17541 | // Aborted transactions always see their requests fail with ABORT_ERR, | ||||
| 17542 | // even if the request succeeded or failed with another error. | ||||
| 17543 | OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); | ||||
| 17544 | } | ||||
| 17545 | |||||
| 17546 | const auto result = [aSendPreprocessInfo, this]() -> TransactionOpResult { | ||||
| 17547 | if (HasFailed()) { | ||||
| 17548 | return ResultCode(); | ||||
| 17549 | } | ||||
| 17550 | if (aSendPreprocessInfo) { | ||||
| 17551 | // This should not release the IPDL reference. | ||||
| 17552 | return SendPreprocessInfo(); | ||||
| 17553 | } | ||||
| 17554 | // This may release the IPDL reference. | ||||
| 17555 | return SendSuccessResult(); | ||||
| 17556 | }(); | ||||
| 17557 | |||||
| 17558 | if (NS_FAILED(result.mCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(result.mCode)), 0) ))) { | ||||
| 17559 | SetFailureCodeIfUnset(result.mCode); | ||||
| 17560 | |||||
| 17561 | // This should definitely release the IPDL reference. | ||||
| 17562 | if (!SendFailureResult(result)) { | ||||
| 17563 | // Abort the transaction. | ||||
| 17564 | (*mTransaction)->Abort(result.mCode, /* aForce */ false); | ||||
| 17565 | } | ||||
| 17566 | } | ||||
| 17567 | |||||
| 17568 | if (aSendPreprocessInfo && !HasFailed()) { | ||||
| 17569 | mInternalState = InternalState::WaitingForContinue; | ||||
| 17570 | |||||
| 17571 | mWaitingForContinue = true; | ||||
| 17572 | } else { | ||||
| 17573 | if (mNotedActiveRequest) { | ||||
| 17574 | (*mTransaction)->NoteFinishedRequest(mRequestId, ResultCode()); | ||||
| 17575 | mNotedActiveRequest = false; | ||||
| 17576 | } | ||||
| 17577 | |||||
| 17578 | gConnectionPool->FinishOp((*mTransaction)->TransactionId()); | ||||
| 17579 | |||||
| 17580 | Cleanup(); | ||||
| 17581 | |||||
| 17582 | mInternalState = InternalState::Completed; | ||||
| 17583 | } | ||||
| 17584 | } | ||||
| 17585 | |||||
| 17586 | bool TransactionDatabaseOperationBase::Init(TransactionBase& aTransaction) { | ||||
| 17587 | AssertIsOnBackgroundThread(); | ||||
| 17588 | MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::Initial)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17588 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial" ")"); do { MOZ_CrashSequence(__null, 17588); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17589 | |||||
| 17590 | return true; | ||||
| 17591 | } | ||||
| 17592 | |||||
| 17593 | void TransactionDatabaseOperationBase::Cleanup() { | ||||
| 17594 | AssertIsOnOwningThread(); | ||||
| 17595 | MOZ_ASSERT(mInternalState == InternalState::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::SendingResults)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mInternalState == InternalState::SendingResults))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingResults" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17595 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults" ")"); do { MOZ_CrashSequence(__null, 17595); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17596 | |||||
| 17597 | mTransaction.destroy(); | ||||
| 17598 | } | ||||
| 17599 | |||||
| 17600 | NS_IMETHODIMPnsresult | ||||
| 17601 | TransactionDatabaseOperationBase::Run() { | ||||
| 17602 | switch (mInternalState) { | ||||
| 17603 | case InternalState::Initial: | ||||
| 17604 | SendToConnectionPool(); | ||||
| 17605 | return NS_OK; | ||||
| 17606 | |||||
| 17607 | case InternalState::DatabaseWork: | ||||
| 17608 | RunOnConnectionThread(); | ||||
| 17609 | return NS_OK; | ||||
| 17610 | |||||
| 17611 | case InternalState::SendingPreprocess: | ||||
| 17612 | SendPreprocess(); | ||||
| 17613 | return NS_OK; | ||||
| 17614 | |||||
| 17615 | case InternalState::SendingResults: | ||||
| 17616 | SendResults(); | ||||
| 17617 | return NS_OK; | ||||
| 17618 | |||||
| 17619 | default: | ||||
| 17620 | MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17620); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")" ); do { MOZ_CrashSequence(__null, 17620); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 17621 | } | ||||
| 17622 | } | ||||
| 17623 | |||||
| 17624 | TransactionBase::CommitOp::CommitOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 17625 | nsresult aResultCode) | ||||
| 17626 | : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(), | ||||
| 17627 | aTransaction->GetLoggingInfo()->NextRequestSN()), | ||||
| 17628 | mTransaction(std::move(aTransaction)), | ||||
| 17629 | mResultCode(aResultCode) { | ||||
| 17630 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17630); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17630); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17631 | MOZ_ASSERT(LoggingSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType< decltype(LoggingSerialNumber())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(LoggingSerialNumber()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("LoggingSerialNumber()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17631 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()" ")"); do { MOZ_CrashSequence(__null, 17631); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17632 | } | ||||
| 17633 | |||||
| 17634 | nsresult TransactionBase::CommitOp::WriteAutoIncrementCounts() { | ||||
| 17635 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17635); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17635); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17636 | mTransaction->AssertIsOnConnectionThread(); | ||||
| 17637 | MOZ_ASSERT(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17640 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 17640); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17638 | mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17640 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 17640); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17639 | mTransaction->GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17640 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 17640); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17640 | mTransaction->GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17640 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 17640); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17641 | |||||
| 17642 | const nsTArray<SafeRefPtr<FullObjectStoreMetadata>>& metadataArray = | ||||
| 17643 | mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray; | ||||
| 17644 | |||||
| 17645 | if (!metadataArray.IsEmpty()) { | ||||
| 17646 | DatabaseConnection* connection = | ||||
| 17647 | mTransaction->GetDatabase().GetConnection(); | ||||
| 17648 | MOZ_ASSERT(connection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(connection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(connection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("connection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17648); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection" ")"); do { MOZ_CrashSequence(__null, 17648); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17649 | |||||
| 17650 | // The parameter names are not used, parameters are bound by index only | ||||
| 17651 | // locally in the same function. | ||||
| 17652 | auto stmt = DatabaseConnection::LazyStatement( | ||||
| 17653 | *connection, | ||||
| 17654 | "UPDATE object_store " | ||||
| 17655 | "SET auto_increment = :auto_increment WHERE id " | ||||
| 17656 | "= :object_store_id;"_ns); | ||||
| 17657 | |||||
| 17658 | for (const auto& metadata : metadataArray) { | ||||
| 17659 | MOZ_ASSERT(!metadata->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!metadata->mDeleted)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!metadata->mDeleted))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!metadata->mDeleted" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17659 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!metadata->mDeleted" ")"); do { MOZ_CrashSequence(__null, 17659); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17660 | |||||
| 17661 | const int64_t nextAutoIncrementId = [&metadata] { | ||||
| 17662 | const auto&& lockedAutoIncrementIds = | ||||
| 17663 | metadata->mAutoIncrementIds.Lock(); | ||||
| 17664 | return lockedAutoIncrementIds->next; | ||||
| 17665 | }(); | ||||
| 17666 | |||||
| 17667 | MOZ_ASSERT(nextAutoIncrementId > 1)do { static_assert( mozilla::detail::AssertionConditionType< decltype(nextAutoIncrementId > 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(nextAutoIncrementId > 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("nextAutoIncrementId > 1" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17667 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "nextAutoIncrementId > 1" ")"); do { MOZ_CrashSequence(__null, 17667); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17668 | |||||
| 17669 | QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1341 = (stmt.Borrow()); if ((__builtin_expect(! !(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError ("stmt.Borrow()", tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17669, mozilla::dom::quota::Severity::Error); return tryResult1341 .propagateErr(); } const auto& borrowedStmt = tryResult1341 .inspect();; | ||||
| 17670 | |||||
| 17671 | QM_TRY(MOZ_TO_RESULT({auto tryResult1342 = (ToResult(borrowedStmt->BindInt64ByIndex (1, metadata->mCommonMetadata.id()))); static_assert(std:: is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))" , tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17672, mozilla::dom::quota::Severity::Error); return tryResult1342 .propagateErr(); }} | ||||
| 17672 | borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))){auto tryResult1342 = (ToResult(borrowedStmt->BindInt64ByIndex (1, metadata->mCommonMetadata.id()))); static_assert(std:: is_empty_v<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))" , tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17672, mozilla::dom::quota::Severity::Error); return tryResult1342 .propagateErr(); }}; | ||||
| 17673 | |||||
| 17674 | QM_TRY(MOZ_TO_RESULT({auto tryResult1343 = (ToResult(borrowedStmt->BindInt64ByIndex (0, nextAutoIncrementId))); static_assert(std::is_empty_v< typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect (!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))" , tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17675, mozilla::dom::quota::Severity::Error); return tryResult1343 .propagateErr(); }} | ||||
| 17675 | borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))){auto tryResult1343 = (ToResult(borrowedStmt->BindInt64ByIndex (0, nextAutoIncrementId))); static_assert(std::is_empty_v< typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect (!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))" , tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17675, mozilla::dom::quota::Severity::Error); return tryResult1343 .propagateErr(); }}; | ||||
| 17676 | |||||
| 17677 | QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult1344 = (ToResult(borrowedStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1344 )::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())" , tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17677, mozilla::dom::quota::Severity::Error); return tryResult1344 .propagateErr(); }}; | ||||
| 17678 | } | ||||
| 17679 | } | ||||
| 17680 | |||||
| 17681 | return NS_OK; | ||||
| 17682 | } | ||||
| 17683 | |||||
| 17684 | void TransactionBase::CommitOp::CommitOrRollbackAutoIncrementCounts() { | ||||
| 17685 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17685); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17685); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17686 | mTransaction->AssertIsOnConnectionThread(); | ||||
| 17687 | MOZ_ASSERT(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17690 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 17690); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17688 | mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17690 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 17690); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17689 | mTransaction->GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17690 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 17690); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17690 | mTransaction->GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17690 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 17690); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17691 | |||||
| 17692 | const auto& metadataArray = | ||||
| 17693 | mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray; | ||||
| 17694 | |||||
| 17695 | if (!metadataArray.IsEmpty()) { | ||||
| 17696 | bool committed = NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) )); | ||||
| 17697 | |||||
| 17698 | for (const auto& metadata : metadataArray) { | ||||
| 17699 | auto&& lockedAutoIncrementIds = metadata->mAutoIncrementIds.Lock(); | ||||
| 17700 | |||||
| 17701 | if (committed) { | ||||
| 17702 | lockedAutoIncrementIds->committed = lockedAutoIncrementIds->next; | ||||
| 17703 | } else { | ||||
| 17704 | lockedAutoIncrementIds->next = lockedAutoIncrementIds->committed; | ||||
| 17705 | } | ||||
| 17706 | } | ||||
| 17707 | } | ||||
| 17708 | } | ||||
| 17709 | |||||
| 17710 | #ifdef DEBUG1 | ||||
| 17711 | |||||
| 17712 | void TransactionBase::CommitOp::AssertForeignKeyConsistency( | ||||
| 17713 | DatabaseConnection* aConnection) { | ||||
| 17714 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17714); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 17714); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17715 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17715); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17715); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17716 | mTransaction->AssertIsOnConnectionThread(); | ||||
| 17717 | MOZ_ASSERT(mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() != IDBTransaction::Mode:: ReadOnly)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(mTransaction->GetMode() != IDBTransaction ::Mode::ReadOnly))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17717 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly" ")"); do { MOZ_CrashSequence(__null, 17717); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17718 | |||||
| 17719 | { | ||||
| 17720 | QM_TRY_INSPECT(auto tryResult1345 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1345.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17724, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17724); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17724); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult1345.inspect(); | ||||
| 17721 | const auto& pragmaStmt,auto tryResult1345 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1345.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17724, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17724); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17724); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult1345.inspect(); | ||||
| 17722 | CreateAndExecuteSingleStepStatement(auto tryResult1345 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1345.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17724, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17724); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17724); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult1345.inspect(); | ||||
| 17723 | aConnection->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns),auto tryResult1345 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1345.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17724, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17724); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17724); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult1345.inspect(); | ||||
| 17724 | QM_ASSERT_UNREACHABLE_VOID)auto tryResult1345 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1345.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17724, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17724); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17724); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult1345.inspect();; | ||||
| 17725 | |||||
| 17726 | int32_t foreignKeysEnabled; | ||||
| 17727 | MOZ_ALWAYS_SUCCEEDS(pragmaStmt->GetInt32(0, &foreignKeysEnabled))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (pragmaStmt->GetInt32(0, &foreignKeysEnabled))), 1)))) , 1))) { } else { do { do { } while (false); MOZ_ReportCrash( "" "NS_SUCCEEDED(pragmaStmt->GetInt32(0, &foreignKeysEnabled))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17727 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(pragmaStmt->GetInt32(0, &foreignKeysEnabled))" ")"); do { MOZ_CrashSequence(__null, 17727); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 17728 | |||||
| 17729 | MOZ_ASSERT(foreignKeysEnabled,do { static_assert( mozilla::detail::AssertionConditionType< decltype(foreignKeysEnabled)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foreignKeysEnabled))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("foreignKeysEnabled" " (" "Database doesn't have foreign keys enabled!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17730); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled" ") (" "Database doesn't have foreign keys enabled!" ")"); do { MOZ_CrashSequence(__null, 17730); __attribute__((nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17730 | "Database doesn't have foreign keys enabled!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(foreignKeysEnabled)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foreignKeysEnabled))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("foreignKeysEnabled" " (" "Database doesn't have foreign keys enabled!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17730); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled" ") (" "Database doesn't have foreign keys enabled!" ")"); do { MOZ_CrashSequence(__null, 17730); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17731 | } | ||||
| 17732 | |||||
| 17733 | { | ||||
| 17734 | QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult1346 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1346.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17739, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17739); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17739); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult1346.inspect(); | ||||
| 17735 | CreateAndExecuteSingleStepStatement<auto tryResult1346 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1346.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17739, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17739); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17739); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult1346.inspect(); | ||||
| 17736 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult1346 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1346.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17739, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17739); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17739); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult1346.inspect(); | ||||
| 17737 | aConnection->MutableStorageConnection(),auto tryResult1346 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1346.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17739, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17739); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17739); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult1346.inspect(); | ||||
| 17738 | "PRAGMA foreign_key_check;"_ns),auto tryResult1346 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1346.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17739, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17739); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17739); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult1346.inspect(); | ||||
| 17739 | QM_ASSERT_UNREACHABLE_VOID)auto tryResult1346 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1346.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17739, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17739); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17739); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult1346.inspect();; | ||||
| 17740 | |||||
| 17741 | MOZ_ASSERT(!foreignKeyError, "Database has inconsisistent foreign keys!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(!foreignKeyError)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!foreignKeyError))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!foreignKeyError" " (" "Database has inconsisistent foreign keys!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17741); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError" ") (" "Database has inconsisistent foreign keys!" ")"); do { MOZ_CrashSequence(__null, 17741); __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | ||||
| 17742 | } | ||||
| 17743 | } | ||||
| 17744 | |||||
| 17745 | #endif // DEBUG | ||||
| 17746 | |||||
| 17747 | NS_IMPL_ISUPPORTS_INHERITED0(TransactionBase::CommitOp, DatabaseOperationBase)nsresult TransactionBase::CommitOp::QueryInterface(const nsIID & aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!" , "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17747); 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; } | ||||
| 17748 | |||||
| 17749 | NS_IMETHODIMPnsresult | ||||
| 17750 | TransactionBase::CommitOp::Run() { | ||||
| 17751 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17751); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17751); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17752 | mTransaction->AssertIsOnConnectionThread(); | ||||
| 17753 | |||||
| 17754 | AUTO_PROFILER_LABEL("TransactionBase::CommitOp::Run", DOM)mozilla::AutoProfilerLabel raiiObject17754( "TransactionBase::CommitOp::Run" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 17755 | |||||
| 17756 | 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 ) | ||||
| 17757 | "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 ) | ||||
| 17758 | 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 ) | ||||
| 17759 | 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 ); | ||||
| 17760 | |||||
| 17761 | if (mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly && | ||||
| 17762 | mTransaction->mHasBeenActiveOnConnectionThread) { | ||||
| 17763 | if (DatabaseConnection* connection = | ||||
| 17764 | mTransaction->GetDatabase().GetConnection()) { | ||||
| 17765 | // May be null if the VersionChangeOp was canceled. | ||||
| 17766 | DatabaseConnection::UpdateRefcountFunction* fileRefcountFunction = | ||||
| 17767 | connection->GetUpdateRefcountFunction(); | ||||
| 17768 | |||||
| 17769 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 17770 | if (fileRefcountFunction) { | ||||
| 17771 | mResultCode = fileRefcountFunction->WillCommit(); | ||||
| 17772 | NS_WARNING_ASSERTION(NS_SUCCEEDED(mResultCode),do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode )), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WillCommit() failed!" , "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17773); } } while (false) | ||||
| 17773 | "WillCommit() failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode )), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WillCommit() failed!" , "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17773); } } while (false); | ||||
| 17774 | } | ||||
| 17775 | |||||
| 17776 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 17777 | mResultCode = WriteAutoIncrementCounts(); | ||||
| 17778 | NS_WARNING_ASSERTION(NS_SUCCEEDED(mResultCode),do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode )), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WriteAutoIncrementCounts() failed!" , "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17779); } } while (false) | ||||
| 17779 | "WriteAutoIncrementCounts() failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode )), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WriteAutoIncrementCounts() failed!" , "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17779); } } while (false); | ||||
| 17780 | |||||
| 17781 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 17782 | AssertForeignKeyConsistency(connection); | ||||
| 17783 | |||||
| 17784 | mResultCode = connection->CommitWriteTransaction(); | ||||
| 17785 | NS_WARNING_ASSERTION(NS_SUCCEEDED(mResultCode), "Commit failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode )), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "Commit failed!" , "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17785); } } while (false); | ||||
| 17786 | |||||
| 17787 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) )) && | ||||
| 17788 | mTransaction->GetMode() == | ||||
| 17789 | IDBTransaction::Mode::ReadWriteFlush) { | ||||
| 17790 | mResultCode = connection->Checkpoint(); | ||||
| 17791 | } | ||||
| 17792 | |||||
| 17793 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) )) && fileRefcountFunction) { | ||||
| 17794 | fileRefcountFunction->DidCommit(); | ||||
| 17795 | } | ||||
| 17796 | } | ||||
| 17797 | } | ||||
| 17798 | } | ||||
| 17799 | |||||
| 17800 | if (NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)) )) { | ||||
| 17801 | if (fileRefcountFunction) { | ||||
| 17802 | fileRefcountFunction->DidAbort(); | ||||
| 17803 | } | ||||
| 17804 | |||||
| 17805 | connection->RollbackWriteTransaction(); | ||||
| 17806 | } | ||||
| 17807 | |||||
| 17808 | CommitOrRollbackAutoIncrementCounts(); | ||||
| 17809 | |||||
| 17810 | connection->FinishWriteTransaction(); | ||||
| 17811 | |||||
| 17812 | if (mTransaction->GetMode() == IDBTransaction::Mode::Cleanup) { | ||||
| 17813 | connection->DoIdleProcessing(/* aNeedsCheckpoint */ true, | ||||
| 17814 | /* aInterrupted */ Atomic<bool>(false)); | ||||
| 17815 | |||||
| 17816 | connection->EnableQuotaChecks(); | ||||
| 17817 | } | ||||
| 17818 | } | ||||
| 17819 | } | ||||
| 17820 | |||||
| 17821 | 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 ) | ||||
| 17822 | "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 ) | ||||
| 17823 | 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 ) | ||||
| 17824 | 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 ); | ||||
| 17825 | |||||
| 17826 | 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()) | ||||
| 17827 | 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()) | ||||
| 17828 | 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()); | ||||
| 17829 | |||||
| 17830 | return NS_OK; | ||||
| 17831 | } | ||||
| 17832 | |||||
| 17833 | void TransactionBase::CommitOp::TransactionFinishedBeforeUnblock() { | ||||
| 17834 | AssertIsOnBackgroundThread(); | ||||
| 17835 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17835); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17835); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17836 | |||||
| 17837 | AUTO_PROFILER_LABEL("CommitOp::TransactionFinishedBeforeUnblock", DOM)mozilla::AutoProfilerLabel raiiObject17837( "CommitOp::TransactionFinishedBeforeUnblock" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 17838 | |||||
| 17839 | if (!IsActorDestroyed()) { | ||||
| 17840 | mTransaction->UpdateMetadata(mResultCode); | ||||
| 17841 | } | ||||
| 17842 | } | ||||
| 17843 | |||||
| 17844 | void TransactionBase::CommitOp::TransactionFinishedAfterUnblock() { | ||||
| 17845 | AssertIsOnBackgroundThread(); | ||||
| 17846 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17846); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17846); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17847 | |||||
| 17848 | 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 )) | ||||
| 17849 | "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 )) | ||||
| 17850 | 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 )) | ||||
| 17851 | 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 )); | ||||
| 17852 | |||||
| 17853 | mTransaction->SendCompleteNotification(ClampResultCode(mResultCode)); | ||||
| 17854 | |||||
| 17855 | mTransaction->GetMutableDatabase().UnregisterTransaction(*mTransaction); | ||||
| 17856 | |||||
| 17857 | mTransaction = nullptr; | ||||
| 17858 | |||||
| 17859 | #ifdef DEBUG1 | ||||
| 17860 | // A bit hacky but the CommitOp is not really a normal database operation | ||||
| 17861 | // that is tied to an actor. Do this to make our assertions happy. | ||||
| 17862 | NoteActorDestroyed(); | ||||
| 17863 | #endif | ||||
| 17864 | } | ||||
| 17865 | |||||
| 17866 | TransactionOpResult VersionChangeTransactionOp::SendSuccessResult() { | ||||
| 17867 | AssertIsOnOwningThread(); | ||||
| 17868 | |||||
| 17869 | // Nothing to send here, the API assumes that this request always succeeds. | ||||
| 17870 | return NS_OK; | ||||
| 17871 | } | ||||
| 17872 | |||||
| 17873 | bool VersionChangeTransactionOp::SendFailureResult( | ||||
| 17874 | const TransactionOpResult& /* aResult */) { | ||||
| 17875 | AssertIsOnOwningThread(); | ||||
| 17876 | |||||
| 17877 | // The only option here is to cause the transaction to abort. | ||||
| 17878 | return false; | ||||
| 17879 | } | ||||
| 17880 | |||||
| 17881 | void VersionChangeTransactionOp::Cleanup() { | ||||
| 17882 | AssertIsOnOwningThread(); | ||||
| 17883 | |||||
| 17884 | #ifdef DEBUG1 | ||||
| 17885 | // A bit hacky but the VersionChangeTransactionOp is not generated in response | ||||
| 17886 | // to a child request like most other database operations. Do this to make our | ||||
| 17887 | // assertions happy. | ||||
| 17888 | NoteActorDestroyed(); | ||||
| 17889 | #endif | ||||
| 17890 | |||||
| 17891 | TransactionDatabaseOperationBase::Cleanup(); | ||||
| 17892 | } | ||||
| 17893 | |||||
| 17894 | nsresult CreateObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 17895 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17895); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 17895); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17896 | aConnection->AssertIsOnConnectionThread(); | ||||
| 17897 | |||||
| 17898 | AUTO_PROFILER_LABEL("CreateObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17898( "CreateObjectStoreOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 17899 | |||||
| 17900 | #ifdef DEBUG1 | ||||
| 17901 | { | ||||
| 17902 | // Make sure that we're not creating an object store with the same name as | ||||
| 17903 | // another that already exists. This should be impossible because we should | ||||
| 17904 | // have thrown an error long before now... | ||||
| 17905 | // The parameter names are not used, parameters are bound by index only | ||||
| 17906 | // locally in the same function. | ||||
| 17907 | QM_TRY_INSPECT(const bool& hasResult,auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect (!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17915, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1348.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17919); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1348.inspect(); | ||||
| 17908 | aConnectionauto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect (!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17915, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1348.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17919); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1348.inspect(); | ||||
| 17909 | ->BorrowAndExecuteSingleStepStatement(auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect (!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17915, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1348.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17919); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1348.inspect(); | ||||
| 17910 | "SELECT name "auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect (!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17915, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1348.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17919); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1348.inspect(); | ||||
| 17911 | "FROM object_store "auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect (!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17915, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1348.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17919); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1348.inspect(); | ||||
| 17912 | "WHERE name = :name;"_ns,auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect (!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17915, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1348.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17919); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1348.inspect(); | ||||
| 17913 | [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect (!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17915, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1348.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17919); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1348.inspect(); | ||||
| 17914 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect (!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17915, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1348.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17919); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1348.inspect(); | ||||
| 17915 | 0, self.mMetadata.name())));auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect (!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17915, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1348.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17919); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1348.inspect(); | ||||
| 17916 | return Ok{};auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect (!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17915, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1348.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17919); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1348.inspect(); | ||||
| 17917 | })auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect (!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17915, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1348.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17919); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1348.inspect(); | ||||
| 17918 | .map(IsSome),auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect (!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17915, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1348.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17919); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1348.inspect(); | ||||
| 17919 | QM_ASSERT_UNREACHABLE)auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect (!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17915, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1348.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1347 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17915, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17919); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1348.inspect();; | ||||
| 17920 | |||||
| 17921 | MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!hasResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17921); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult" ")"); do { MOZ_CrashSequence(__null, 17921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17922 | } | ||||
| 17923 | #endif | ||||
| 17924 | |||||
| 17925 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 17926 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1349 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349 .isErr()), 0))) { auto tryTempError = tryResult1349.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17931, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 17927 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1349 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349 .isErr()), 0))) { auto tryTempError = tryResult1349.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17931, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 17928 | ,{auto tryResult1349 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349 .isErr()), 0))) { auto tryTempError = tryResult1349.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17931, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 17929 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1349 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349 .isErr()), 0))) { auto tryTempError = tryResult1349.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17931, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 17930 | #endif{auto tryResult1349 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349 .isErr()), 0))) { auto tryTempError = tryResult1349.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17931, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 17931 | ){auto tryResult1349 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349 .isErr()), 0))) { auto tryTempError = tryResult1349.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17931, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | ||||
| 17932 | |||||
| 17933 | // The parameter names are not used, parameters are bound by index only | ||||
| 17934 | // locally in the same function. | ||||
| 17935 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17936 | "INSERT INTO object_store (id, auto_increment, name, key_path) "{auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17937 | "VALUES (:id, :auto_increment, :name, :key_path);"_ns,{auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17938 | [&metadata ={auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17939 | mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17940 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17941 | |||||
| 17942 | QM_TRY(MOZ_TO_RESULT({auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17943 | stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0)));{auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17944 | |||||
| 17945 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(2, metadata.name())));{auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17946 | |||||
| 17947 | if (metadata.keyPath().IsValid()) {{auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17948 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex({auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17949 | 3, metadata.keyPath().SerializeToString())));{auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17950 | } else {{auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17951 | QM_TRY(MOZ_TO_RESULT(stmt.BindNullByIndex(3)));{auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17952 | }{auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17953 | |||||
| 17954 | return Ok{};{auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }} | ||||
| 17955 | }))){auto tryResult1355 = (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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect (!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1350 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17940, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17943, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect (!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1352 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17945, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1353 .propagateErr(); }}; } else { {auto tryResult1354 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect (!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1354.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17951 , mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.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 tryResult1350 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17940, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; {auto tryResult1352 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1352.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1353 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1353.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1353.propagateErr(); }}; } else { {auto tryResult1354 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17951, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; } return Ok{}; }))" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17955, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); }}; | ||||
| 17956 | |||||
| 17957 | #ifdef DEBUG1 | ||||
| 17958 | { | ||||
| 17959 | int64_t id; | ||||
| 17960 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetLastInsertRowID (&id))), 1)))), 1))) { } else { do { do { } while (false) ; MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17961 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")"); do { MOZ_CrashSequence(__null, 17961); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 17961 | aConnection->MutableStorageConnection().GetLastInsertRowID(&id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetLastInsertRowID (&id))), 1)))), 1))) { } else { do { do { } while (false) ; MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17961 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")"); do { MOZ_CrashSequence(__null, 17961); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 17962 | MOZ_ASSERT(mMetadata.id() == id)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata.id() == id)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata.id() == id))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata.id() == id" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id" ")"); do { MOZ_CrashSequence(__null, 17962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17963 | } | ||||
| 17964 | #endif | ||||
| 17965 | |||||
| 17966 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1356 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1356)::ok_type >); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1356.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17966, mozilla::dom::quota::Severity::Error); return tryResult1356 .propagateErr(); }}; | ||||
| 17967 | |||||
| 17968 | return NS_OK; | ||||
| 17969 | } | ||||
| 17970 | |||||
| 17971 | nsresult DeleteObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 17972 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17972); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 17972); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17973 | aConnection->AssertIsOnConnectionThread(); | ||||
| 17974 | |||||
| 17975 | AUTO_PROFILER_LABEL("DeleteObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17975( "DeleteObjectStoreOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 17976 | |||||
| 17977 | #ifdef DEBUG1 | ||||
| 17978 | { | ||||
| 17979 | // Make sure |mIsLastObjectStore| is telling the truth. | ||||
| 17980 | QM_TRY_INSPECT(auto tryResult1357 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns )); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1357.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17983); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1357.inspect(); | ||||
| 17981 | const auto& stmt,auto tryResult1357 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns )); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1357.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17983); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1357.inspect(); | ||||
| 17982 | aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns),auto tryResult1357 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns )); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1357.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17983); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1357.inspect(); | ||||
| 17983 | QM_ASSERT_UNREACHABLE)auto tryResult1357 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns )); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1357.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17983); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1357.inspect();; | ||||
| 17984 | |||||
| 17985 | bool foundThisObjectStore = false; | ||||
| 17986 | bool foundOtherObjectStore = false; | ||||
| 17987 | |||||
| 17988 | while (true) { | ||||
| 17989 | bool hasResult; | ||||
| 17990 | MOZ_ALWAYS_SUCCEEDS(stmt->ExecuteStep(&hasResult))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stmt->ExecuteStep(&hasResult))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17990 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))" ")"); do { MOZ_CrashSequence(__null, 17990); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 17991 | |||||
| 17992 | if (!hasResult) { | ||||
| 17993 | break; | ||||
| 17994 | } | ||||
| 17995 | |||||
| 17996 | int64_t id; | ||||
| 17997 | MOZ_ALWAYS_SUCCEEDS(stmt->GetInt64(0, &id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stmt->GetInt64(0, &id))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17997 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" ")"); do { MOZ_CrashSequence(__null, 17997); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 17998 | |||||
| 17999 | if (id == mMetadata->mCommonMetadata.id()) { | ||||
| 18000 | foundThisObjectStore = true; | ||||
| 18001 | } else { | ||||
| 18002 | foundOtherObjectStore = true; | ||||
| 18003 | } | ||||
| 18004 | } | ||||
| 18005 | |||||
| 18006 | MOZ_ASSERT_IF(mIsLastObjectStore,do { if (mIsLastObjectStore) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(foundThisObjectStore && !foundOtherObjectStore)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foundThisObjectStore && !foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("foundThisObjectStore && !foundOtherObjectStore", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18007); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore" ")"); do { MOZ_CrashSequence(__null, 18007); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 18007 | foundThisObjectStore && !foundOtherObjectStore)do { if (mIsLastObjectStore) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(foundThisObjectStore && !foundOtherObjectStore)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foundThisObjectStore && !foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("foundThisObjectStore && !foundOtherObjectStore", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18007); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore" ")"); do { MOZ_CrashSequence(__null, 18007); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 18008 | MOZ_ASSERT_IF(!mIsLastObjectStore,do { if (!mIsLastObjectStore) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(foundThisObjectStore && foundOtherObjectStore)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foundThisObjectStore && foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("foundThisObjectStore && foundOtherObjectStore", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18009); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore" ")"); do { MOZ_CrashSequence(__null, 18009); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 18009 | foundThisObjectStore && foundOtherObjectStore)do { if (!mIsLastObjectStore) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(foundThisObjectStore && foundOtherObjectStore)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foundThisObjectStore && foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("foundThisObjectStore && foundOtherObjectStore", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18009); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore" ")"); do { MOZ_CrashSequence(__null, 18009); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 18010 | } | ||||
| 18011 | #endif | ||||
| 18012 | |||||
| 18013 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 18014 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1358 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358 .isErr()), 0))) { auto tryTempError = tryResult1358.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18019, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18015 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1358 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358 .isErr()), 0))) { auto tryTempError = tryResult1358.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18019, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18016 | ,{auto tryResult1358 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358 .isErr()), 0))) { auto tryTempError = tryResult1358.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18019, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18017 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1358 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358 .isErr()), 0))) { auto tryTempError = tryResult1358.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18019, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18018 | #endif{auto tryResult1358 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358 .isErr()), 0))) { auto tryTempError = tryResult1358.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18019, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18019 | ){auto tryResult1358 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358 .isErr()), 0))) { auto tryTempError = tryResult1358.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18019, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | ||||
| 18020 | |||||
| 18021 | if (mIsLastObjectStore) { | ||||
| 18022 | // We can just delete everything if this is the last object store. | ||||
| 18023 | QM_TRY(MOZ_TO_RESULT({auto tryResult1359 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM index_data;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect (!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM index_data;\"_ns))" , tryResult1359.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18024, mozilla::dom::quota::Severity::Error); return tryResult1359 .propagateErr(); }} | ||||
| 18024 | aConnection->ExecuteCachedStatement("DELETE FROM index_data;"_ns))){auto tryResult1359 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM index_data;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect (!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM index_data;\"_ns))" , tryResult1359.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18024, mozilla::dom::quota::Severity::Error); return tryResult1359 .propagateErr(); }}; | ||||
| 18025 | |||||
| 18026 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1360 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM unique_index_data;"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM unique_index_data;\"_ns))" , tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18027, mozilla::dom::quota::Severity::Error); return tryResult1360 .propagateErr(); }} | ||||
| 18027 | "DELETE FROM unique_index_data;"_ns))){auto tryResult1360 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM unique_index_data;"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM unique_index_data;\"_ns))" , tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18027, mozilla::dom::quota::Severity::Error); return tryResult1360 .propagateErr(); }}; | ||||
| 18028 | |||||
| 18029 | QM_TRY(MOZ_TO_RESULT({auto tryResult1361 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM object_data;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect (!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_data;\"_ns))" , tryResult1361.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18030, mozilla::dom::quota::Severity::Error); return tryResult1361 .propagateErr(); }} | ||||
| 18030 | aConnection->ExecuteCachedStatement("DELETE FROM object_data;"_ns))){auto tryResult1361 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM object_data;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect (!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_data;\"_ns))" , tryResult1361.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18030, mozilla::dom::quota::Severity::Error); return tryResult1361 .propagateErr(); }}; | ||||
| 18031 | |||||
| 18032 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1362 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index;"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))" , tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18033, mozilla::dom::quota::Severity::Error); return tryResult1362 .propagateErr(); }} | ||||
| 18033 | "DELETE FROM object_store_index;"_ns))){auto tryResult1362 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index;"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))" , tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18033, mozilla::dom::quota::Severity::Error); return tryResult1362 .propagateErr(); }}; | ||||
| 18034 | |||||
| 18035 | QM_TRY(MOZ_TO_RESULT({auto tryResult1363 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18036, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }} | ||||
| 18036 | aConnection->ExecuteCachedStatement("DELETE FROM object_store;"_ns))){auto tryResult1363 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18036, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; | ||||
| 18037 | } else { | ||||
| 18038 | QM_TRY_INSPECT(auto tryResult1364 = (ObjectStoreHasIndexes(*aConnection, mMetadata ->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1364 .isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())" , tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18040, mozilla::dom::quota::Severity::Error); return tryResult1364 .propagateErr(); } const bool& hasIndexes = tryResult1364 .inspect(); | ||||
| 18039 | const bool& hasIndexes,auto tryResult1364 = (ObjectStoreHasIndexes(*aConnection, mMetadata ->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1364 .isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())" , tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18040, mozilla::dom::quota::Severity::Error); return tryResult1364 .propagateErr(); } const bool& hasIndexes = tryResult1364 .inspect(); | ||||
| 18040 | ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id()))auto tryResult1364 = (ObjectStoreHasIndexes(*aConnection, mMetadata ->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1364 .isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())" , tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18040, mozilla::dom::quota::Severity::Error); return tryResult1364 .propagateErr(); } const bool& hasIndexes = tryResult1364 .inspect();; | ||||
| 18041 | |||||
| 18042 | const auto bindObjectStoreIdToFirstParameter = | ||||
| 18043 | [this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { | ||||
| 18044 | QM_TRY(MOZ_TO_RESULT({auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata ->mCommonMetadata.id()))); static_assert(std::is_empty_v< typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect (!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))" , tryResult1365.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18045, mozilla::dom::quota::Severity::Error); return tryResult1365 .propagateErr(); }} | ||||
| 18045 | stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))){auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata ->mCommonMetadata.id()))); static_assert(std::is_empty_v< typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect (!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))" , tryResult1365.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18045, mozilla::dom::quota::Severity::Error); return tryResult1365 .propagateErr(); }}; | ||||
| 18046 | |||||
| 18047 | return Ok{}; | ||||
| 18048 | }; | ||||
| 18049 | |||||
| 18050 | // The parameter name :object_store_id in the SQL statements below is not | ||||
| 18051 | // used for binding, parameters are bound by index only locally by | ||||
| 18052 | // bindObjectStoreIdToFirstParameter. | ||||
| 18053 | if (hasIndexes) { | ||||
| 18054 | QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1366 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mMetadata->mCommonMetadata.id(), Nothing()) )); static_assert(std::is_empty_v<typename decltype(tryResult1366 )::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))" , tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18055, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }} | ||||
| 18055 | aConnection, mMetadata->mCommonMetadata.id(), Nothing()))){auto tryResult1366 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mMetadata->mCommonMetadata.id(), Nothing()) )); static_assert(std::is_empty_v<typename decltype(tryResult1366 )::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))" , tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18055, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; | ||||
| 18056 | |||||
| 18057 | // Now clean up the object store index table. | ||||
| 18058 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1367 = (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(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18061, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }} | ||||
| 18059 | "DELETE FROM object_store_index "{auto tryResult1367 = (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(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18061, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }} | ||||
| 18060 | "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1367 = (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(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18061, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }} | ||||
| 18061 | bindObjectStoreIdToFirstParameter))){auto tryResult1367 = (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(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18061, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; | ||||
| 18062 | } else { | ||||
| 18063 | // We only have to worry about object data if this object store has no | ||||
| 18064 | // indexes. | ||||
| 18065 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18068, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }} | ||||
| 18066 | "DELETE FROM object_data "{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18068, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }} | ||||
| 18067 | "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18068, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }} | ||||
| 18068 | bindObjectStoreIdToFirstParameter))){auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18068, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; | ||||
| 18069 | } | ||||
| 18070 | |||||
| 18071 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1369 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18074, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }} | ||||
| 18072 | "DELETE FROM object_store "{auto tryResult1369 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18074, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }} | ||||
| 18073 | "WHERE id = :object_store_id;"_ns,{auto tryResult1369 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18074, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }} | ||||
| 18074 | bindObjectStoreIdToFirstParameter))){auto tryResult1369 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18074, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; | ||||
| 18075 | |||||
| 18076 | #ifdef DEBUG1 | ||||
| 18077 | { | ||||
| 18078 | int32_t deletedRowCount; | ||||
| 18079 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetAffectedRows( & deletedRowCount))), 1)))), 1))) { } else { do { do { } while ( false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18081 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { MOZ_CrashSequence(__null, 18081); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18080 | aConnection->MutableStorageConnection().GetAffectedRows(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetAffectedRows( & deletedRowCount))), 1)))), 1))) { } else { do { do { } while ( false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18081 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { MOZ_CrashSequence(__null, 18081); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18081 | &deletedRowCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetAffectedRows( & deletedRowCount))), 1)))), 1))) { } else { do { do { } while ( false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18081 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { MOZ_CrashSequence(__null, 18081); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18082 | MOZ_ASSERT(deletedRowCount == 1)do { static_assert( mozilla::detail::AssertionConditionType< decltype(deletedRowCount == 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(deletedRowCount == 1))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("deletedRowCount == 1" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18082 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1" ")"); do { MOZ_CrashSequence(__null, 18082); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18083 | } | ||||
| 18084 | #endif | ||||
| 18085 | } | ||||
| 18086 | |||||
| 18087 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1370 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1370)::ok_type >); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1370.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18087, mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; | ||||
| 18088 | |||||
| 18089 | if (mMetadata->mCommonMetadata.autoIncrement()) { | ||||
| 18090 | Transaction().ForgetModifiedAutoIncrementObjectStore(*mMetadata); | ||||
| 18091 | } | ||||
| 18092 | |||||
| 18093 | return NS_OK; | ||||
| 18094 | } | ||||
| 18095 | |||||
| 18096 | nsresult RenameObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 18097 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18097); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18097); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18098 | aConnection->AssertIsOnConnectionThread(); | ||||
| 18099 | |||||
| 18100 | AUTO_PROFILER_LABEL("RenameObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18100( "RenameObjectStoreOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18101 | |||||
| 18102 | #ifdef DEBUG1 | ||||
| 18103 | { | ||||
| 18104 | // Make sure that we're not renaming an object store with the same name as | ||||
| 18105 | // another that already exists. This should be impossible because we should | ||||
| 18106 | // have thrown an error long before now... | ||||
| 18107 | // The parameter names are not used, parameters are bound by index only | ||||
| 18108 | // locally in the same function. | ||||
| 18109 | QM_TRY_INSPECT(auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18110 | const bool& hasResult,auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18111 | aConnectionauto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18112 | ->BorrowAndExecuteSingleStepStatement(auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18113 | "SELECT name "auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18114 | "FROM object_store "auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18115 | "WHERE name = :name AND id != :id;"_ns,auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18116 | [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18117 | QM_TRY(auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18118 | MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18119 | |||||
| 18120 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18121 | return Ok{};auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18122 | })auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18123 | .map(IsSome),auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect(); | ||||
| 18124 | QM_ASSERT_UNREACHABLE)auto tryResult1373 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect (!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1371 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18118, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18120, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1373.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1373.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 tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1371 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18118, mozilla::dom::quota::Severity::Error); return tryResult1371.propagateErr(); }}; {auto tryResult1372 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18120, mozilla::dom::quota::Severity::Error); return tryResult1372.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18124); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18124); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1373.inspect();; | ||||
| 18125 | |||||
| 18126 | MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!hasResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18126); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult" ")"); do { MOZ_CrashSequence(__null, 18126); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18127 | } | ||||
| 18128 | #endif | ||||
| 18129 | |||||
| 18130 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 18131 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1374 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1374)::ok_type>); if ((__builtin_expect(!!(tryResult1374 .isErr()), 0))) { auto tryTempError = tryResult1374.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18136, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18132 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1374 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1374)::ok_type>); if ((__builtin_expect(!!(tryResult1374 .isErr()), 0))) { auto tryTempError = tryResult1374.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18136, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18133 | ,{auto tryResult1374 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1374)::ok_type>); if ((__builtin_expect(!!(tryResult1374 .isErr()), 0))) { auto tryTempError = tryResult1374.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18136, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18134 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1374 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1374)::ok_type>); if ((__builtin_expect(!!(tryResult1374 .isErr()), 0))) { auto tryTempError = tryResult1374.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18136, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18135 | #endif{auto tryResult1374 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1374)::ok_type>); if ((__builtin_expect(!!(tryResult1374 .isErr()), 0))) { auto tryTempError = tryResult1374.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18136, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18136 | ){auto tryResult1374 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1374)::ok_type>); if ((__builtin_expect(!!(tryResult1374 .isErr()), 0))) { auto tryTempError = tryResult1374.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18136, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | ||||
| 18137 | |||||
| 18138 | // The parameter names are not used, parameters are bound by index only | ||||
| 18139 | // locally in the same function. | ||||
| 18140 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1377 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1375 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect (!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1375 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18145, mozilla::dom::quota::Severity::Error); return tryResult1375 .propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18147, mozilla::dom::quota::Severity::Error); return tryResult1376 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1377)::ok_type>); if ((__builtin_expect (!!(tryResult1377.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 tryResult1375 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect(!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1375.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18145, mozilla::dom::quota::Severity::Error); return tryResult1375.propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1376.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18147, mozilla::dom::quota::Severity::Error); return tryResult1376.propagateErr(); }}; return Ok{}; }))" , tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18150, mozilla::dom::quota::Severity::Error); return tryResult1377 .propagateErr(); }} | ||||
| 18141 | "UPDATE object_store "{auto tryResult1377 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1375 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect (!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1375 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18145, mozilla::dom::quota::Severity::Error); return tryResult1375 .propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18147, mozilla::dom::quota::Severity::Error); return tryResult1376 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1377)::ok_type>); if ((__builtin_expect (!!(tryResult1377.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 tryResult1375 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect(!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1375.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18145, mozilla::dom::quota::Severity::Error); return tryResult1375.propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1376.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18147, mozilla::dom::quota::Severity::Error); return tryResult1376.propagateErr(); }}; return Ok{}; }))" , tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18150, mozilla::dom::quota::Severity::Error); return tryResult1377 .propagateErr(); }} | ||||
| 18142 | "SET name = :name "{auto tryResult1377 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1375 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect (!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1375 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18145, mozilla::dom::quota::Severity::Error); return tryResult1375 .propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18147, mozilla::dom::quota::Severity::Error); return tryResult1376 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1377)::ok_type>); if ((__builtin_expect (!!(tryResult1377.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 tryResult1375 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect(!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1375.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18145, mozilla::dom::quota::Severity::Error); return tryResult1375.propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1376.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18147, mozilla::dom::quota::Severity::Error); return tryResult1376.propagateErr(); }}; return Ok{}; }))" , tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18150, mozilla::dom::quota::Severity::Error); return tryResult1377 .propagateErr(); }} | ||||
| 18143 | "WHERE id = :id;"_ns,{auto tryResult1377 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1375 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect (!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1375 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18145, mozilla::dom::quota::Severity::Error); return tryResult1375 .propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18147, mozilla::dom::quota::Severity::Error); return tryResult1376 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1377)::ok_type>); if ((__builtin_expect (!!(tryResult1377.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 tryResult1375 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect(!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1375.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18145, mozilla::dom::quota::Severity::Error); return tryResult1375.propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1376.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18147, mozilla::dom::quota::Severity::Error); return tryResult1376.propagateErr(); }}; return Ok{}; }))" , tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18150, mozilla::dom::quota::Severity::Error); return tryResult1377 .propagateErr(); }} | ||||
| 18144 | [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1377 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1375 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect (!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1375 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18145, mozilla::dom::quota::Severity::Error); return tryResult1375 .propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18147, mozilla::dom::quota::Severity::Error); return tryResult1376 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1377)::ok_type>); if ((__builtin_expect (!!(tryResult1377.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 tryResult1375 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect(!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1375.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18145, mozilla::dom::quota::Severity::Error); return tryResult1375.propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1376.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18147, mozilla::dom::quota::Severity::Error); return tryResult1376.propagateErr(); }}; return Ok{}; }))" , tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18150, mozilla::dom::quota::Severity::Error); return tryResult1377 .propagateErr(); }} | ||||
| 18145 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult1377 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1375 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect (!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1375 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18145, mozilla::dom::quota::Severity::Error); return tryResult1375 .propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18147, mozilla::dom::quota::Severity::Error); return tryResult1376 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1377)::ok_type>); if ((__builtin_expect (!!(tryResult1377.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 tryResult1375 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect(!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1375.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18145, mozilla::dom::quota::Severity::Error); return tryResult1375.propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1376.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18147, mozilla::dom::quota::Severity::Error); return tryResult1376.propagateErr(); }}; return Ok{}; }))" , tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18150, mozilla::dom::quota::Severity::Error); return tryResult1377 .propagateErr(); }} | ||||
| 18146 | |||||
| 18147 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));{auto tryResult1377 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1375 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect (!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1375 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18145, mozilla::dom::quota::Severity::Error); return tryResult1375 .propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18147, mozilla::dom::quota::Severity::Error); return tryResult1376 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1377)::ok_type>); if ((__builtin_expect (!!(tryResult1377.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 tryResult1375 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect(!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1375.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18145, mozilla::dom::quota::Severity::Error); return tryResult1375.propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1376.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18147, mozilla::dom::quota::Severity::Error); return tryResult1376.propagateErr(); }}; return Ok{}; }))" , tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18150, mozilla::dom::quota::Severity::Error); return tryResult1377 .propagateErr(); }} | ||||
| 18148 | |||||
| 18149 | return Ok{};{auto tryResult1377 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1375 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect (!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1375 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18145, mozilla::dom::quota::Severity::Error); return tryResult1375 .propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18147, mozilla::dom::quota::Severity::Error); return tryResult1376 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1377)::ok_type>); if ((__builtin_expect (!!(tryResult1377.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 tryResult1375 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect(!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1375.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18145, mozilla::dom::quota::Severity::Error); return tryResult1375.propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1376.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18147, mozilla::dom::quota::Severity::Error); return tryResult1376.propagateErr(); }}; return Ok{}; }))" , tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18150, mozilla::dom::quota::Severity::Error); return tryResult1377 .propagateErr(); }} | ||||
| 18150 | }))){auto tryResult1377 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1375 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect (!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1375 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18145, mozilla::dom::quota::Severity::Error); return tryResult1375 .propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18147, mozilla::dom::quota::Severity::Error); return tryResult1376 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1377)::ok_type>); if ((__builtin_expect (!!(tryResult1377.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 tryResult1375 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect(!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1375.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18145, mozilla::dom::quota::Severity::Error); return tryResult1375.propagateErr(); }}; {auto tryResult1376 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1376.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18147, mozilla::dom::quota::Severity::Error); return tryResult1376.propagateErr(); }}; return Ok{}; }))" , tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18150, mozilla::dom::quota::Severity::Error); return tryResult1377 .propagateErr(); }}; | ||||
| 18151 | |||||
| 18152 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1378 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1378)::ok_type >); if ((__builtin_expect(!!(tryResult1378.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1378.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1378 .propagateErr(); }}; | ||||
| 18153 | |||||
| 18154 | return NS_OK; | ||||
| 18155 | } | ||||
| 18156 | |||||
| 18157 | CreateIndexOp::CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 18158 | const IndexOrObjectStoreId aObjectStoreId, | ||||
| 18159 | const IndexMetadata& aMetadata) | ||||
| 18160 | : VersionChangeTransactionOp(std::move(aTransaction)), | ||||
| 18161 | mMetadata(aMetadata), | ||||
| 18162 | mFileManager(Transaction().GetDatabase().GetFileManagerPtr()), | ||||
| 18163 | mDatabaseId(Transaction().DatabaseId()), | ||||
| 18164 | mObjectStoreId(aObjectStoreId) { | ||||
| 18165 | MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18165 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 18165); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18166 | MOZ_ASSERT(aMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMetadata.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aMetadata.id()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18166 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()" ")" ); do { MOZ_CrashSequence(__null, 18166); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18167 | MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18167); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { MOZ_CrashSequence(__null, 18167); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18168 | MOZ_ASSERT(!mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseId.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18168 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 18168); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18169 | } | ||||
| 18170 | |||||
| 18171 | nsresult CreateIndexOp::InsertDataFromObjectStore( | ||||
| 18172 | DatabaseConnection* aConnection) { | ||||
| 18173 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18173); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18173); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18174 | aConnection->AssertIsOnConnectionThread(); | ||||
| 18175 | MOZ_ASSERT(mMaybeUniqueIndexTable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeUniqueIndexTable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeUniqueIndexTable))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mMaybeUniqueIndexTable" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18175 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable" ")"); do { MOZ_CrashSequence(__null, 18175); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18176 | |||||
| 18177 | AUTO_PROFILER_LABEL("CreateIndexOp::InsertDataFromObjectStore", DOM)mozilla::AutoProfilerLabel raiiObject18177( "CreateIndexOp::InsertDataFromObjectStore" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18178 | |||||
| 18179 | auto& storageConnection = aConnection->MutableStorageConnection(); | ||||
| 18180 | |||||
| 18181 | RefPtr<UpdateIndexDataValuesFunction> updateFunction = | ||||
| 18182 | new UpdateIndexDataValuesFunction(this, aConnection, | ||||
| 18183 | Transaction().GetDatabasePtr()); | ||||
| 18184 | |||||
| 18185 | constexpr auto updateFunctionName = "update_index_data_values"_ns; | ||||
| 18186 | |||||
| 18187 | nsresult rv = | ||||
| 18188 | storageConnection.CreateFunction(updateFunctionName, 4, updateFunction); | ||||
| 18189 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18189)) { | ||||
| 18190 | return rv; | ||||
| 18191 | } | ||||
| 18192 | |||||
| 18193 | rv = InsertDataFromObjectStoreInternal(aConnection); | ||||
| 18194 | |||||
| 18195 | MOZ_ALWAYS_SUCCEEDS(storageConnection.RemoveFunction(updateFunctionName))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (storageConnection.RemoveFunction(updateFunctionName))), 1))) ), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(storageConnection.RemoveFunction(updateFunctionName))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18195 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(storageConnection.RemoveFunction(updateFunctionName))" ")"); do { MOZ_CrashSequence(__null, 18195); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18196 | |||||
| 18197 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18197)) { | ||||
| 18198 | return rv; | ||||
| 18199 | } | ||||
| 18200 | |||||
| 18201 | return NS_OK; | ||||
| 18202 | } | ||||
| 18203 | |||||
| 18204 | nsresult CreateIndexOp::InsertDataFromObjectStoreInternal( | ||||
| 18205 | DatabaseConnection* aConnection) const { | ||||
| 18206 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18206); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18206); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18207 | aConnection->AssertIsOnConnectionThread(); | ||||
| 18208 | MOZ_ASSERT(mMaybeUniqueIndexTable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeUniqueIndexTable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeUniqueIndexTable))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mMaybeUniqueIndexTable" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18208 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable" ")"); do { MOZ_CrashSequence(__null, 18208); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18209 | |||||
| 18210 | MOZ_ASSERT(aConnection->HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection->HasStorageConnection())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aConnection->HasStorageConnection()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection->HasStorageConnection()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18210 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 18210); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18211 | |||||
| 18212 | // The parameter names are not used, parameters are bound by index only | ||||
| 18213 | // locally in the same function. | ||||
| 18214 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1380 = (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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1379)::ok_type >); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18221, mozilla::dom::quota::Severity::Error); return tryResult1379 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1380)::ok_type>); if ((__builtin_expect (!!(tryResult1380.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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1379.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18221, mozilla::dom::quota::Severity::Error); return tryResult1379.propagateErr(); }}; return Ok{}; }))" , tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18224, mozilla::dom::quota::Severity::Error); return tryResult1380 .propagateErr(); }} | ||||
| 18215 | "UPDATE object_data "{auto tryResult1380 = (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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1379)::ok_type >); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18221, mozilla::dom::quota::Severity::Error); return tryResult1379 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1380)::ok_type>); if ((__builtin_expect (!!(tryResult1380.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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1379.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18221, mozilla::dom::quota::Severity::Error); return tryResult1379.propagateErr(); }}; return Ok{}; }))" , tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18224, mozilla::dom::quota::Severity::Error); return tryResult1380 .propagateErr(); }} | ||||
| 18216 | "SET index_data_values = update_index_data_values "{auto tryResult1380 = (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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1379)::ok_type >); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18221, mozilla::dom::quota::Severity::Error); return tryResult1379 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1380)::ok_type>); if ((__builtin_expect (!!(tryResult1380.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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1379.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18221, mozilla::dom::quota::Severity::Error); return tryResult1379.propagateErr(); }}; return Ok{}; }))" , tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18224, mozilla::dom::quota::Severity::Error); return tryResult1380 .propagateErr(); }} | ||||
| 18217 | "(key, index_data_values, file_ids, data) "{auto tryResult1380 = (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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1379)::ok_type >); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18221, mozilla::dom::quota::Severity::Error); return tryResult1379 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1380)::ok_type>); if ((__builtin_expect (!!(tryResult1380.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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1379.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18221, mozilla::dom::quota::Severity::Error); return tryResult1379.propagateErr(); }}; return Ok{}; }))" , tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18224, mozilla::dom::quota::Severity::Error); return tryResult1380 .propagateErr(); }} | ||||
| 18218 | "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1380 = (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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1379)::ok_type >); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18221, mozilla::dom::quota::Severity::Error); return tryResult1379 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1380)::ok_type>); if ((__builtin_expect (!!(tryResult1380.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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1379.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18221, mozilla::dom::quota::Severity::Error); return tryResult1379.propagateErr(); }}; return Ok{}; }))" , tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18224, mozilla::dom::quota::Severity::Error); return tryResult1380 .propagateErr(); }} | ||||
| 18219 | [objectStoredId ={auto tryResult1380 = (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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1379)::ok_type >); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18221, mozilla::dom::quota::Severity::Error); return tryResult1379 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1380)::ok_type>); if ((__builtin_expect (!!(tryResult1380.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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1379.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18221, mozilla::dom::quota::Severity::Error); return tryResult1379.propagateErr(); }}; return Ok{}; }))" , tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18224, mozilla::dom::quota::Severity::Error); return tryResult1380 .propagateErr(); }} | ||||
| 18220 | mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1380 = (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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1379)::ok_type >); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18221, mozilla::dom::quota::Severity::Error); return tryResult1379 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1380)::ok_type>); if ((__builtin_expect (!!(tryResult1380.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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1379.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18221, mozilla::dom::quota::Severity::Error); return tryResult1379.propagateErr(); }}; return Ok{}; }))" , tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18224, mozilla::dom::quota::Severity::Error); return tryResult1380 .propagateErr(); }} | ||||
| 18221 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoredId)));{auto tryResult1380 = (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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1379)::ok_type >); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18221, mozilla::dom::quota::Severity::Error); return tryResult1379 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1380)::ok_type>); if ((__builtin_expect (!!(tryResult1380.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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1379.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18221, mozilla::dom::quota::Severity::Error); return tryResult1379.propagateErr(); }}; return Ok{}; }))" , tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18224, mozilla::dom::quota::Severity::Error); return tryResult1380 .propagateErr(); }} | ||||
| 18222 | |||||
| 18223 | return Ok{};{auto tryResult1380 = (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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1379)::ok_type >); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18221, mozilla::dom::quota::Severity::Error); return tryResult1379 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1380)::ok_type>); if ((__builtin_expect (!!(tryResult1380.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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1379.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18221, mozilla::dom::quota::Severity::Error); return tryResult1379.propagateErr(); }}; return Ok{}; }))" , tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18224, mozilla::dom::quota::Severity::Error); return tryResult1380 .propagateErr(); }} | ||||
| 18224 | }))){auto tryResult1380 = (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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1379)::ok_type >); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18221, mozilla::dom::quota::Severity::Error); return tryResult1379 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1380)::ok_type>); if ((__builtin_expect (!!(tryResult1380.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 tryResult1379 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1379.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18221, mozilla::dom::quota::Severity::Error); return tryResult1379.propagateErr(); }}; return Ok{}; }))" , tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18224, mozilla::dom::quota::Severity::Error); return tryResult1380 .propagateErr(); }}; | ||||
| 18225 | |||||
| 18226 | return NS_OK; | ||||
| 18227 | } | ||||
| 18228 | |||||
| 18229 | bool CreateIndexOp::Init(TransactionBase& aTransaction) { | ||||
| 18230 | AssertIsOnBackgroundThread(); | ||||
| 18231 | MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18231 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 18231); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18232 | MOZ_ASSERT(mMaybeUniqueIndexTable.isNothing())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeUniqueIndexTable.isNothing())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeUniqueIndexTable.isNothing ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeUniqueIndexTable.isNothing()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18232); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable.isNothing()" ")"); do { MOZ_CrashSequence(__null, 18232); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18233 | |||||
| 18234 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 18235 | aTransaction.GetMetadataForObjectStoreId(mObjectStoreId); | ||||
| 18236 | MOZ_ASSERT(objectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(objectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(objectStoreMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18236 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 18236); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18237 | |||||
| 18238 | const uint32_t indexCount = objectStoreMetadata->mIndexes.Count(); | ||||
| 18239 | if (!indexCount) { | ||||
| 18240 | return true; | ||||
| 18241 | } | ||||
| 18242 | |||||
| 18243 | auto uniqueIndexTable = UniqueIndexTable{indexCount}; | ||||
| 18244 | |||||
| 18245 | for (const auto& value : objectStoreMetadata->mIndexes.Values()) { | ||||
| 18246 | MOZ_ASSERT(!uniqueIndexTable.Contains(value->mCommonMetadata.id()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!uniqueIndexTable.Contains(value->mCommonMetadata .id()))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!uniqueIndexTable.Contains(value->mCommonMetadata .id())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!uniqueIndexTable.Contains(value->mCommonMetadata.id())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18246 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!uniqueIndexTable.Contains(value->mCommonMetadata.id())" ")"); do { MOZ_CrashSequence(__null, 18246); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18247 | |||||
| 18248 | if (NS_WARN_IF(!uniqueIndexTable.InsertOrUpdate(NS_warn_if_impl(!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata .id(), value->mCommonMetadata.unique(), fallible), "!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata.id(), value->mCommonMetadata.unique(), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18250 ) | ||||
| 18249 | value->mCommonMetadata.id(), value->mCommonMetadata.unique(),NS_warn_if_impl(!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata .id(), value->mCommonMetadata.unique(), fallible), "!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata.id(), value->mCommonMetadata.unique(), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18250 ) | ||||
| 18250 | fallible))NS_warn_if_impl(!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata .id(), value->mCommonMetadata.unique(), fallible), "!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata.id(), value->mCommonMetadata.unique(), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18250 )) { | ||||
| 18251 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18251, idbInternalErrMsg.get()); } while (0); | ||||
| 18252 | NS_WARNING("out of memory")NS_DebugBreak(NS_DEBUG_WARNING, "out of memory", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18252); | ||||
| 18253 | return false; | ||||
| 18254 | } | ||||
| 18255 | } | ||||
| 18256 | |||||
| 18257 | uniqueIndexTable.MarkImmutable(); | ||||
| 18258 | |||||
| 18259 | mMaybeUniqueIndexTable.emplace(std::move(uniqueIndexTable)); | ||||
| 18260 | |||||
| 18261 | return true; | ||||
| 18262 | } | ||||
| 18263 | |||||
| 18264 | nsresult CreateIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 18265 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18265); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18265); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18266 | aConnection->AssertIsOnConnectionThread(); | ||||
| 18267 | |||||
| 18268 | AUTO_PROFILER_LABEL("CreateIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18268( "CreateIndexOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18269 | |||||
| 18270 | #ifdef DEBUG1 | ||||
| 18271 | { | ||||
| 18272 | // Make sure that we're not creating an index with the same name and object | ||||
| 18273 | // store as another that already exists. This should be impossible because | ||||
| 18274 | // we should have thrown an error long before now... | ||||
| 18275 | // The parameter names are not used, parameters are bound by index only | ||||
| 18276 | // locally in the same function. | ||||
| 18277 | QM_TRY_INSPECT(auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18278 | const bool& hasResult,auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18279 | aConnectionauto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18280 | ->BorrowAndExecuteSingleStepStatement(auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18281 | "SELECT name "auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18282 | "FROM object_store_index "auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18283 | "WHERE object_store_id = :object_store_id AND name = :name;"_ns,auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18284 | [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18285 | QM_TRY(MOZ_TO_RESULT(auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18286 | stmt.BindInt64ByIndex(0, self.mObjectStoreId)));auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18287 | QM_TRY(MOZ_TO_RESULT(auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18288 | stmt.BindStringByIndex(1, self.mMetadata.name())));auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18289 | return Ok{};auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18290 | })auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18291 | .map(IsSome),auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect(); | ||||
| 18292 | QM_ASSERT_UNREACHABLE)auto tryResult1383 = (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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect (!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1381 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect (!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1383.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 tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1381)::ok_type>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1381.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18286, mozilla::dom::quota::Severity::Error); return tryResult1381.propagateErr(); }}; {auto tryResult1382 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1382.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult1382.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18292); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18292); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1383.inspect();; | ||||
| 18293 | |||||
| 18294 | MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!hasResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18294); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult" ")"); do { MOZ_CrashSequence(__null, 18294); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18295 | } | ||||
| 18296 | #endif | ||||
| 18297 | |||||
| 18298 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 18299 | 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, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18304, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18300 | #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, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18304, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18301 | ,{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, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18304, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18302 | 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, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18304, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18303 | #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, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18304, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18304 | ){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, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18304, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | ||||
| 18305 | |||||
| 18306 | // The parameter names are not used, parameters are bound by index only | ||||
| 18307 | // locally in the same function. | ||||
| 18308 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18309 | "INSERT INTO object_store_index (id, name, key_path, unique_index, "{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18310 | "multientry, object_store_id, locale, "{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18311 | "is_auto_locale) "{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18312 | "VALUES (:id, :name, :key_path, :unique, :multientry, "{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18313 | ":object_store_id, :locale, :is_auto_locale)"_ns,{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18314 | [&metadata = mMetadata, objectStoreId = mObjectStoreId]({auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18315 | mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18316 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18317 | |||||
| 18318 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(1, metadata.name())));{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18319 | |||||
| 18320 | QM_TRY(MOZ_TO_RESULT({auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18321 | stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString())));{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18322 | |||||
| 18323 | QM_TRY({auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18324 | MOZ_TO_RESULT(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0)));{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18325 | |||||
| 18326 | QM_TRY(MOZ_TO_RESULT({auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18327 | stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0)));{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18328 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(5, objectStoreId)));{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18329 | |||||
| 18330 | QM_TRY(MOZ_TO_RESULT({auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18331 | metadata.locale().IsEmpty(){auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18332 | ? stmt.BindNullByIndex(6){auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18333 | : stmt.BindUTF8StringByIndex(6, metadata.locale())));{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18334 | |||||
| 18335 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt32ByIndex(7, metadata.autoLocale())));{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18336 | |||||
| 18337 | return Ok{};{auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18338 | }))){auto tryResult1393 = (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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1385)::ok_type >); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect (!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1386 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18318, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1387)::ok_type> ); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18321, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect (!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18324, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18327, mozilla::dom::quota::Severity::Error); return tryResult1389 .propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect (!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1390 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18328, mozilla::dom::quota::Severity::Error); return tryResult1390 .propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1391.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18333, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect (!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18335, mozilla::dom::quota::Severity::Error); return tryResult1392 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect (!!(tryResult1393.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 tryResult1385 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1385.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1385.propagateErr(); }}; {auto tryResult1386 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1386.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18318, mozilla::dom::quota::Severity::Error); return tryResult1386.propagateErr(); }}; {auto tryResult1387 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18321, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18324, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18327, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; {auto tryResult1390 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18328, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18333, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18335, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }}; | ||||
| 18339 | |||||
| 18340 | #ifdef DEBUG1 | ||||
| 18341 | { | ||||
| 18342 | int64_t id; | ||||
| 18343 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetLastInsertRowID (&id))), 1)))), 1))) { } else { do { do { } while (false) ; MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18344 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")"); do { MOZ_CrashSequence(__null, 18344); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18344 | aConnection->MutableStorageConnection().GetLastInsertRowID(&id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetLastInsertRowID (&id))), 1)))), 1))) { } else { do { do { } while (false) ; MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18344 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")"); do { MOZ_CrashSequence(__null, 18344); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18345 | MOZ_ASSERT(mMetadata.id() == id)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata.id() == id)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata.id() == id))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata.id() == id" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18345 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id" ")"); do { MOZ_CrashSequence(__null, 18345); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18346 | } | ||||
| 18347 | #endif | ||||
| 18348 | |||||
| 18349 | QM_TRY(MOZ_TO_RESULT(InsertDataFromObjectStore(aConnection))){auto tryResult1394 = (ToResult(InsertDataFromObjectStore(aConnection ))); static_assert(std::is_empty_v<typename decltype(tryResult1394 )::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(InsertDataFromObjectStore(aConnection))" , tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18349, mozilla::dom::quota::Severity::Error); return tryResult1394 .propagateErr(); }}; | ||||
| 18350 | |||||
| 18351 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1395 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1395)::ok_type >); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18351, mozilla::dom::quota::Severity::Error); return tryResult1395 .propagateErr(); }}; | ||||
| 18352 | |||||
| 18353 | return NS_OK; | ||||
| 18354 | } | ||||
| 18355 | |||||
| 18356 | NS_IMPL_ISUPPORTS(CreateIndexOp::UpdateIndexDataValuesFunction,MozExternalRefCountType CreateIndexOp::UpdateIndexDataValuesFunction ::AddRef(void) { static_assert(!std::is_destructible_v<CreateIndexOp ::UpdateIndexDataValuesFunction>, "Reference-counted class " "CreateIndexOp::UpdateIndexDataValuesFunction" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 18357 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 18357); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction" " not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef ((this), (count), ("CreateIndexOp::UpdateIndexDataValuesFunction" ), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType CreateIndexOp::UpdateIndexDataValuesFunction::Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 18357 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 18357); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction" " not thread-safe"); const char* const nametmp = "CreateIndexOp::UpdateIndexDataValuesFunction" ; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), ( nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return 0; } return count; } nsresult CreateIndexOp::UpdateIndexDataValuesFunction ::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "QueryInterface requires a non-NULL destination!", "aInstancePtr" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18357 ); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE ; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<CreateIndexOp::UpdateIndexDataValuesFunction , mozIStorageFunction>, int32_t( reinterpret_cast<char* >(static_cast<mozIStorageFunction*>((CreateIndexOp:: UpdateIndexDataValuesFunction*)0x1000)) - reinterpret_cast< char*>((CreateIndexOp::UpdateIndexDataValuesFunction*)0x1000 ))}, {&mozilla::detail::kImplementedIID<CreateIndexOp:: UpdateIndexDataValuesFunction, nsISupports>, int32_t(reinterpret_cast <char*>(static_cast<nsISupports*>( static_cast< mozIStorageFunction*>((CreateIndexOp::UpdateIndexDataValuesFunction *)0x1000))) - reinterpret_cast<char*>((CreateIndexOp::UpdateIndexDataValuesFunction *)0x1000))}, { nullptr, 0 } } ; static_assert(std::size(table ) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI (static_cast<void*>(this), aIID, aInstancePtr, table); return rv; } | ||||
| 18357 | mozIStorageFunction)MozExternalRefCountType CreateIndexOp::UpdateIndexDataValuesFunction ::AddRef(void) { static_assert(!std::is_destructible_v<CreateIndexOp ::UpdateIndexDataValuesFunction>, "Reference-counted class " "CreateIndexOp::UpdateIndexDataValuesFunction" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 18357 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 18357); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction" " not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef ((this), (count), ("CreateIndexOp::UpdateIndexDataValuesFunction" ), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType CreateIndexOp::UpdateIndexDataValuesFunction::Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 18357 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 18357); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction" " not thread-safe"); const char* const nametmp = "CreateIndexOp::UpdateIndexDataValuesFunction" ; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), ( nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return 0; } return count; } nsresult CreateIndexOp::UpdateIndexDataValuesFunction ::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "QueryInterface requires a non-NULL destination!", "aInstancePtr" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18357 ); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE ; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<CreateIndexOp::UpdateIndexDataValuesFunction , mozIStorageFunction>, int32_t( reinterpret_cast<char* >(static_cast<mozIStorageFunction*>((CreateIndexOp:: UpdateIndexDataValuesFunction*)0x1000)) - reinterpret_cast< char*>((CreateIndexOp::UpdateIndexDataValuesFunction*)0x1000 ))}, {&mozilla::detail::kImplementedIID<CreateIndexOp:: UpdateIndexDataValuesFunction, nsISupports>, int32_t(reinterpret_cast <char*>(static_cast<nsISupports*>( static_cast< mozIStorageFunction*>((CreateIndexOp::UpdateIndexDataValuesFunction *)0x1000))) - reinterpret_cast<char*>((CreateIndexOp::UpdateIndexDataValuesFunction *)0x1000))}, { nullptr, 0 } } ; static_assert(std::size(table ) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI (static_cast<void*>(this), aIID, aInstancePtr, table); return rv; }; | ||||
| 18358 | |||||
| 18359 | NS_IMETHODIMPnsresult | ||||
| 18360 | CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall( | ||||
| 18361 | mozIStorageValueArray* aValues, nsIVariant** _retval) { | ||||
| 18362 | MOZ_ASSERT(aValues)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aValues)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aValues))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aValues", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")" ); do { MOZ_CrashSequence(__null, 18362); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18363 | MOZ_ASSERT(_retval)do { static_assert( mozilla::detail::AssertionConditionType< decltype(_retval)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(_retval))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("_retval", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18363); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")" ); do { MOZ_CrashSequence(__null, 18363); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18364 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18364); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 18364); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18365 | mConnection->AssertIsOnConnectionThread(); | ||||
| 18366 | MOZ_ASSERT(mOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOp)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(mOp))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18366); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp" ")"); do { MOZ_CrashSequence(__null, 18366); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18367 | MOZ_ASSERT(mOp->mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOp->mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOp->mFileManager))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mOp->mFileManager" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18367 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp->mFileManager" ")"); do { MOZ_CrashSequence(__null, 18367); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18368 | |||||
| 18369 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject18370( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 18370 | "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject18370( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18371 | |||||
| 18372 | #ifdef DEBUG1 | ||||
| 18373 | { | ||||
| 18374 | uint32_t argCount; | ||||
| 18375 | MOZ_ALWAYS_SUCCEEDS(aValues->GetNumEntries(&argCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aValues->GetNumEntries(&argCount))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetNumEntries(&argCount))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18375 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetNumEntries(&argCount))" ")"); do { MOZ_CrashSequence(__null, 18375); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18376 | MOZ_ASSERT(argCount == 4)do { static_assert( mozilla::detail::AssertionConditionType< decltype(argCount == 4)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(argCount == 4))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("argCount == 4", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18376) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "argCount == 4" ")" ); do { MOZ_CrashSequence(__null, 18376); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); // key, index_data_values, file_ids, data | ||||
| 18377 | |||||
| 18378 | int32_t valueType; | ||||
| 18379 | MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(0, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aValues->GetTypeOfIndex(0, &valueType))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetTypeOfIndex(0, &valueType))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18379 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(0, &valueType))" ")"); do { MOZ_CrashSequence(__null, 18379); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18380 | MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18380 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { MOZ_CrashSequence(__null, 18380); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18381 | |||||
| 18382 | MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(1, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aValues->GetTypeOfIndex(1, &valueType))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetTypeOfIndex(1, &valueType))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18382 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(1, &valueType))" ")"); do { MOZ_CrashSequence(__null, 18382); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18383 | MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18384 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { MOZ_CrashSequence(__null, 18384); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 18384 | valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18384 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { MOZ_CrashSequence(__null, 18384); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18385 | |||||
| 18386 | MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(2, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aValues->GetTypeOfIndex(2, &valueType))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetTypeOfIndex(2, &valueType))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18386 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(2, &valueType))" ")"); do { MOZ_CrashSequence(__null, 18386); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18387 | MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18388 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 18388); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 18388 | valueType == mozIStorageValueArray::VALUE_TYPE_TEXT)do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18388 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 18388); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18389 | |||||
| 18390 | MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(3, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aValues->GetTypeOfIndex(3, &valueType))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetTypeOfIndex(3, &valueType))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18390 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(3, &valueType))" ")"); do { MOZ_CrashSequence(__null, 18390); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18391 | MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18392 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER" ")"); do { MOZ_CrashSequence(__null, 18392); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 18392 | valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER)do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18392 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER" ")"); do { MOZ_CrashSequence(__null, 18392); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18393 | } | ||||
| 18394 | #endif | ||||
| 18395 | |||||
| 18396 | QM_TRY_UNWRAP(auto cloneInfo, GetStructuredCloneReadInfoFromValueArray(auto tryResult1396 = (GetStructuredCloneReadInfoFromValueArray ( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect (!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18399, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); } auto cloneInfo = tryResult1396.unwrap(); | ||||
| 18397 | aValues,auto tryResult1396 = (GetStructuredCloneReadInfoFromValueArray ( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect (!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18399, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); } auto cloneInfo = tryResult1396.unwrap(); | ||||
| 18398 | /* aDataIndex */ 3,auto tryResult1396 = (GetStructuredCloneReadInfoFromValueArray ( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect (!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18399, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); } auto cloneInfo = tryResult1396.unwrap(); | ||||
| 18399 | /* aFileIdsIndex */ 2, *mOp->mFileManager))auto tryResult1396 = (GetStructuredCloneReadInfoFromValueArray ( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect (!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18399, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); } auto cloneInfo = tryResult1396.unwrap();; | ||||
| 18400 | |||||
| 18401 | const IndexMetadata& metadata = mOp->mMetadata; | ||||
| 18402 | const IndexOrObjectStoreId& objectStoreId = mOp->mObjectStoreId; | ||||
| 18403 | |||||
| 18404 | // XXX does this really need a non-const cloneInfo? | ||||
| 18405 | QM_TRY_INSPECT(const auto& updateInfos,auto tryResult1397 = (DeserializeIndexValueToUpdateInfos( metadata .id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale (), cloneInfo)); if ((__builtin_expect(!!(tryResult1397.isErr ()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)" , tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18408, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); } const auto& updateInfos = tryResult1397 .inspect(); | ||||
| 18406 | DeserializeIndexValueToUpdateInfos(auto tryResult1397 = (DeserializeIndexValueToUpdateInfos( metadata .id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale (), cloneInfo)); if ((__builtin_expect(!!(tryResult1397.isErr ()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)" , tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18408, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); } const auto& updateInfos = tryResult1397 .inspect(); | ||||
| 18407 | metadata.id(), metadata.keyPath(), metadata.multiEntry(),auto tryResult1397 = (DeserializeIndexValueToUpdateInfos( metadata .id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale (), cloneInfo)); if ((__builtin_expect(!!(tryResult1397.isErr ()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)" , tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18408, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); } const auto& updateInfos = tryResult1397 .inspect(); | ||||
| 18408 | metadata.locale(), cloneInfo))auto tryResult1397 = (DeserializeIndexValueToUpdateInfos( metadata .id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale (), cloneInfo)); if ((__builtin_expect(!!(tryResult1397.isErr ()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)" , tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18408, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); } const auto& updateInfos = tryResult1397 .inspect();; | ||||
| 18409 | |||||
| 18410 | if (updateInfos.IsEmpty()) { | ||||
| 18411 | // XXX See if we can do this without copying... | ||||
| 18412 | |||||
| 18413 | nsCOMPtr<nsIVariant> unmodifiedValue; | ||||
| 18414 | |||||
| 18415 | // No changes needed, just return the original value. | ||||
| 18416 | QM_TRY_INSPECT(const int32_t& valueType,auto tryResult1398 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult1398 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18417, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); } const int32_t& valueType = tryResult1398 .inspect(); | ||||
| 18417 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1))auto tryResult1398 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult1398 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18417, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); } const int32_t& valueType = tryResult1398 .inspect();; | ||||
| 18418 | |||||
| 18419 | MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18420 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { MOZ_CrashSequence(__null, 18420); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 18420 | valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18420 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { MOZ_CrashSequence(__null, 18420); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18421 | |||||
| 18422 | if (valueType == mozIStorageValueArray::VALUE_TYPE_NULL) { | ||||
| 18423 | unmodifiedValue = new storage::NullVariant(); | ||||
| 18424 | unmodifiedValue.forget(_retval); | ||||
| 18425 | return NS_OK; | ||||
| 18426 | } | ||||
| 18427 | |||||
| 18428 | MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18428 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { MOZ_CrashSequence(__null, 18428); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18429 | |||||
| 18430 | const uint8_t* blobData; | ||||
| 18431 | uint32_t blobDataLength; | ||||
| 18432 | QM_TRY({auto tryResult1399 = (ToResult(aValues->GetSharedBlob(1, & blobDataLength, &blobData))); static_assert(std::is_empty_v <typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))" , tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18433, mozilla::dom::quota::Severity::Error); return tryResult1399 .propagateErr(); }} | ||||
| 18433 | MOZ_TO_RESULT(aValues->GetSharedBlob(1, &blobDataLength, &blobData))){auto tryResult1399 = (ToResult(aValues->GetSharedBlob(1, & blobDataLength, &blobData))); static_assert(std::is_empty_v <typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))" , tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18433, mozilla::dom::quota::Severity::Error); return tryResult1399 .propagateErr(); }}; | ||||
| 18434 | |||||
| 18435 | const std::pair<uint8_t*, int> copiedBlobDataPair( | ||||
| 18436 | static_cast<uint8_t*>(malloc(blobDataLength)), blobDataLength); | ||||
| 18437 | |||||
| 18438 | if (!copiedBlobDataPair.first) { | ||||
| 18439 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18439, idbInternalErrMsg.get()); } while (0); | ||||
| 18440 | return NS_ERROR_OUT_OF_MEMORY; | ||||
| 18441 | } | ||||
| 18442 | |||||
| 18443 | memcpy(copiedBlobDataPair.first, blobData, blobDataLength); | ||||
| 18444 | |||||
| 18445 | unmodifiedValue = new storage::AdoptedBlobVariant(copiedBlobDataPair); | ||||
| 18446 | unmodifiedValue.forget(_retval); | ||||
| 18447 | |||||
| 18448 | return NS_OK; | ||||
| 18449 | } | ||||
| 18450 | |||||
| 18451 | Key key; | ||||
| 18452 | QM_TRY(MOZ_TO_RESULT(key.SetFromValueArray(aValues, 0))){auto tryResult1400 = (ToResult(key.SetFromValueArray(aValues , 0))); static_assert(std::is_empty_v<typename decltype(tryResult1400 )::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(key.SetFromValueArray(aValues, 0))" , tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18452, mozilla::dom::quota::Severity::Error); return tryResult1400 .propagateErr(); }}; | ||||
| 18453 | |||||
| 18454 | QM_TRY_UNWRAP(auto indexValues, ReadCompressedIndexDataValues(*aValues, 1))auto tryResult1401 = (ReadCompressedIndexDataValues(*aValues, 1)); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(*aValues, 1)" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18454, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); } auto indexValues = tryResult1401.unwrap();; | ||||
| 18455 | |||||
| 18456 | const bool hadPreviousIndexValues = !indexValues.IsEmpty(); | ||||
| 18457 | |||||
| 18458 | const uint32_t updateInfoCount = updateInfos.Length(); | ||||
| 18459 | |||||
| 18460 | QM_TRY(OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount,{auto tryResult1402 = (OkIf(indexValues.SetCapacity(indexValues .Length() + updateInfoCount, fallible))); static_assert(std:: is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { auto tryTempError = tryResult1402.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18462, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18462, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, NS_ERROR_OUT_OF_MEMORY); }} | ||||
| 18461 | fallible)),{auto tryResult1402 = (OkIf(indexValues.SetCapacity(indexValues .Length() + updateInfoCount, fallible))); static_assert(std:: is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { auto tryTempError = tryResult1402.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18462, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18462, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, NS_ERROR_OUT_OF_MEMORY); }} | ||||
| 18462 | NS_ERROR_OUT_OF_MEMORY, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1402 = (OkIf(indexValues.SetCapacity(indexValues .Length() + updateInfoCount, fallible))); static_assert(std:: is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { auto tryTempError = tryResult1402.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18462, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18462, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, NS_ERROR_OUT_OF_MEMORY); }}; | ||||
| 18463 | |||||
| 18464 | // First construct the full list to update the index_data_values row. | ||||
| 18465 | for (const IndexUpdateInfo& info : updateInfos) { | ||||
| 18466 | MOZ_ALWAYS_TRUE(indexValues.InsertElementSorted(do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18469 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18469); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18467 | IndexDataValue(metadata.id(), metadata.unique(), info.value(),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18469 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18469); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18468 | info.localizedValue()),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18469 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18469); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18469 | fallible))do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18469 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18469); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18470 | } | ||||
| 18471 | |||||
| 18472 | QM_TRY_UNWRAP((auto [indexValuesBlob, indexValuesBlobLength]),auto tryResult1403 = (MakeCompressedIndexDataValues(indexValues )); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18473, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength ] = tryResult1403.unwrap(); | ||||
| 18473 | MakeCompressedIndexDataValues(indexValues))auto tryResult1403 = (MakeCompressedIndexDataValues(indexValues )); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18473, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength ] = tryResult1403.unwrap();; | ||||
| 18474 | |||||
| 18475 | MOZ_ASSERT(!indexValuesBlobLength == !(indexValuesBlob.get()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!indexValuesBlobLength == !(indexValuesBlob.get()))> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!indexValuesBlobLength == !(indexValuesBlob.get()))) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!indexValuesBlobLength == !(indexValuesBlob.get())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18475 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexValuesBlobLength == !(indexValuesBlob.get())" ")"); do { MOZ_CrashSequence(__null, 18475); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18476 | |||||
| 18477 | nsCOMPtr<nsIVariant> value; | ||||
| 18478 | |||||
| 18479 | if (!indexValuesBlob) { | ||||
| 18480 | value = new storage::NullVariant(); | ||||
| 18481 | |||||
| 18482 | value.forget(_retval); | ||||
| 18483 | return NS_OK; | ||||
| 18484 | } | ||||
| 18485 | |||||
| 18486 | // Now insert the new table rows. We only need to construct a new list if | ||||
| 18487 | // the full list is different. | ||||
| 18488 | if (hadPreviousIndexValues) { | ||||
| 18489 | indexValues.ClearAndRetainStorage(); | ||||
| 18490 | |||||
| 18491 | MOZ_ASSERT(indexValues.Capacity() >= updateInfoCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(indexValues.Capacity() >= updateInfoCount)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(indexValues.Capacity() >= updateInfoCount))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexValues.Capacity() >= updateInfoCount" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18491 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexValues.Capacity() >= updateInfoCount" ")"); do { MOZ_CrashSequence(__null, 18491); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18492 | |||||
| 18493 | for (const IndexUpdateInfo& info : updateInfos) { | ||||
| 18494 | MOZ_ALWAYS_TRUE(indexValues.InsertElementSorted(do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18497 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18497); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18495 | IndexDataValue(metadata.id(), metadata.unique(), info.value(),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18497 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18497); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18496 | info.localizedValue()),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18497 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18497); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18497 | fallible))do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18497 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18497); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18498 | } | ||||
| 18499 | } | ||||
| 18500 | |||||
| 18501 | QM_TRY(MOZ_TO_RESULT({auto tryResult1404 = (ToResult(InsertIndexTableRows(mConnection , objectStoreId, key, indexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18502, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }} | ||||
| 18502 | InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))){auto tryResult1404 = (ToResult(InsertIndexTableRows(mConnection , objectStoreId, key, indexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18502, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; | ||||
| 18503 | |||||
| 18504 | value = new storage::AdoptedBlobVariant( | ||||
| 18505 | std::pair(indexValuesBlob.release(), indexValuesBlobLength)); | ||||
| 18506 | |||||
| 18507 | value.forget(_retval); | ||||
| 18508 | return NS_OK; | ||||
| 18509 | } | ||||
| 18510 | |||||
| 18511 | DeleteIndexOp::DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 18512 | const IndexOrObjectStoreId aObjectStoreId, | ||||
| 18513 | const IndexOrObjectStoreId aIndexId, | ||||
| 18514 | const bool aUnique, const bool aIsLastIndex) | ||||
| 18515 | : VersionChangeTransactionOp(std::move(aTransaction)), | ||||
| 18516 | mObjectStoreId(aObjectStoreId), | ||||
| 18517 | mIndexId(aIndexId), | ||||
| 18518 | mUnique(aUnique), | ||||
| 18519 | mIsLastIndex(aIsLastIndex) { | ||||
| 18520 | MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18520 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 18520); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18521 | MOZ_ASSERT(aIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aIndexId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aIndexId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")" ); do { MOZ_CrashSequence(__null, 18521); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18522 | } | ||||
| 18523 | |||||
| 18524 | nsresult DeleteIndexOp::RemoveReferencesToIndex( | ||||
| 18525 | DatabaseConnection* aConnection, const Key& aObjectStoreKey, | ||||
| 18526 | nsTArray<IndexDataValue>& aIndexValues) const { | ||||
| 18527 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18527 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 18527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18528 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18528 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 18528); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18529 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18529); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18530 | MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18530 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 18530); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18531 | MOZ_ASSERT_IF(!mIsLastIndex, !aIndexValues.IsEmpty())do { if (!mIsLastIndex) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!aIndexValues.IsEmpty()) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!aIndexValues.IsEmpty()))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("!aIndexValues.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18531); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIndexValues.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 18531); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 18532 | |||||
| 18533 | AUTO_PROFILER_LABEL("DeleteIndexOp::RemoveReferencesToIndex", DOM)mozilla::AutoProfilerLabel raiiObject18533( "DeleteIndexOp::RemoveReferencesToIndex" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18534 | |||||
| 18535 | if (mIsLastIndex) { | ||||
| 18536 | // There is no need to parse the previous entry in the index_data_values | ||||
| 18537 | // column if this is the last index. Simply set it to NULL. | ||||
| 18538 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1405 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1405.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)" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18544, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); } const auto& stmt = tryResult1405.inspect (); | ||||
| 18539 | aConnection->BorrowCachedStatement(auto tryResult1405 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1405.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)" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18544, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); } const auto& stmt = tryResult1405.inspect (); | ||||
| 18540 | "UPDATE object_data "auto tryResult1405 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1405.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)" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18544, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); } const auto& stmt = tryResult1405.inspect (); | ||||
| 18541 | "SET index_data_values = NULL "auto tryResult1405 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1405.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)" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18544, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); } const auto& stmt = tryResult1405.inspect (); | ||||
| 18542 | "WHERE object_store_id = :"_ns +auto tryResult1405 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1405.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)" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18544, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); } const auto& stmt = tryResult1405.inspect (); | ||||
| 18543 | kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1405 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1405.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)" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18544, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); } const auto& stmt = tryResult1405.inspect (); | ||||
| 18544 | kStmtParamNameKey + ";"_ns))auto tryResult1405 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1405.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)" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18544, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); } const auto& stmt = tryResult1405.inspect ();; | ||||
| 18545 | |||||
| 18546 | QM_TRY(MOZ_TO_RESULT({auto tryResult1406 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1406.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18547, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }} | ||||
| 18547 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1406 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1406.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18547, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; | ||||
| 18548 | |||||
| 18549 | QM_TRY(MOZ_TO_RESULT({auto tryResult1407 = (ToResult(aObjectStoreKey.BindToStatement (&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v <typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18550, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }} | ||||
| 18550 | aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))){auto tryResult1407 = (ToResult(aObjectStoreKey.BindToStatement (&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v <typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18550, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; | ||||
| 18551 | |||||
| 18552 | QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult1408 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1408)::ok_type >); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18552, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; | ||||
| 18553 | |||||
| 18554 | return NS_OK; | ||||
| 18555 | } | ||||
| 18556 | |||||
| 18557 | { | ||||
| 18558 | IndexDataValue search; | ||||
| 18559 | search.mIndexId = mIndexId; | ||||
| 18560 | |||||
| 18561 | // Use raw pointers for search to avoid redundant index validity checks. | ||||
| 18562 | // Maybe this should better be encapsulated in nsTArray. | ||||
| 18563 | const auto* const begin = aIndexValues.Elements(); | ||||
| 18564 | const auto* const end = aIndexValues.Elements() + aIndexValues.Length(); | ||||
| 18565 | |||||
| 18566 | const auto indexIdComparator = [](const IndexDataValue& aA, | ||||
| 18567 | const IndexDataValue& aB) { | ||||
| 18568 | return aA.mIndexId < aB.mIndexId; | ||||
| 18569 | }; | ||||
| 18570 | |||||
| 18571 | MOZ_ASSERT(std::is_sorted(begin, end, indexIdComparator))do { static_assert( mozilla::detail::AssertionConditionType< decltype(std::is_sorted(begin, end, indexIdComparator))>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(std::is_sorted(begin, end, indexIdComparator)))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("std::is_sorted(begin, end, indexIdComparator)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18571 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "std::is_sorted(begin, end, indexIdComparator)" ")"); do { MOZ_CrashSequence(__null, 18571); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18572 | |||||
| 18573 | const auto [beginRange, endRange] = | ||||
| 18574 | std::equal_range(begin, end, search, indexIdComparator); | ||||
| 18575 | if (beginRange == end) { | ||||
| 18576 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18576, idbInternalErrMsg.get()); } while (0); | ||||
| 18577 | return NS_ERROR_FILE_CORRUPTED; | ||||
| 18578 | } | ||||
| 18579 | |||||
| 18580 | aIndexValues.RemoveElementsAt(beginRange - begin, endRange - beginRange); | ||||
| 18581 | } | ||||
| 18582 | |||||
| 18583 | QM_TRY(MOZ_TO_RESULT(UpdateIndexValues(aConnection, mObjectStoreId,{auto tryResult1409 = (ToResult(UpdateIndexValues(aConnection , mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1409)::ok_type >); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18584, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18584 | aObjectStoreKey, aIndexValues))){auto tryResult1409 = (ToResult(UpdateIndexValues(aConnection , mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1409)::ok_type >); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18584, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }}; | ||||
| 18585 | |||||
| 18586 | return NS_OK; | ||||
| 18587 | } | ||||
| 18588 | |||||
| 18589 | nsresult DeleteIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 18590 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18590); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18590); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18591 | aConnection->AssertIsOnConnectionThread(); | ||||
| 18592 | |||||
| 18593 | #ifdef DEBUG1 | ||||
| 18594 | { | ||||
| 18595 | // Make sure |mIsLastIndex| is telling the truth. | ||||
| 18596 | // The parameter names are not used, parameters are bound by index only | ||||
| 18597 | // locally in the same function. | ||||
| 18598 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1410 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1410.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18603, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18603); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18603); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1410.inspect(); | ||||
| 18599 | aConnection->BorrowCachedStatement(auto tryResult1410 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1410.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18603, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18603); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18603); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1410.inspect(); | ||||
| 18600 | "SELECT id "auto tryResult1410 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1410.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18603, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18603); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18603); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1410.inspect(); | ||||
| 18601 | "FROM object_store_index "auto tryResult1410 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1410.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18603, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18603); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18603); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1410.inspect(); | ||||
| 18602 | "WHERE object_store_id = :object_store_id;"_ns),auto tryResult1410 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1410.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18603, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18603); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18603); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1410.inspect(); | ||||
| 18603 | QM_ASSERT_UNREACHABLE)auto tryResult1410 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1410.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18603, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18603); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18603); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1410.inspect();; | ||||
| 18604 | |||||
| 18605 | MOZ_ALWAYS_SUCCEEDS(stmt->BindInt64ByIndex(0, mObjectStoreId))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stmt->BindInt64ByIndex(0, mObjectStoreId))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->BindInt64ByIndex(0, mObjectStoreId))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18605 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->BindInt64ByIndex(0, mObjectStoreId))" ")"); do { MOZ_CrashSequence(__null, 18605); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18606 | |||||
| 18607 | bool foundThisIndex = false; | ||||
| 18608 | bool foundOtherIndex = false; | ||||
| 18609 | |||||
| 18610 | while (true) { | ||||
| 18611 | bool hasResult; | ||||
| 18612 | MOZ_ALWAYS_SUCCEEDS(stmt->ExecuteStep(&hasResult))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stmt->ExecuteStep(&hasResult))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18612 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))" ")"); do { MOZ_CrashSequence(__null, 18612); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18613 | |||||
| 18614 | if (!hasResult) { | ||||
| 18615 | break; | ||||
| 18616 | } | ||||
| 18617 | |||||
| 18618 | int64_t id; | ||||
| 18619 | MOZ_ALWAYS_SUCCEEDS(stmt->GetInt64(0, &id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stmt->GetInt64(0, &id))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18619 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" ")"); do { MOZ_CrashSequence(__null, 18619); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18620 | |||||
| 18621 | if (id == mIndexId) { | ||||
| 18622 | foundThisIndex = true; | ||||
| 18623 | } else { | ||||
| 18624 | foundOtherIndex = true; | ||||
| 18625 | } | ||||
| 18626 | } | ||||
| 18627 | |||||
| 18628 | MOZ_ASSERT_IF(mIsLastIndex, foundThisIndex && !foundOtherIndex)do { if (mIsLastIndex) { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(foundThisIndex && ! foundOtherIndex)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(foundThisIndex && !foundOtherIndex ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "foundThisIndex && !foundOtherIndex", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && !foundOtherIndex" ")"); do { MOZ_CrashSequence(__null, 18628); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 18629 | MOZ_ASSERT_IF(!mIsLastIndex, foundThisIndex && foundOtherIndex)do { if (!mIsLastIndex) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(foundThisIndex && foundOtherIndex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foundThisIndex && foundOtherIndex ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "foundThisIndex && foundOtherIndex", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18629); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && foundOtherIndex" ")"); do { MOZ_CrashSequence(__null, 18629); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 18630 | } | ||||
| 18631 | #endif | ||||
| 18632 | |||||
| 18633 | AUTO_PROFILER_LABEL("DeleteIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18633( "DeleteIndexOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18634 | |||||
| 18635 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 18636 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1411 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411 .isErr()), 0))) { auto tryTempError = tryResult1411.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18637 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1411 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411 .isErr()), 0))) { auto tryTempError = tryResult1411.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18638 | ,{auto tryResult1411 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411 .isErr()), 0))) { auto tryTempError = tryResult1411.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18639 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1411 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411 .isErr()), 0))) { auto tryTempError = tryResult1411.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18640 | #endif{auto tryResult1411 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411 .isErr()), 0))) { auto tryTempError = tryResult1411.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18641 | ){auto tryResult1411 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411 .isErr()), 0))) { auto tryTempError = tryResult1411.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | ||||
| 18642 | |||||
| 18643 | // mozStorage warns that these statements trigger a sort operation but we | ||||
| 18644 | // don't care because this is a very rare call and we expect it to be slow. | ||||
| 18645 | // The cost of having an index on this field is too high. | ||||
| 18646 | QM_TRY_INSPECT(auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18647 | const auto& selectStmt,auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18648 | aConnection->BorrowCachedStatement(auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18649 | mUniqueauto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18650 | ? (mIsLastIndexauto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18651 | ? "/* do not warn (bug someone else) */ "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18652 | "SELECT value, object_data_key "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18653 | "FROM unique_index_data "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18654 | "WHERE index_id = :"_ns +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18655 | kStmtParamNameIndexId +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18656 | " ORDER BY object_data_key ASC;"_nsauto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18657 | : "/* do not warn (bug out) */ "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18658 | "SELECT unique_index_data.value, "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18659 | "unique_index_data.object_data_key, "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18660 | "object_data.index_data_values "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18661 | "FROM unique_index_data "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18662 | "JOIN object_data "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18663 | "ON unique_index_data.object_data_key = object_data.key "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18664 | "WHERE unique_index_data.index_id = :"_ns +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18665 | kStmtParamNameIndexId +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18666 | " AND object_data.object_store_id = :"_ns +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18667 | kStmtParamNameObjectStoreId +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18668 | " ORDER BY unique_index_data.object_data_key ASC;"_ns)auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18669 | : (mIsLastIndexauto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18670 | ? "/* do not warn (bug me not) */ "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18671 | "SELECT value, object_data_key "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18672 | "FROM index_data "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18673 | "WHERE index_id = :"_ns +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18674 | kStmtParamNameIndexId +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18675 | " AND object_store_id = :"_ns +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18676 | kStmtParamNameObjectStoreId +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18677 | " ORDER BY object_data_key ASC;"_nsauto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18678 | : "/* do not warn (bug off) */ "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18679 | "SELECT index_data.value, "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18680 | "index_data.object_data_key, "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18681 | "object_data.index_data_values "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18682 | "FROM index_data "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18683 | "JOIN object_data "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18684 | "ON index_data.object_data_key = object_data.key "auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18685 | "WHERE index_data.index_id = :"_ns +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18686 | kStmtParamNameIndexId +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18687 | " AND object_data.object_store_id = :"_ns +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18688 | kStmtParamNameObjectStoreId +auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect(); | ||||
| 18689 | " ORDER BY index_data.object_data_key ASC;"_ns)))auto tryResult1412 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1412.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))" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18689, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } const auto& selectStmt = tryResult1412 .inspect();; | ||||
| 18690 | |||||
| 18691 | QM_TRY(MOZ_TO_RESULT({auto tryResult1413 = (ToResult(selectStmt->BindInt64ByName (kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v <typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect (!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))" , tryResult1413.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18692, mozilla::dom::quota::Severity::Error); return tryResult1413 .propagateErr(); }} | ||||
| 18692 | selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))){auto tryResult1413 = (ToResult(selectStmt->BindInt64ByName (kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v <typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect (!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))" , tryResult1413.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18692, mozilla::dom::quota::Severity::Error); return tryResult1413 .propagateErr(); }}; | ||||
| 18693 | |||||
| 18694 | if (!mUnique || !mIsLastIndex) { | ||||
| 18695 | QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName({auto tryResult1414 = (ToResult(selectStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1414)::ok_type >); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18696, mozilla::dom::quota::Severity::Error); return tryResult1414 .propagateErr(); }} | ||||
| 18696 | kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1414 = (ToResult(selectStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1414)::ok_type >); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18696, mozilla::dom::quota::Severity::Error); return tryResult1414 .propagateErr(); }}; | ||||
| 18697 | } | ||||
| 18698 | |||||
| 18699 | Key lastObjectStoreKey; | ||||
| 18700 | IndexDataValuesAutoArray lastIndexValues; | ||||
| 18701 | |||||
| 18702 | QM_TRY(CollectWhileHasResult({auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18703 | *selectStmt,{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18704 | [this, &aConnection, &lastObjectStoreKey, &lastIndexValues,{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18705 | deleteIndexRowStmt ={auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18706 | DatabaseConnection::LazyStatement{{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18707 | *aConnection,{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18708 | mUnique{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18709 | ? "DELETE FROM unique_index_data "{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18710 | "WHERE index_id = :"_ns +{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18711 | kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18712 | kStmtParamNameValue + ";"_ns{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18713 | : "DELETE FROM index_data "{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18714 | "WHERE index_id = :"_ns +{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18715 | kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18716 | kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18717 | kStmtParamNameObjectDataKey + ";"_ns}]({auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18718 | auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18719 | // We always need the index key to delete the index row.{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18720 | Key indexKey;{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18721 | QM_TRY(MOZ_TO_RESULT(indexKey.SetFromStatement(&selectStmt, 0)));{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18722 | |||||
| 18723 | QM_TRY(OkIf(!indexKey.IsUnset()), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18724 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18725 | |||||
| 18726 | // Don't call |lastObjectStoreKey.BindToStatement()| directly because we{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18727 | // don't want to copy the same key multiple times.{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18728 | const uint8_t* objectStoreKeyData;{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18729 | uint32_t objectStoreKeyDataLength;{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18730 | QM_TRY(MOZ_TO_RESULT(selectStmt.GetSharedBlob({auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18731 | 1, &objectStoreKeyDataLength, &objectStoreKeyData)));{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18732 | |||||
| 18733 | QM_TRY(OkIf(objectStoreKeyDataLength), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18734 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18735 | |||||
| 18736 | const nsDependentCString currentObjectStoreKeyBuffer({auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18737 | reinterpret_cast<const char*>(objectStoreKeyData),{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18738 | objectStoreKeyDataLength);{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18739 | if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) {{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18740 | // We just walked to the next object store key.{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18741 | if (!lastObjectStoreKey.IsUnset()) {{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18742 | // Before we move on to the next key we need to update the previous{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18743 | // key's index_data_values column.{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18744 | QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18745 | aConnection, lastObjectStoreKey, lastIndexValues)));{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18746 | }{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18747 | |||||
| 18748 | // Save the object store key.{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18749 | lastObjectStoreKey = Key(currentObjectStoreKeyBuffer);{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18750 | |||||
| 18751 | // And the |index_data_values| row if this isn't the only index.{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18752 | if (!mIsLastIndex) {{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18753 | lastIndexValues.ClearAndRetainStorage();{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18754 | QM_TRY(MOZ_TO_RESULT({auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18755 | ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues)));{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18756 | |||||
| 18757 | QM_TRY(OkIf(!lastIndexValues.IsEmpty()),{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18758 | Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18759 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18760 | }{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18761 | }{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18762 | |||||
| 18763 | // Now delete the index row.{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18764 | {{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18765 | QM_TRY_INSPECT(const auto& borrowedDeleteIndexRowStmt,{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18766 | deleteIndexRowStmt.Borrow());{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18767 | |||||
| 18768 | QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->BindInt64ByName({auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18769 | kStmtParamNameIndexId, mIndexId)));{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18770 | |||||
| 18771 | QM_TRY(MOZ_TO_RESULT(indexKey.BindToStatement({auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18772 | &*borrowedDeleteIndexRowStmt, kStmtParamNameValue)));{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18773 | |||||
| 18774 | if (!mUnique) {{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18775 | QM_TRY(MOZ_TO_RESULT(lastObjectStoreKey.BindToStatement({auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18776 | &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey)));{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18777 | }{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18778 | |||||
| 18779 | QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->Execute()));{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18780 | }{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18781 | |||||
| 18782 | return Ok{};{auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }} | ||||
| 18783 | })){auto tryResult1427 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1415 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1415)::ok_type >); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18721, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18724 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1417)::ok_type >); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18731, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1418 )::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr ()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18734 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1419)::ok_type >); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18745, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421 .isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18766, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18769, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1424 )::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18772, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect (!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18776, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1426.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1426 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect (!!(tryResult1427.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 tryResult1415 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1415.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18721, mozilla::dom::quota::Severity::Error); return tryResult1415.propagateErr(); }}; {auto tryResult1416 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18724, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1417 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18731, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { auto tryTempError = tryResult1418.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18734, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1419 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1419.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18745, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1420 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { auto tryTempError = tryResult1421.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18759, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1422 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1422.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18766, mozilla::dom::quota::Severity::Error); return tryResult1422.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1422.inspect();; {auto tryResult1423 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18769, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18772, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; if (!mUnique) { {auto tryResult1425 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1425)::ok_type>); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1425.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18776, mozilla::dom::quota::Severity::Error); return tryResult1425.propagateErr(); }}; } {auto tryResult1426 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1426.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1426.propagateErr(); }}; } return Ok{}; })" , tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18783, mozilla::dom::quota::Severity::Error); return tryResult1427 .propagateErr(); }}; | ||||
| 18784 | |||||
| 18785 | // Take care of the last key. | ||||
| 18786 | if (!lastObjectStoreKey.IsUnset()) { | ||||
| 18787 | MOZ_ASSERT_IF(!mIsLastIndex, !lastIndexValues.IsEmpty())do { if (!mIsLastIndex) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!lastIndexValues.IsEmpty ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!lastIndexValues.IsEmpty()))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("!lastIndexValues.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18787 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!lastIndexValues.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 18787); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 18788 | |||||
| 18789 | QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult1428 = (ToResult(RemoveReferencesToIndex( aConnection , lastObjectStoreKey, lastIndexValues))); static_assert(std:: is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18790, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); }} | ||||
| 18790 | aConnection, lastObjectStoreKey, lastIndexValues))){auto tryResult1428 = (ToResult(RemoveReferencesToIndex( aConnection , lastObjectStoreKey, lastIndexValues))); static_assert(std:: is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18790, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); }}; | ||||
| 18791 | } | ||||
| 18792 | |||||
| 18793 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1430 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1429 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1429)::ok_type> ); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18798, mozilla::dom::quota::Severity::Error); return tryResult1429 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect (!!(tryResult1430.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 tryResult1429 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18798, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; return Ok{}; }))" , tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18801, mozilla::dom::quota::Severity::Error); return tryResult1430 .propagateErr(); }} | ||||
| 18794 | "DELETE FROM object_store_index "{auto tryResult1430 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1429 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1429)::ok_type> ); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18798, mozilla::dom::quota::Severity::Error); return tryResult1429 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect (!!(tryResult1430.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 tryResult1429 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18798, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; return Ok{}; }))" , tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18801, mozilla::dom::quota::Severity::Error); return tryResult1430 .propagateErr(); }} | ||||
| 18795 | "WHERE id = :index_id;"_ns,{auto tryResult1430 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1429 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1429)::ok_type> ); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18798, mozilla::dom::quota::Severity::Error); return tryResult1429 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect (!!(tryResult1430.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 tryResult1429 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18798, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; return Ok{}; }))" , tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18801, mozilla::dom::quota::Severity::Error); return tryResult1430 .propagateErr(); }} | ||||
| 18796 | [indexId ={auto tryResult1430 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1429 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1429)::ok_type> ); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18798, mozilla::dom::quota::Severity::Error); return tryResult1429 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect (!!(tryResult1430.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 tryResult1429 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18798, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; return Ok{}; }))" , tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18801, mozilla::dom::quota::Severity::Error); return tryResult1430 .propagateErr(); }} | ||||
| 18797 | mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> {{auto tryResult1430 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1429 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1429)::ok_type> ); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18798, mozilla::dom::quota::Severity::Error); return tryResult1429 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect (!!(tryResult1430.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 tryResult1429 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18798, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; return Ok{}; }))" , tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18801, mozilla::dom::quota::Severity::Error); return tryResult1430 .propagateErr(); }} | ||||
| 18798 | QM_TRY(MOZ_TO_RESULT(deleteStmt.BindInt64ByIndex(0, indexId)));{auto tryResult1430 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1429 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1429)::ok_type> ); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18798, mozilla::dom::quota::Severity::Error); return tryResult1429 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect (!!(tryResult1430.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 tryResult1429 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18798, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; return Ok{}; }))" , tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18801, mozilla::dom::quota::Severity::Error); return tryResult1430 .propagateErr(); }} | ||||
| 18799 | |||||
| 18800 | return Ok{};{auto tryResult1430 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1429 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1429)::ok_type> ); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18798, mozilla::dom::quota::Severity::Error); return tryResult1429 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect (!!(tryResult1430.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 tryResult1429 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18798, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; return Ok{}; }))" , tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18801, mozilla::dom::quota::Severity::Error); return tryResult1430 .propagateErr(); }} | ||||
| 18801 | }))){auto tryResult1430 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1429 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1429)::ok_type> ); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18798, mozilla::dom::quota::Severity::Error); return tryResult1429 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect (!!(tryResult1430.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 tryResult1429 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18798, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; return Ok{}; }))" , tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18801, mozilla::dom::quota::Severity::Error); return tryResult1430 .propagateErr(); }}; | ||||
| 18802 | |||||
| 18803 | #ifdef DEBUG1 | ||||
| 18804 | { | ||||
| 18805 | int32_t deletedRowCount; | ||||
| 18806 | MOZ_ALWAYS_SUCCEEDS(aConnection->MutableStorageConnection().GetAffectedRows(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetAffectedRows( & deletedRowCount))), 1)))), 1))) { } else { do { do { } while ( false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18807 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { MOZ_CrashSequence(__null, 18807); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18807 | &deletedRowCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetAffectedRows( & deletedRowCount))), 1)))), 1))) { } else { do { do { } while ( false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18807 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { MOZ_CrashSequence(__null, 18807); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18808 | MOZ_ASSERT(deletedRowCount == 1)do { static_assert( mozilla::detail::AssertionConditionType< decltype(deletedRowCount == 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(deletedRowCount == 1))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("deletedRowCount == 1" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18808 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1" ")"); do { MOZ_CrashSequence(__null, 18808); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18809 | } | ||||
| 18810 | #endif | ||||
| 18811 | |||||
| 18812 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1431 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18812, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; | ||||
| 18813 | |||||
| 18814 | return NS_OK; | ||||
| 18815 | } | ||||
| 18816 | |||||
| 18817 | nsresult RenameIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 18818 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18818); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18818); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18819 | aConnection->AssertIsOnConnectionThread(); | ||||
| 18820 | |||||
| 18821 | AUTO_PROFILER_LABEL("RenameIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18821( "RenameIndexOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18822 | |||||
| 18823 | #ifdef DEBUG1 | ||||
| 18824 | { | ||||
| 18825 | // Make sure that we're not renaming an index with the same name as another | ||||
| 18826 | // that already exists. This should be impossible because we should have | ||||
| 18827 | // thrown an error long before now... | ||||
| 18828 | // The parameter names are not used, parameters are bound by index only | ||||
| 18829 | // locally in the same function. | ||||
| 18830 | QM_TRY_INSPECT(const bool& hasResult,auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18831 | aConnectionauto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18832 | ->BorrowAndExecuteSingleStepStatement(auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18833 | "SELECT name "auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18834 | "FROM object_store_index "auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18835 | "WHERE object_store_id = :object_store_id "auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18836 | "AND name = :name "auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18837 | "AND id != :id;"_ns,auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18838 | [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18839 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18840 | 0, self.mObjectStoreId)));auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18841 | QM_TRY(MOZ_TO_RESULT(auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18842 | stmt.BindStringByIndex(1, self.mNewName)));auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18843 | QM_TRY(MOZ_TO_RESULT(auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18844 | stmt.BindInt64ByIndex(2, self.mIndexId)));auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18845 | |||||
| 18846 | return Ok{};auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18847 | })auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18848 | .map(IsSome),auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect(); | ||||
| 18849 | QM_ASSERT_UNREACHABLE)auto tryResult1435 = (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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18840, mozilla::dom::quota::Severity::Error); return tryResult1432 .propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect (!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1433 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18842, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect (!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1434 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18844, mozilla::dom::quota::Severity::Error); return tryResult1434 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1435.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1435.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 tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18840, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18844, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18849); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1435.inspect();; | ||||
| 18850 | |||||
| 18851 | MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!hasResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18851); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult" ")"); do { MOZ_CrashSequence(__null, 18851); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18852 | } | ||||
| 18853 | #else | ||||
| 18854 | (void)mObjectStoreId; | ||||
| 18855 | #endif | ||||
| 18856 | |||||
| 18857 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 18858 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1436 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436 .isErr()), 0))) { auto tryTempError = tryResult1436.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18863, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18859 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1436 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436 .isErr()), 0))) { auto tryTempError = tryResult1436.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18863, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18860 | ,{auto tryResult1436 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436 .isErr()), 0))) { auto tryTempError = tryResult1436.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18863, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18861 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1436 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436 .isErr()), 0))) { auto tryTempError = tryResult1436.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18863, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18862 | #endif{auto tryResult1436 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436 .isErr()), 0))) { auto tryTempError = tryResult1436.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18863, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 18863 | ){auto tryResult1436 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436 .isErr()), 0))) { auto tryTempError = tryResult1436.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18863, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | ||||
| 18864 | |||||
| 18865 | // The parameter names are not used, parameters are bound by index only | ||||
| 18866 | // locally in the same function. | ||||
| 18867 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1439 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1437 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect (!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1437 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18872, mozilla::dom::quota::Severity::Error); return tryResult1437 .propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1438 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect (!!(tryResult1439.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 tryResult1437 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1437.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18872, mozilla::dom::quota::Severity::Error); return tryResult1437.propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); }}; return Ok{}; }))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18877, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }} | ||||
| 18868 | "UPDATE object_store_index "{auto tryResult1439 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1437 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect (!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1437 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18872, mozilla::dom::quota::Severity::Error); return tryResult1437 .propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1438 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect (!!(tryResult1439.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 tryResult1437 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1437.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18872, mozilla::dom::quota::Severity::Error); return tryResult1437.propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); }}; return Ok{}; }))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18877, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }} | ||||
| 18869 | "SET name = :name "{auto tryResult1439 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1437 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect (!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1437 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18872, mozilla::dom::quota::Severity::Error); return tryResult1437 .propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1438 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect (!!(tryResult1439.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 tryResult1437 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1437.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18872, mozilla::dom::quota::Severity::Error); return tryResult1437.propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); }}; return Ok{}; }))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18877, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }} | ||||
| 18870 | "WHERE id = :id;"_ns,{auto tryResult1439 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1437 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect (!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1437 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18872, mozilla::dom::quota::Severity::Error); return tryResult1437 .propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1438 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect (!!(tryResult1439.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 tryResult1437 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1437.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18872, mozilla::dom::quota::Severity::Error); return tryResult1437.propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); }}; return Ok{}; }))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18877, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }} | ||||
| 18871 | [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1439 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1437 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect (!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1437 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18872, mozilla::dom::quota::Severity::Error); return tryResult1437 .propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1438 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect (!!(tryResult1439.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 tryResult1437 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1437.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18872, mozilla::dom::quota::Severity::Error); return tryResult1437.propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); }}; return Ok{}; }))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18877, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }} | ||||
| 18872 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult1439 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1437 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect (!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1437 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18872, mozilla::dom::quota::Severity::Error); return tryResult1437 .propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1438 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect (!!(tryResult1439.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 tryResult1437 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1437.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18872, mozilla::dom::quota::Severity::Error); return tryResult1437.propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); }}; return Ok{}; }))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18877, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }} | ||||
| 18873 | |||||
| 18874 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mIndexId)));{auto tryResult1439 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1437 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect (!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1437 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18872, mozilla::dom::quota::Severity::Error); return tryResult1437 .propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1438 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect (!!(tryResult1439.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 tryResult1437 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1437.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18872, mozilla::dom::quota::Severity::Error); return tryResult1437.propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); }}; return Ok{}; }))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18877, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }} | ||||
| 18875 | |||||
| 18876 | return Ok{};{auto tryResult1439 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1437 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect (!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1437 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18872, mozilla::dom::quota::Severity::Error); return tryResult1437 .propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1438 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect (!!(tryResult1439.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 tryResult1437 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1437.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18872, mozilla::dom::quota::Severity::Error); return tryResult1437.propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); }}; return Ok{}; }))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18877, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }} | ||||
| 18877 | }))){auto tryResult1439 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1437 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect (!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1437 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18872, mozilla::dom::quota::Severity::Error); return tryResult1437 .propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1438 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect (!!(tryResult1439.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 tryResult1437 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1437.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18872, mozilla::dom::quota::Severity::Error); return tryResult1437.propagateErr(); }}; {auto tryResult1438 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1438)::ok_type>); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); }}; return Ok{}; }))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18877, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; | ||||
| 18878 | |||||
| 18879 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1440 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1440)::ok_type >); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18879, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; | ||||
| 18880 | |||||
| 18881 | return NS_OK; | ||||
| 18882 | } | ||||
| 18883 | |||||
| 18884 | Result<bool, nsresult> NormalTransactionOp::ObjectStoreHasIndexes( | ||||
| 18885 | DatabaseConnection& aConnection, const IndexOrObjectStoreId aObjectStoreId, | ||||
| 18886 | const bool aMayHaveIndexes) { | ||||
| 18887 | aConnection.AssertIsOnConnectionThread(); | ||||
| 18888 | MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18888 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 18888); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18889 | |||||
| 18890 | if (Transaction().GetMode() == IDBTransaction::Mode::VersionChange && | ||||
| 18891 | aMayHaveIndexes) { | ||||
| 18892 | // If this is a version change transaction then mObjectStoreMayHaveIndexes | ||||
| 18893 | // could be wrong (e.g. if a unique index failed to be created due to a | ||||
| 18894 | // constraint error). We have to check on this thread by asking the database | ||||
| 18895 | // directly. | ||||
| 18896 | QM_TRY_RETURN(DatabaseOperationBase::ObjectStoreHasIndexes(aConnection,{auto tryResult1441 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1441 .isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18897, mozilla::dom::quota::Severity::Error); } return tryResult1441 ;} | ||||
| 18897 | aObjectStoreId)){auto tryResult1441 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1441 .isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18897, mozilla::dom::quota::Severity::Error); } return tryResult1441 ;}; | ||||
| 18898 | } | ||||
| 18899 | |||||
| 18900 | #ifdef DEBUG1 | ||||
| 18901 | QM_TRY_INSPECT(auto tryResult1442 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1442 .unwrapErr(); mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18904, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18904); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18904); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1442.inspect(); | ||||
| 18902 | const bool& hasIndexes,auto tryResult1442 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1442 .unwrapErr(); mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18904, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18904); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18904); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1442.inspect(); | ||||
| 18903 | DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId),auto tryResult1442 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1442 .unwrapErr(); mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18904, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18904); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18904); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1442.inspect(); | ||||
| 18904 | QM_ASSERT_UNREACHABLE)auto tryResult1442 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1442 .unwrapErr(); mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18904, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18904); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18904); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1442.inspect();; | ||||
| 18905 | MOZ_ASSERT(aMayHaveIndexes == hasIndexes)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMayHaveIndexes == hasIndexes)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMayHaveIndexes == hasIndexes ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aMayHaveIndexes == hasIndexes", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18905); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMayHaveIndexes == hasIndexes" ")"); do { MOZ_CrashSequence(__null, 18905); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18906 | #endif | ||||
| 18907 | |||||
| 18908 | return aMayHaveIndexes; | ||||
| 18909 | } | ||||
| 18910 | |||||
| 18911 | Result<PreprocessParams, nsresult> NormalTransactionOp::GetPreprocessParams() { | ||||
| 18912 | return PreprocessParams{}; | ||||
| 18913 | } | ||||
| 18914 | |||||
| 18915 | nsresult NormalTransactionOp::SendPreprocessInfo() { | ||||
| 18916 | AssertIsOnOwningThread(); | ||||
| 18917 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18917 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 18917); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18918 | |||||
| 18919 | QM_TRY_INSPECT(const auto& params, GetPreprocessParams())auto tryResult1443 = (GetPreprocessParams()); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetPreprocessParams()", tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18919, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); } const auto& params = tryResult1443.inspect ();; | ||||
| 18920 | |||||
| 18921 | MOZ_ASSERT(params.type() != PreprocessParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(params.type() != PreprocessParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(params.type() != PreprocessParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("params.type() != PreprocessParams::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "params.type() != PreprocessParams::T__None" ")"); do { MOZ_CrashSequence(__null, 18921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18922 | |||||
| 18923 | if (NS_WARN_IF(!PBackgroundIDBRequestParent::SendPreprocess(params))NS_warn_if_impl(!PBackgroundIDBRequestParent::SendPreprocess( params), "!PBackgroundIDBRequestParent::SendPreprocess(params)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18923 )) { | ||||
| 18924 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18924, idbInternalErrMsg.get()); } while (0); | ||||
| 18925 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 18926 | } | ||||
| 18927 | |||||
| 18928 | return NS_OK; | ||||
| 18929 | } | ||||
| 18930 | |||||
| 18931 | TransactionOpResult NormalTransactionOp::SendSuccessResult() { | ||||
| 18932 | AssertIsOnOwningThread(); | ||||
| 18933 | |||||
| 18934 | if (!IsActorDestroyed()) { | ||||
| 18935 | static const size_t kMaxIDBMsgOverhead = 1024 * 1024 * 10; // 10MB | ||||
| 18936 | const uint32_t maximalSizeFromPref = | ||||
| 18937 | IndexedDatabaseManager::MaxSerializedMsgSize(); | ||||
| 18938 | MOZ_ASSERT(maximalSizeFromPref > kMaxIDBMsgOverhead)do { static_assert( mozilla::detail::AssertionConditionType< decltype(maximalSizeFromPref > kMaxIDBMsgOverhead)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(maximalSizeFromPref > kMaxIDBMsgOverhead))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("maximalSizeFromPref > kMaxIDBMsgOverhead" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18938 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "maximalSizeFromPref > kMaxIDBMsgOverhead" ")"); do { MOZ_CrashSequence(__null, 18938); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18939 | const size_t kMaxMessageSize = maximalSizeFromPref - kMaxIDBMsgOverhead; | ||||
| 18940 | |||||
| 18941 | RequestResponse response; | ||||
| 18942 | size_t responseSize = kMaxMessageSize; | ||||
| 18943 | GetResponse(response, &responseSize); | ||||
| 18944 | |||||
| 18945 | // TODO: Adjust the calculation of the response size in relevant | ||||
| 18946 | // GetResponse methods to account for the fallback to shared memory during | ||||
| 18947 | // serialization of the primary key and index keys if their size exceeds | ||||
| 18948 | // IPC::kMessageBufferShmemThreshold. This ensures the calculated size | ||||
| 18949 | // accurately reflects the actual IPC message size. | ||||
| 18950 | // See also bug 1945040. | ||||
| 18951 | |||||
| 18952 | if (responseSize >= kMaxMessageSize) { | ||||
| 18953 | nsPrintfCString warning( | ||||
| 18954 | "The serialized value is too large" | ||||
| 18955 | " (size=%zu bytes, max=%zu bytes).", | ||||
| 18956 | responseSize, kMaxMessageSize); | ||||
| 18957 | NS_WARNING(warning.get())NS_DebugBreak(NS_DEBUG_WARNING, warning.get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18957); | ||||
| 18958 | // Structured serialization encodings/sizes are explicitly | ||||
| 18959 | // implementation-dependent. It's OK for us to expose the exact size | ||||
| 18960 | // here because IndexedDB serializations cannot include any no-cors data | ||||
| 18961 | // like opaque Responses and because the existence of this threshold is | ||||
| 18962 | // itself already a primitive for determining sizes since there's a | ||||
| 18963 | // boolean indicator of whether we reach the max message size. | ||||
| 18964 | // Additionally, it's useful information for bugs and potentially more | ||||
| 18965 | // actionable for developers encountering the problem. | ||||
| 18966 | return TransactionOpResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, warning); | ||||
| 18967 | } | ||||
| 18968 | |||||
| 18969 | MOZ_ASSERT(response.type() != RequestResponse::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(response.type() != RequestResponse::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(response.type() != RequestResponse::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("response.type() != RequestResponse::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18969 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "response.type() != RequestResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 18969); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18970 | |||||
| 18971 | if (response.type() == RequestResponse::TTransactionOpResult) { | ||||
| 18972 | MOZ_ASSERT(NS_FAILED(response.get_TransactionOpResult().mCode))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(response. get_TransactionOpResult().mCode)), 0))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( NS_FAILED_impl(response.get_TransactionOpResult().mCode)), 0) ))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(NS_FAILED_impl(response.get_TransactionOpResult().mCode)), 0)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18972 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(response.get_TransactionOpResult().mCode)), 0)))" ")"); do { MOZ_CrashSequence(__null, 18972); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18973 | |||||
| 18974 | return response.get_TransactionOpResult(); | ||||
| 18975 | } | ||||
| 18976 | |||||
| 18977 | if (NS_WARN_IF(NS_warn_if_impl(!PBackgroundIDBRequestParent::Send__delete__( this, response), "!PBackgroundIDBRequestParent::Send__delete__(this, response)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18978 ) | ||||
| 18978 | !PBackgroundIDBRequestParent::Send__delete__(this, response))NS_warn_if_impl(!PBackgroundIDBRequestParent::Send__delete__( this, response), "!PBackgroundIDBRequestParent::Send__delete__(this, response)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18978 )) { | ||||
| 18979 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18979, idbInternalErrMsg.get()); } while (0); | ||||
| 18980 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 18981 | } | ||||
| 18982 | } | ||||
| 18983 | |||||
| 18984 | #ifdef DEBUG1 | ||||
| 18985 | mResponseSent = true; | ||||
| 18986 | #endif | ||||
| 18987 | |||||
| 18988 | return NS_OK; | ||||
| 18989 | } | ||||
| 18990 | |||||
| 18991 | bool NormalTransactionOp::SendFailureResult( | ||||
| 18992 | const TransactionOpResult& aResult) { | ||||
| 18993 | AssertIsOnOwningThread(); | ||||
| 18994 | MOZ_ASSERT(NS_FAILED(aResult.mCode))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode )), 0))))>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl (aResult.mCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode)), 0)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18994 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode)), 0)))" ")"); do { MOZ_CrashSequence(__null, 18994); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18995 | |||||
| 18996 | bool result = false; | ||||
| 18997 | |||||
| 18998 | if (!IsActorDestroyed()) { | ||||
| 18999 | result = PBackgroundIDBRequestParent::Send__delete__(this, aResult); | ||||
| 19000 | } | ||||
| 19001 | |||||
| 19002 | #ifdef DEBUG1 | ||||
| 19003 | mResponseSent = true; | ||||
| 19004 | #endif | ||||
| 19005 | |||||
| 19006 | return result; | ||||
| 19007 | } | ||||
| 19008 | |||||
| 19009 | void NormalTransactionOp::Cleanup() { | ||||
| 19010 | AssertIsOnOwningThread(); | ||||
| 19011 | MOZ_ASSERT_IF(!IsActorDestroyed(), mResponseSent)do { if (!IsActorDestroyed()) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mResponseSent)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mResponseSent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mResponseSent", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19011); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent" ")"); do { MOZ_CrashSequence(__null, 19011); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19012 | |||||
| 19013 | TransactionDatabaseOperationBase::Cleanup(); | ||||
| 19014 | } | ||||
| 19015 | |||||
| 19016 | void NormalTransactionOp::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 19017 | AssertIsOnOwningThread(); | ||||
| 19018 | |||||
| 19019 | NoteActorDestroyed(); | ||||
| 19020 | |||||
| 19021 | // Assume ActorDestroy can happen at any time, so we can't probe the current | ||||
| 19022 | // state since mInternalState can be modified on any thread (only one thread | ||||
| 19023 | // at a time based on the state machine). | ||||
| 19024 | // However we can use mWaitingForContinue which is only touched on the owning | ||||
| 19025 | // thread. If mWaitingForContinue is true, we can also modify mInternalState | ||||
| 19026 | // since we are guaranteed that there are no pending runnables which would | ||||
| 19027 | // probe mInternalState to decide what code needs to run (there shouldn't be | ||||
| 19028 | // any running runnables on other threads either). | ||||
| 19029 | |||||
| 19030 | if (IsWaitingForContinue()) { | ||||
| 19031 | NoteContinueReceived(); | ||||
| 19032 | } | ||||
| 19033 | |||||
| 19034 | // We don't have to handle the case when mWaitingForContinue is not true since | ||||
| 19035 | // it means that either nothing has been initialized yet, so nothing to | ||||
| 19036 | // cleanup or there are pending runnables that will detect that the actor has | ||||
| 19037 | // been destroyed and cleanup accordingly. | ||||
| 19038 | } | ||||
| 19039 | |||||
| 19040 | mozilla::ipc::IPCResult NormalTransactionOp::RecvContinue( | ||||
| 19041 | const PreprocessResponse& aResponse) { | ||||
| 19042 | AssertIsOnOwningThread(); | ||||
| 19043 | |||||
| 19044 | // mWaitingForContinue is only touched on the owning thread. If it is not | ||||
| 19045 | // set, either we never sent Preprocess (child is misbehaving) or the op is | ||||
| 19046 | // still running on the connection thread. Calling NoteContinueReceived() | ||||
| 19047 | // in either case would race Cleanup() with DoDatabaseWork(). | ||||
| 19048 | if (NS_WARN_IF(!IsWaitingForContinue())NS_warn_if_impl(!IsWaitingForContinue(), "!IsWaitingForContinue()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19048 )) { | ||||
| 19049 | return IPC_FAIL(this, "Continue received when not waiting for continue")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Continue received when not waiting for continue" )); | ||||
| 19050 | } | ||||
| 19051 | |||||
| 19052 | switch (aResponse.type()) { | ||||
| 19053 | case PreprocessResponse::Tnsresult: | ||||
| 19054 | SetFailureCode(aResponse.get_nsresult()); | ||||
| 19055 | break; | ||||
| 19056 | |||||
| 19057 | case PreprocessResponse::TObjectStoreGetPreprocessResponse: | ||||
| 19058 | case PreprocessResponse::TObjectStoreGetAllPreprocessResponse: | ||||
| 19059 | break; | ||||
| 19060 | |||||
| 19061 | default: | ||||
| 19062 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19062 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19062); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 19063 | } | ||||
| 19064 | |||||
| 19065 | NoteContinueReceived(); | ||||
| 19066 | |||||
| 19067 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 19068 | } | ||||
| 19069 | |||||
| 19070 | ObjectStoreAddOrPutRequestOp::ObjectStoreAddOrPutRequestOp( | ||||
| 19071 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 19072 | RequestParams&& aParams) | ||||
| 19073 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 19074 | mParams( | ||||
| 19075 | std::move(aParams.type() == RequestParams::TObjectStoreAddParams | ||||
| 19076 | ? aParams.get_ObjectStoreAddParams().commonParams() | ||||
| 19077 | : aParams.get_ObjectStorePutParams().commonParams())), | ||||
| 19078 | mOriginMetadata(Transaction().GetDatabase().OriginMetadata()), | ||||
| 19079 | mPersistenceType(Transaction().GetDatabase().Type()), | ||||
| 19080 | mOverwrite(aParams.type() == RequestParams::TObjectStorePutParams), | ||||
| 19081 | mObjectStoreMayHaveIndexes(false) { | ||||
| 19082 | MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreAddParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19083 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams" ")"); do { MOZ_CrashSequence(__null, 19083); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 19083 | aParams.type() == RequestParams::TObjectStorePutParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19083 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams" ")"); do { MOZ_CrashSequence(__null, 19083); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19084 | |||||
| 19085 | mMetadata = | ||||
| 19086 | Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId()); | ||||
| 19087 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19087); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"); do { MOZ_CrashSequence(__null, 19087); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19088 | |||||
| 19089 | mObjectStoreMayHaveIndexes = mMetadata->HasLiveIndexes(); | ||||
| 19090 | |||||
| 19091 | mDataOverThreshold = | ||||
| 19092 | snappy::MaxCompressedLength(mParams.cloneInfo().data().data.Size()) > | ||||
| 19093 | IndexedDatabaseManager::DataThreshold(); | ||||
| 19094 | } | ||||
| 19095 | |||||
| 19096 | nsresult ObjectStoreAddOrPutRequestOp::RemoveOldIndexDataValues( | ||||
| 19097 | DatabaseConnection* aConnection) { | ||||
| 19098 | AssertIsOnConnectionThread(); | ||||
| 19099 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19099); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 19099); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19100 | MOZ_ASSERT(mOverwrite)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOverwrite)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOverwrite))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOverwrite", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19100); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOverwrite" ")"); do { MOZ_CrashSequence(__null, 19100); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19101 | MOZ_ASSERT(!mResponse.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mResponse.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mResponse.IsUnset()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mResponse.IsUnset()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19101 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 19101); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19102 | |||||
| 19103 | #ifdef DEBUG1 | ||||
| 19104 | { | ||||
| 19105 | QM_TRY_INSPECT(const bool& hasIndexes,auto tryResult1444 = (DatabaseOperationBase::ObjectStoreHasIndexes ( *aConnection, mParams.objectStoreId())); if ((__builtin_expect (!!(tryResult1444.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1444.unwrapErr(); mozilla::dom::quota::HandleError ("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19108, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19108); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 19108); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1444.inspect(); | ||||
| 19106 | DatabaseOperationBase::ObjectStoreHasIndexes(auto tryResult1444 = (DatabaseOperationBase::ObjectStoreHasIndexes ( *aConnection, mParams.objectStoreId())); if ((__builtin_expect (!!(tryResult1444.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1444.unwrapErr(); mozilla::dom::quota::HandleError ("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19108, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19108); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 19108); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1444.inspect(); | ||||
| 19107 | *aConnection, mParams.objectStoreId()),auto tryResult1444 = (DatabaseOperationBase::ObjectStoreHasIndexes ( *aConnection, mParams.objectStoreId())); if ((__builtin_expect (!!(tryResult1444.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1444.unwrapErr(); mozilla::dom::quota::HandleError ("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19108, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19108); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 19108); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1444.inspect(); | ||||
| 19108 | QM_ASSERT_UNREACHABLE)auto tryResult1444 = (DatabaseOperationBase::ObjectStoreHasIndexes ( *aConnection, mParams.objectStoreId())); if ((__builtin_expect (!!(tryResult1444.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1444.unwrapErr(); mozilla::dom::quota::HandleError ("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19108, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19108); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 19108); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1444.inspect();; | ||||
| 19109 | |||||
| 19110 | MOZ_ASSERT(hasIndexes,do { static_assert( mozilla::detail::AssertionConditionType< decltype(hasIndexes)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19111 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") (" "Don't use this slow method if there are no indexes!" ")"); do { MOZ_CrashSequence(__null, 19111); __attribute__((nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 19111 | "Don't use this slow method if there are no indexes!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(hasIndexes)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19111 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") (" "Don't use this slow method if there are no indexes!" ")"); do { MOZ_CrashSequence(__null, 19111); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19112 | } | ||||
| 19113 | #endif | ||||
| 19114 | |||||
| 19115 | QM_TRY_INSPECT(auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19116 | const auto& indexValuesStmt,auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19117 | aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19118 | "SELECT index_data_values "auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19119 | "FROM object_data "auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19120 | "WHERE object_store_id = :"_ns +auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19121 | kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19122 | kStmtParamNameKey + ";"_ns,auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19123 | [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19124 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19125 | kStmtParamNameObjectStoreId, self.mParams.objectStoreId())));auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19126 | |||||
| 19127 | QM_TRY(MOZ_TO_RESULT(auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19128 | self.mResponse.BindToStatement(&stmt, kStmtParamNameKey)));auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19129 | |||||
| 19130 | return Ok{};auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect(); | ||||
| 19131 | }))auto tryResult1447 = (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 tryResult1445 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect (!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19125, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1446)::ok_type >); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19128, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1447.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 tryResult1445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19125, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; {auto tryResult1446 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1446.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19128, mozilla::dom::quota::Severity::Error); return tryResult1446.propagateErr(); }}; return Ok{}; })" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19131, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); } const auto& indexValuesStmt = tryResult1447 .inspect();; | ||||
| 19132 | |||||
| 19133 | if (indexValuesStmt) { | ||||
| 19134 | QM_TRY_INSPECT(const auto& existingIndexValues,auto tryResult1448 = (ReadCompressedIndexDataValues(**indexValuesStmt , 0)); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19135, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); } const auto& existingIndexValues = tryResult1448 .inspect(); | ||||
| 19135 | ReadCompressedIndexDataValues(**indexValuesStmt, 0))auto tryResult1448 = (ReadCompressedIndexDataValues(**indexValuesStmt , 0)); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19135, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); } const auto& existingIndexValues = tryResult1448 .inspect();; | ||||
| 19136 | |||||
| 19137 | QM_TRY(MOZ_TO_RESULT({auto tryResult1449 = (ToResult(DeleteIndexDataTableRows(aConnection , mResponse, existingIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))" , tryResult1449.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19138, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }} | ||||
| 19138 | DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))){auto tryResult1449 = (ToResult(DeleteIndexDataTableRows(aConnection , mResponse, existingIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))" , tryResult1449.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19138, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; | ||||
| 19139 | } | ||||
| 19140 | |||||
| 19141 | return NS_OK; | ||||
| 19142 | } | ||||
| 19143 | |||||
| 19144 | bool ObjectStoreAddOrPutRequestOp::Init(TransactionBase& aTransaction) { | ||||
| 19145 | AssertIsOnOwningThread(); | ||||
| 19146 | |||||
| 19147 | const nsTArray<IndexUpdateInfo>& indexUpdateInfos = | ||||
| 19148 | mParams.indexUpdateInfos(); | ||||
| 19149 | |||||
| 19150 | if (!indexUpdateInfos.IsEmpty()) { | ||||
| 19151 | mUniqueIndexTable.emplace(); | ||||
| 19152 | |||||
| 19153 | for (const auto& updateInfo : indexUpdateInfos) { | ||||
| 19154 | auto indexMetadata = mMetadata->mIndexes.Lookup(updateInfo.indexId()); | ||||
| 19155 | MOZ_ALWAYS_TRUE(indexMetadata)do { if ((__builtin_expect(!!(indexMetadata), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "indexMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19155 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 19155); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 19156 | |||||
| 19157 | MOZ_ASSERT(!(*indexMetadata)->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!(*indexMetadata)->mDeleted)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!(*indexMetadata)->mDeleted ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!(*indexMetadata)->mDeleted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(*indexMetadata)->mDeleted" ")"); do { MOZ_CrashSequence(__null, 19157); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19158 | |||||
| 19159 | const IndexOrObjectStoreId& indexId = | ||||
| 19160 | (*indexMetadata)->mCommonMetadata.id(); | ||||
| 19161 | const bool& unique = (*indexMetadata)->mCommonMetadata.unique(); | ||||
| 19162 | |||||
| 19163 | MOZ_ASSERT(indexId == updateInfo.indexId())do { static_assert( mozilla::detail::AssertionConditionType< decltype(indexId == updateInfo.indexId())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(indexId == updateInfo.indexId ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("indexId == updateInfo.indexId()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19163); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexId == updateInfo.indexId()" ")"); do { MOZ_CrashSequence(__null, 19163); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19164 | MOZ_ASSERT_IF(!(*indexMetadata)->mCommonMetadata.multiEntry(),do { if (!(*indexMetadata)->mCommonMetadata.multiEntry()) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mUniqueIndexTable.ref().Contains(indexId))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mUniqueIndexTable.ref().Contains(indexId)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mUniqueIndexTable.ref().Contains(indexId)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19165 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)" ")"); do { MOZ_CrashSequence(__null, 19165); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 19165 | !mUniqueIndexTable.ref().Contains(indexId))do { if (!(*indexMetadata)->mCommonMetadata.multiEntry()) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mUniqueIndexTable.ref().Contains(indexId))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mUniqueIndexTable.ref().Contains(indexId)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mUniqueIndexTable.ref().Contains(indexId)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19165 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)" ")"); do { MOZ_CrashSequence(__null, 19165); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19166 | |||||
| 19167 | if (NS_WARN_IF(!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique,NS_warn_if_impl(!mUniqueIndexTable.ref().InsertOrUpdate(indexId , unique, fallible), "!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique, fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19168 ) | ||||
| 19168 | fallible))NS_warn_if_impl(!mUniqueIndexTable.ref().InsertOrUpdate(indexId , unique, fallible), "!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique, fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19168 )) { | ||||
| 19169 | return false; | ||||
| 19170 | } | ||||
| 19171 | } | ||||
| 19172 | } else if (mOverwrite) { | ||||
| 19173 | mUniqueIndexTable.emplace(); | ||||
| 19174 | } | ||||
| 19175 | |||||
| 19176 | if (mUniqueIndexTable.isSome()) { | ||||
| 19177 | mUniqueIndexTable.ref().MarkImmutable(); | ||||
| 19178 | } | ||||
| 19179 | |||||
| 19180 | QM_TRY_UNWRAP(auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19181 | mStoredFileInfos,auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19182 | TransformIntoNewArray(auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19183 | mParams.fileAddInfos(),auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19184 | [](const auto& fileAddInfo) {auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19185 | MOZ_ASSERT(fileAddInfo.type() == StructuredCloneFileBase::eBlob ||auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19186 | fileAddInfo.type() ==auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19187 | StructuredCloneFileBase::eMutableFile);auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19188 | |||||
| 19189 | switch (fileAddInfo.type()) {auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19190 | case StructuredCloneFileBase::eBlob: {auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19191 | PBackgroundIDBDatabaseFileParent* file =auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19192 | fileAddInfo.file().AsParent();auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19193 | MOZ_ASSERT(file);auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19194 | |||||
| 19195 | auto* const fileActor = static_cast<DatabaseFile*>(file);auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19196 | MOZ_ASSERT(fileActor);auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19197 | |||||
| 19198 | return StoredFileInfo::CreateForBlob(auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19199 | fileActor->GetFileInfoPtr(), fileActor);auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19200 | }auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19201 | |||||
| 19202 | default:auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19203 | MOZ_CRASH("Should never get here!");auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19204 | }auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19205 | },auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19206 | fallible),auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap (); | ||||
| 19207 | false)auto tryResult1450 = (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" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19187 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19187); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19193); __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", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19203); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19203); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1450.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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19207, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19187); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19187); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19193); __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\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19196); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19196); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19203); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19203); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1450.unwrap ();; | ||||
| 19208 | |||||
| 19209 | if (mDataOverThreshold) { | ||||
| 19210 | auto fileInfo = | ||||
| 19211 | aTransaction.GetDatabase().GetFileManager().CreateFileInfo(); | ||||
| 19212 | if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19212)) { | ||||
| 19213 | return false; | ||||
| 19214 | } | ||||
| 19215 | |||||
| 19216 | mStoredFileInfos.EmplaceBack(StoredFileInfo::CreateForStructuredClone( | ||||
| 19217 | std::move(fileInfo), | ||||
| 19218 | MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))); | ||||
| 19219 | } | ||||
| 19220 | |||||
| 19221 | return true; | ||||
| 19222 | } | ||||
| 19223 | |||||
| 19224 | nsresult ObjectStoreAddOrPutRequestOp::DoDatabaseWork( | ||||
| 19225 | DatabaseConnection* aConnection) { | ||||
| 19226 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19226); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 19226); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19227 | aConnection->AssertIsOnConnectionThread(); | ||||
| 19228 | MOZ_ASSERT(aConnection->HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection->HasStorageConnection())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aConnection->HasStorageConnection()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection->HasStorageConnection()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19228 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 19228); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19229 | |||||
| 19230 | AUTO_PROFILER_LABEL("ObjectStoreAddOrPutRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19230( "ObjectStoreAddOrPutRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 19231 | |||||
| 19232 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 19233 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1451 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451 .isErr()), 0))) { auto tryTempError = tryResult1451.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19238, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19234 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1451 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451 .isErr()), 0))) { auto tryTempError = tryResult1451.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19238, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19235 | ,{auto tryResult1451 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451 .isErr()), 0))) { auto tryTempError = tryResult1451.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19238, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19236 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1451 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451 .isErr()), 0))) { auto tryTempError = tryResult1451.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19238, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19237 | #endif{auto tryResult1451 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451 .isErr()), 0))) { auto tryTempError = tryResult1451.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19238, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19238 | ){auto tryResult1451 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451 .isErr()), 0))) { auto tryTempError = tryResult1451.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19238, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | ||||
| 19239 | |||||
| 19240 | QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1452 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19242, mozilla::dom::quota::Severity::Error); return tryResult1452 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1452 .inspect(); | ||||
| 19241 | ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1452 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19242, mozilla::dom::quota::Severity::Error); return tryResult1452 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1452 .inspect(); | ||||
| 19242 | mObjectStoreMayHaveIndexes))auto tryResult1452 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19242, mozilla::dom::quota::Severity::Error); return tryResult1452 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1452 .inspect();; | ||||
| 19243 | |||||
| 19244 | // This will be the final key we use. | ||||
| 19245 | Key& key = mResponse; | ||||
| 19246 | key = mParams.key(); | ||||
| 19247 | |||||
| 19248 | const bool keyUnset = key.IsUnset(); | ||||
| 19249 | const IndexOrObjectStoreId osid = mParams.objectStoreId(); | ||||
| 19250 | |||||
| 19251 | // First delete old index_data_values if we're overwriting something and we | ||||
| 19252 | // have indexes. | ||||
| 19253 | if (mOverwrite && !keyUnset && objectStoreHasIndexes) { | ||||
| 19254 | QM_TRY(MOZ_TO_RESULT(RemoveOldIndexDataValues(aConnection))){auto tryResult1453 = (ToResult(RemoveOldIndexDataValues(aConnection ))); static_assert(std::is_empty_v<typename decltype(tryResult1453 )::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveOldIndexDataValues(aConnection))" , tryResult1453.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19254, mozilla::dom::quota::Severity::Error); return tryResult1453 .propagateErr(); }}; | ||||
| 19255 | } | ||||
| 19256 | |||||
| 19257 | int64_t autoIncrementNum = 0; | ||||
| 19258 | |||||
| 19259 | { | ||||
| 19260 | // The "|| keyUnset" here is mostly a debugging tool. If a key isn't | ||||
| 19261 | // specified we should never have a collision and so it shouldn't matter | ||||
| 19262 | // if we allow overwrite or not. By not allowing overwrite we raise | ||||
| 19263 | // detectable errors rather than corrupting data. | ||||
| 19264 | const auto optReplaceDirective = | ||||
| 19265 | (!mOverwrite || keyUnset) ? ""_ns : "OR REPLACE "_ns; | ||||
| 19266 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1454 = (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(!!(tryResult1454.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)" , tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19274, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); } const auto& stmt = tryResult1454.inspect (); | ||||
| 19267 | aConnection->BorrowCachedStatement(auto tryResult1454 = (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(!!(tryResult1454.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)" , tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19274, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); } const auto& stmt = tryResult1454.inspect (); | ||||
| 19268 | "INSERT "_ns + optReplaceDirective +auto tryResult1454 = (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(!!(tryResult1454.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)" , tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19274, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); } const auto& stmt = tryResult1454.inspect (); | ||||
| 19269 | "INTO object_data "auto tryResult1454 = (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(!!(tryResult1454.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)" , tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19274, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); } const auto& stmt = tryResult1454.inspect (); | ||||
| 19270 | "(object_store_id, key, file_ids, data) "auto tryResult1454 = (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(!!(tryResult1454.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)" , tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19274, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); } const auto& stmt = tryResult1454.inspect (); | ||||
| 19271 | "VALUES (:"_ns +auto tryResult1454 = (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(!!(tryResult1454.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)" , tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19274, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); } const auto& stmt = tryResult1454.inspect (); | ||||
| 19272 | kStmtParamNameObjectStoreId + ", :"_ns +auto tryResult1454 = (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(!!(tryResult1454.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)" , tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19274, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); } const auto& stmt = tryResult1454.inspect (); | ||||
| 19273 | kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds +auto tryResult1454 = (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(!!(tryResult1454.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)" , tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19274, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); } const auto& stmt = tryResult1454.inspect (); | ||||
| 19274 | ", :"_ns + kStmtParamNameData + ");"_ns))auto tryResult1454 = (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(!!(tryResult1454.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)" , tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19274, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); } const auto& stmt = tryResult1454.inspect ();; | ||||
| 19275 | |||||
| 19276 | QM_TRY(MOZ_TO_RESULT({auto tryResult1455 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , osid))); static_assert(std::is_empty_v<typename decltype (tryResult1455)::ok_type>); if ((__builtin_expect(!!(tryResult1455 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))" , tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19277, mozilla::dom::quota::Severity::Error); return tryResult1455 .propagateErr(); }} | ||||
| 19277 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))){auto tryResult1455 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , osid))); static_assert(std::is_empty_v<typename decltype (tryResult1455)::ok_type>); if ((__builtin_expect(!!(tryResult1455 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))" , tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19277, mozilla::dom::quota::Severity::Error); return tryResult1455 .propagateErr(); }}; | ||||
| 19278 | |||||
| 19279 | const SerializedStructuredCloneWriteInfo& cloneInfo = mParams.cloneInfo(); | ||||
| 19280 | const JSStructuredCloneData& cloneData = cloneInfo.data().data; | ||||
| 19281 | const size_t cloneDataSize = cloneData.Size(); | ||||
| 19282 | |||||
| 19283 | MOZ_ASSERT(!keyUnset || mMetadata->mCommonMetadata.autoIncrement(),do { static_assert( mozilla::detail::AssertionConditionType< decltype(!keyUnset || mMetadata->mCommonMetadata.autoIncrement ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!keyUnset || mMetadata->mCommonMetadata.autoIncrement ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!keyUnset || mMetadata->mCommonMetadata.autoIncrement()" " (" "Should have key unless autoIncrement" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19284); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()" ") (" "Should have key unless autoIncrement" ")"); do { MOZ_CrashSequence (__null, 19284); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false) | ||||
| 19284 | "Should have key unless autoIncrement")do { static_assert( mozilla::detail::AssertionConditionType< decltype(!keyUnset || mMetadata->mCommonMetadata.autoIncrement ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!keyUnset || mMetadata->mCommonMetadata.autoIncrement ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!keyUnset || mMetadata->mCommonMetadata.autoIncrement()" " (" "Should have key unless autoIncrement" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19284); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()" ") (" "Should have key unless autoIncrement" ")"); do { MOZ_CrashSequence (__null, 19284); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); | ||||
| 19285 | |||||
| 19286 | if (mMetadata->mCommonMetadata.autoIncrement()) { | ||||
| 19287 | if (keyUnset) { | ||||
| 19288 | { | ||||
| 19289 | const auto&& lockedAutoIncrementIds = | ||||
| 19290 | mMetadata->mAutoIncrementIds.Lock(); | ||||
| 19291 | |||||
| 19292 | autoIncrementNum = lockedAutoIncrementIds->next; | ||||
| 19293 | } | ||||
| 19294 | |||||
| 19295 | MOZ_ASSERT(autoIncrementNum > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(autoIncrementNum > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(autoIncrementNum > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("autoIncrementNum > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19295 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "autoIncrementNum > 0" ")"); do { MOZ_CrashSequence(__null, 19295); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19296 | |||||
| 19297 | if (autoIncrementNum > (1LL << 53)) { | ||||
| 19298 | return NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR; | ||||
| 19299 | } | ||||
| 19300 | |||||
| 19301 | QM_TRY(key.SetFromInteger(autoIncrementNum)){auto tryResult1456 = (key.SetFromInteger(autoIncrementNum)); static_assert(std::is_empty_v<typename decltype(tryResult1456 )::ok_type>); if ((__builtin_expect(!!(tryResult1456.isErr ()), 0))) { mozilla::dom::quota::HandleError("key.SetFromInteger(autoIncrementNum)" , tryResult1456.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19301, mozilla::dom::quota::Severity::Error); return tryResult1456 .propagateErr(); }}; | ||||
| 19302 | |||||
| 19303 | // Update index keys if primary key is preserved in child. | ||||
| 19304 | for (auto& updateInfo : mParams.indexUpdateInfos()) { | ||||
| 19305 | QM_TRY({auto tryResult1457 = (updateInfo.value().MaybeUpdateAutoIncrementKey (autoIncrementNum)); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect (!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError ("updateInfo.value().MaybeUpdateAutoIncrementKey(autoIncrementNum)" , tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19306, mozilla::dom::quota::Severity::Error); return tryResult1457 .propagateErr(); }} | ||||
| 19306 | updateInfo.value().MaybeUpdateAutoIncrementKey(autoIncrementNum)){auto tryResult1457 = (updateInfo.value().MaybeUpdateAutoIncrementKey (autoIncrementNum)); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect (!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError ("updateInfo.value().MaybeUpdateAutoIncrementKey(autoIncrementNum)" , tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19306, mozilla::dom::quota::Severity::Error); return tryResult1457 .propagateErr(); }}; | ||||
| 19307 | } | ||||
| 19308 | } else if (key.IsFloat()) { | ||||
| 19309 | double numericKey = key.ToFloat(); | ||||
| 19310 | numericKey = std::min(numericKey, double(1LL << 53)); | ||||
| 19311 | numericKey = floor(numericKey); | ||||
| 19312 | |||||
| 19313 | const auto&& lockedAutoIncrementIds = | ||||
| 19314 | mMetadata->mAutoIncrementIds.Lock(); | ||||
| 19315 | if (numericKey >= lockedAutoIncrementIds->next) { | ||||
| 19316 | autoIncrementNum = numericKey; | ||||
| 19317 | } | ||||
| 19318 | } | ||||
| 19319 | |||||
| 19320 | if (keyUnset && mMetadata->mCommonMetadata.keyPath().IsValid()) { | ||||
| 19321 | const SerializedStructuredCloneWriteInfo& cloneInfo = | ||||
| 19322 | mParams.cloneInfo(); | ||||
| 19323 | MOZ_ASSERT(cloneInfo.offsetToKeyProp())do { static_assert( mozilla::detail::AssertionConditionType< decltype(cloneInfo.offsetToKeyProp())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(cloneInfo.offsetToKeyProp()) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("cloneInfo.offsetToKeyProp()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19323 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp()" ")"); do { MOZ_CrashSequence(__null, 19323); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19324 | MOZ_ASSERT(cloneDataSize > sizeof(uint64_t))do { static_assert( mozilla::detail::AssertionConditionType< decltype(cloneDataSize > sizeof(uint64_t))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(cloneDataSize > sizeof(uint64_t )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("cloneDataSize > sizeof(uint64_t)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19324); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneDataSize > sizeof(uint64_t)" ")"); do { MOZ_CrashSequence(__null, 19324); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19325 | MOZ_ASSERT(cloneInfo.offsetToKeyProp() <=do { static_assert( mozilla::detail::AssertionConditionType< decltype(cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof (uint64_t)))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19326 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))" ")"); do { MOZ_CrashSequence(__null, 19326); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 19326 | (cloneDataSize - sizeof(uint64_t)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof (uint64_t)))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19326 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))" ")"); do { MOZ_CrashSequence(__null, 19326); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19327 | |||||
| 19328 | // Special case where someone put an object into an autoIncrement'ing | ||||
| 19329 | // objectStore with no key in its keyPath set. We needed to figure out | ||||
| 19330 | // which row id we would get above before we could set that properly. | ||||
| 19331 | uint64_t keyPropValue = | ||||
| 19332 | ReinterpretDoubleAsUInt64(static_cast<double>(autoIncrementNum)); | ||||
| 19333 | |||||
| 19334 | static const size_t keyPropSize = sizeof(uint64_t); | ||||
| 19335 | |||||
| 19336 | char keyPropBuffer[keyPropSize]; | ||||
| 19337 | LittleEndian::writeUint64(keyPropBuffer, keyPropValue); | ||||
| 19338 | |||||
| 19339 | auto iter = cloneData.Start(); | ||||
| 19340 | MOZ_ALWAYS_TRUE(cloneData.Advance(iter, cloneInfo.offsetToKeyProp()))do { if ((__builtin_expect(!!(cloneData.Advance(iter, cloneInfo .offsetToKeyProp())), 1))) { } else { do { do { } while (false ); MOZ_ReportCrash("" "cloneData.Advance(iter, cloneInfo.offsetToKeyProp())" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19340 ); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.Advance(iter, cloneInfo.offsetToKeyProp())" ")"); do { MOZ_CrashSequence(__null, 19340); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 19341 | MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(cloneData.UpdateBytes(iter, keyPropBuffer , keyPropSize)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19342 ); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)" ")"); do { MOZ_CrashSequence(__null, 19342); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 19342 | cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize))do { if ((__builtin_expect(!!(cloneData.UpdateBytes(iter, keyPropBuffer , keyPropSize)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19342 ); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)" ")"); do { MOZ_CrashSequence(__null, 19342); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 19343 | } | ||||
| 19344 | } | ||||
| 19345 | |||||
| 19346 | key.BindToStatement(&*stmt, kStmtParamNameKey); | ||||
| 19347 | |||||
| 19348 | if (mDataOverThreshold) { | ||||
| 19349 | // The data we store in the SQLite database is a (signed) 64-bit integer. | ||||
| 19350 | // The flags are left-shifted 32 bits so the max value is 0xFFFFFFFF. | ||||
| 19351 | // The file_ids index occupies the lower 32 bits and its max is | ||||
| 19352 | // 0xFFFFFFFF. | ||||
| 19353 | static const uint32_t kCompressedFlag = (1 << 0); | ||||
| 19354 | |||||
| 19355 | uint32_t flags = 0; | ||||
| 19356 | flags |= kCompressedFlag; | ||||
| 19357 | |||||
| 19358 | const uint32_t index = mStoredFileInfos.Length() - 1; | ||||
| 19359 | |||||
| 19360 | const int64_t data = (uint64_t(flags) << 32) | index; | ||||
| 19361 | |||||
| 19362 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameData, data))){auto tryResult1458 = (ToResult(stmt->BindInt64ByName(kStmtParamNameData , data))); static_assert(std::is_empty_v<typename decltype (tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameData, data))" , tryResult1458.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19362, mozilla::dom::quota::Severity::Error); return tryResult1458 .propagateErr(); }}; | ||||
| 19363 | } else { | ||||
| 19364 | AutoTArray<char, 4096> flatCloneData; // 4096 from JSStructuredCloneData | ||||
| 19365 | QM_TRY(OkIf(flatCloneData.SetLength(cloneDataSize, fallible)),{auto tryResult1459 = (OkIf(flatCloneData.SetLength(cloneDataSize , fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1459 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19366, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(flatCloneData.SetLength(cloneDataSize, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }} | ||||
| 19366 | Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult1459 = (OkIf(flatCloneData.SetLength(cloneDataSize , fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1459 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19366, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(flatCloneData.SetLength(cloneDataSize, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; | ||||
| 19367 | |||||
| 19368 | { | ||||
| 19369 | auto iter = cloneData.Start(); | ||||
| 19370 | MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(cloneData.ReadBytes(iter, flatCloneData .Elements(), cloneDataSize)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19371 ); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)" ")"); do { MOZ_CrashSequence(__null, 19371); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 19371 | cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize))do { if ((__builtin_expect(!!(cloneData.ReadBytes(iter, flatCloneData .Elements(), cloneDataSize)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19371 ); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)" ")"); do { MOZ_CrashSequence(__null, 19371); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 19372 | } | ||||
| 19373 | |||||
| 19374 | // Compress the bytes before adding into the database. | ||||
| 19375 | const char* const uncompressed = flatCloneData.Elements(); | ||||
| 19376 | const size_t uncompressedLength = cloneDataSize; | ||||
| 19377 | |||||
| 19378 | size_t compressedLength = snappy::MaxCompressedLength(uncompressedLength); | ||||
| 19379 | |||||
| 19380 | UniqueFreePtr<char> compressed( | ||||
| 19381 | static_cast<char*>(malloc(compressedLength))); | ||||
| 19382 | if (NS_WARN_IF(!compressed)NS_warn_if_impl(!compressed, "!compressed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19382)) { | ||||
| 19383 | return NS_ERROR_OUT_OF_MEMORY; | ||||
| 19384 | } | ||||
| 19385 | |||||
| 19386 | snappy::RawCompress(uncompressed, uncompressedLength, compressed.get(), | ||||
| 19387 | &compressedLength); | ||||
| 19388 | |||||
| 19389 | uint8_t* const dataBuffer = | ||||
| 19390 | reinterpret_cast<uint8_t*>(compressed.release()); | ||||
| 19391 | const size_t dataBufferLength = compressedLength; | ||||
| 19392 | |||||
| 19393 | QM_TRY(MOZ_TO_RESULT(stmt->BindAdoptedBlobByName({auto tryResult1460 = (ToResult(stmt->BindAdoptedBlobByName ( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert (std::is_empty_v<typename decltype(tryResult1460)::ok_type >); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))" , tryResult1460.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19394, mozilla::dom::quota::Severity::Error); return tryResult1460 .propagateErr(); }} | ||||
| 19394 | kStmtParamNameData, dataBuffer, dataBufferLength))){auto tryResult1460 = (ToResult(stmt->BindAdoptedBlobByName ( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert (std::is_empty_v<typename decltype(tryResult1460)::ok_type >); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))" , tryResult1460.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19394, mozilla::dom::quota::Severity::Error); return tryResult1460 .propagateErr(); }}; | ||||
| 19395 | } | ||||
| 19396 | |||||
| 19397 | if (!mStoredFileInfos.IsEmpty()) { | ||||
| 19398 | // Moved outside the loop to allow it to be cached when demanded by the | ||||
| 19399 | // first write. (We may have mStoredFileInfos without any required | ||||
| 19400 | // writes.) | ||||
| 19401 | Maybe<FileHelper> fileHelper; | ||||
| 19402 | nsAutoString fileIds; | ||||
| 19403 | |||||
| 19404 | for (auto& storedFileInfo : mStoredFileInfos) { | ||||
| 19405 | MOZ_ASSERT(storedFileInfo.IsValid())do { static_assert( mozilla::detail::AssertionConditionType< decltype(storedFileInfo.IsValid())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(storedFileInfo.IsValid()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("storedFileInfo.IsValid()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19405 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "storedFileInfo.IsValid()" ")"); do { MOZ_CrashSequence(__null, 19405); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19406 | |||||
| 19407 | QM_TRY_INSPECT(const auto& inputStream,auto tryResult1461 = (storedFileInfo.GetInputStream()); if (( __builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom ::quota::HandleError("storedFileInfo.GetInputStream()", tryResult1461 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19408, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); } const auto& inputStream = tryResult1461 .inspect(); | ||||
| 19408 | storedFileInfo.GetInputStream())auto tryResult1461 = (storedFileInfo.GetInputStream()); if (( __builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom ::quota::HandleError("storedFileInfo.GetInputStream()", tryResult1461 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19408, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); } const auto& inputStream = tryResult1461 .inspect();; | ||||
| 19409 | |||||
| 19410 | if (inputStream) { | ||||
| 19411 | if (fileHelper.isNothing()) { | ||||
| 19412 | fileHelper.emplace(Transaction().GetDatabase().GetFileManagerPtr()); | ||||
| 19413 | QM_TRY(MOZ_TO_RESULT(fileHelper->Init()),{auto tryResult1462 = (ToResult(fileHelper->Init())); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { auto tryTempError = tryResult1462.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(fileHelper->Init())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19415 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19415, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 19414 | NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1462 = (ToResult(fileHelper->Init())); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { auto tryTempError = tryResult1462.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(fileHelper->Init())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19415 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19415, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 19415 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1462 = (ToResult(fileHelper->Init())); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { auto tryTempError = tryResult1462.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(fileHelper->Init())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19415 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19415, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | ||||
| 19416 | } | ||||
| 19417 | |||||
| 19418 | const DatabaseFileInfo& fileInfo = storedFileInfo.GetFileInfo(); | ||||
| 19419 | const DatabaseFileManager& fileManager = fileInfo.Manager(); | ||||
| 19420 | |||||
| 19421 | const auto file = fileHelper->GetFile(fileInfo); | ||||
| 19422 | QM_TRY(OkIf(file), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1463 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect (!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19423 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19423, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 19423 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1463 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect (!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19423 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19423, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | ||||
| 19424 | |||||
| 19425 | const auto journalFile = fileHelper->GetJournalFile(fileInfo); | ||||
| 19426 | QM_TRY(OkIf(journalFile), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1464 = (OkIf(journalFile)); static_assert(std:: is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { auto tryTempError = tryResult1464.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(journalFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19427, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19427, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 19427 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1464 = (OkIf(journalFile)); static_assert(std:: is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { auto tryTempError = tryResult1464.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(journalFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19427, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19427, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | ||||
| 19428 | |||||
| 19429 | nsCString fileKeyId; | ||||
| 19430 | fileKeyId.AppendInt(fileInfo.Id()); | ||||
| 19431 | |||||
| 19432 | const auto maybeKey = | ||||
| 19433 | fileManager.IsInPrivateBrowsingMode() | ||||
| 19434 | ? fileManager.MutableCipherKeyManagerRef().Get(fileKeyId) | ||||
| 19435 | : Nothing(); | ||||
| 19436 | |||||
| 19437 | QM_TRY(MOZ_TO_RESULT(fileHelper->CreateFileFromStream({auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19438 | *file, *journalFile, *inputStream,{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19439 | storedFileInfo.ShouldCompress(), maybeKey)){auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19440 | .mapErr([](const nsresult rv) {{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19441 | if (NS_ERROR_GET_MODULE(rv) !={auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19442 | NS_ERROR_MODULE_DOM_INDEXEDDB) {{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19443 | IDB_REPORT_INTERNAL_ERR();{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19444 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19445 | }{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19446 | return rv;{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19447 | }),{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19448 | QM_PROPAGATE,{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19449 | ([&fileManager, &file = *file,{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19450 | &journalFile = *journalFile](const auto) {{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19451 | // Try to remove the file if the copy failed.{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19452 | QM_TRY(MOZ_TO_RESULT({auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19453 | fileManager.SyncDeleteFile(file, journalFile)),{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19454 | QM_VOID);{auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19455 | })){auto tryResult1466 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect (!!(tryResult1466.isErr()), 0))) { auto tryTempError = tryResult1466 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1465 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1465.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19454 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; }}; })(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19443, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }}; | ||||
| 19456 | |||||
| 19457 | storedFileInfo.NotifyWriteSucceeded(); | ||||
| 19458 | } | ||||
| 19459 | |||||
| 19460 | if (!fileIds.IsEmpty()) { | ||||
| 19461 | fileIds.Append(' '); | ||||
| 19462 | } | ||||
| 19463 | storedFileInfo.Serialize(fileIds); | ||||
| 19464 | } | ||||
| 19465 | |||||
| 19466 | QM_TRY(MOZ_TO_RESULT({auto tryResult1467 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds , fileIds))); static_assert(std::is_empty_v<typename decltype (tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))" , tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19467, mozilla::dom::quota::Severity::Error); return tryResult1467 .propagateErr(); }} | ||||
| 19467 | stmt->BindStringByName(kStmtParamNameFileIds, fileIds))){auto tryResult1467 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds , fileIds))); static_assert(std::is_empty_v<typename decltype (tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))" , tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19467, mozilla::dom::quota::Severity::Error); return tryResult1467 .propagateErr(); }}; | ||||
| 19468 | } else { | ||||
| 19469 | QM_TRY(MOZ_TO_RESULT(stmt->BindNullByName(kStmtParamNameFileIds))){auto tryResult1468 = (ToResult(stmt->BindNullByName(kStmtParamNameFileIds ))); static_assert(std::is_empty_v<typename decltype(tryResult1468 )::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindNullByName(kStmtParamNameFileIds))" , tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19469, mozilla::dom::quota::Severity::Error); return tryResult1468 .propagateErr(); }}; | ||||
| 19470 | } | ||||
| 19471 | |||||
| 19472 | QM_TRY(MOZ_TO_RESULT(stmt->Execute()), QM_PROPAGATE,{auto tryResult1469 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1469)::ok_type >); if ((__builtin_expect(!!(tryResult1469.isErr()), 0))) { auto tryTempError = tryResult1469.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19477 , mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly {keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!keyUnset)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19475 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { MOZ_CrashSequence(__null, 19475); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } }( tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ToResult(stmt->Execute())", tryTempError, Err(tryTempError )); }} | ||||
| 19473 | [keyUnset = DebugOnly{keyUnset}](const nsresult rv) {{auto tryResult1469 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1469)::ok_type >); if ((__builtin_expect(!!(tryResult1469.isErr()), 0))) { auto tryTempError = tryResult1469.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19477 , mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly {keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!keyUnset)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19475 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { MOZ_CrashSequence(__null, 19475); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } }( tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ToResult(stmt->Execute())", tryTempError, Err(tryTempError )); }} | ||||
| 19474 | if (rv == NS_ERROR_STORAGE_CONSTRAINT) {{auto tryResult1469 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1469)::ok_type >); if ((__builtin_expect(!!(tryResult1469.isErr()), 0))) { auto tryTempError = tryResult1469.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19477 , mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly {keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!keyUnset)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19475 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { MOZ_CrashSequence(__null, 19475); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } }( tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ToResult(stmt->Execute())", tryTempError, Err(tryTempError )); }} | ||||
| 19475 | MOZ_ASSERT(!keyUnset, "Generated key had a collision!");{auto tryResult1469 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1469)::ok_type >); if ((__builtin_expect(!!(tryResult1469.isErr()), 0))) { auto tryTempError = tryResult1469.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19477 , mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly {keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!keyUnset)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19475 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { MOZ_CrashSequence(__null, 19475); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } }( tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ToResult(stmt->Execute())", tryTempError, Err(tryTempError )); }} | ||||
| 19476 | }{auto tryResult1469 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1469)::ok_type >); if ((__builtin_expect(!!(tryResult1469.isErr()), 0))) { auto tryTempError = tryResult1469.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19477 , mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly {keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!keyUnset)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19475 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { MOZ_CrashSequence(__null, 19475); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } }( tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ToResult(stmt->Execute())", tryTempError, Err(tryTempError )); }} | ||||
| 19477 | }){auto tryResult1469 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1469)::ok_type >); if ((__builtin_expect(!!(tryResult1469.isErr()), 0))) { auto tryTempError = tryResult1469.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19477 , mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly {keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!keyUnset)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19475 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { MOZ_CrashSequence(__null, 19475); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } }( tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ToResult(stmt->Execute())", tryTempError, Err(tryTempError )); }}; | ||||
| 19478 | } | ||||
| 19479 | |||||
| 19480 | // Update our indexes if needed. | ||||
| 19481 | if (!mParams.indexUpdateInfos().IsEmpty()) { | ||||
| 19482 | MOZ_ASSERT(mUniqueIndexTable.isSome())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mUniqueIndexTable.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mUniqueIndexTable.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mUniqueIndexTable.isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19482 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUniqueIndexTable.isSome()" ")"); do { MOZ_CrashSequence(__null, 19482); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19483 | |||||
| 19484 | // Write the index_data_values column. | ||||
| 19485 | QM_TRY_INSPECT(const auto& indexValues,auto tryResult1470 = (IndexDataValuesFromUpdateInfos(mParams. indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect (!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError ("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())" , tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19487, mozilla::dom::quota::Severity::Error); return tryResult1470 .propagateErr(); } const auto& indexValues = tryResult1470 .inspect(); | ||||
| 19486 | IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(),auto tryResult1470 = (IndexDataValuesFromUpdateInfos(mParams. indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect (!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError ("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())" , tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19487, mozilla::dom::quota::Severity::Error); return tryResult1470 .propagateErr(); } const auto& indexValues = tryResult1470 .inspect(); | ||||
| 19487 | mUniqueIndexTable.ref()))auto tryResult1470 = (IndexDataValuesFromUpdateInfos(mParams. indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect (!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError ("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())" , tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19487, mozilla::dom::quota::Severity::Error); return tryResult1470 .propagateErr(); } const auto& indexValues = tryResult1470 .inspect();; | ||||
| 19488 | |||||
| 19489 | QM_TRY({auto tryResult1471 = (ToResult(UpdateIndexValues(aConnection , osid, key, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect (!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))" , tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19490, mozilla::dom::quota::Severity::Error); return tryResult1471 .propagateErr(); }} | ||||
| 19490 | MOZ_TO_RESULT(UpdateIndexValues(aConnection, osid, key, indexValues))){auto tryResult1471 = (ToResult(UpdateIndexValues(aConnection , osid, key, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect (!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))" , tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19490, mozilla::dom::quota::Severity::Error); return tryResult1471 .propagateErr(); }}; | ||||
| 19491 | |||||
| 19492 | QM_TRY(MOZ_TO_RESULT({auto tryResult1472 = (ToResult(InsertIndexTableRows(aConnection , osid, key, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect (!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))" , tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19493, mozilla::dom::quota::Severity::Error); return tryResult1472 .propagateErr(); }} | ||||
| 19493 | InsertIndexTableRows(aConnection, osid, key, indexValues))){auto tryResult1472 = (ToResult(InsertIndexTableRows(aConnection , osid, key, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect (!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))" , tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19493, mozilla::dom::quota::Severity::Error); return tryResult1472 .propagateErr(); }}; | ||||
| 19494 | } | ||||
| 19495 | |||||
| 19496 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1473 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1473)::ok_type >); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19496, mozilla::dom::quota::Severity::Error); return tryResult1473 .propagateErr(); }}; | ||||
| 19497 | |||||
| 19498 | if (autoIncrementNum) { | ||||
| 19499 | { | ||||
| 19500 | auto&& lockedAutoIncrementIds = mMetadata->mAutoIncrementIds.Lock(); | ||||
| 19501 | |||||
| 19502 | lockedAutoIncrementIds->next = autoIncrementNum + 1; | ||||
| 19503 | } | ||||
| 19504 | |||||
| 19505 | Transaction().NoteModifiedAutoIncrementObjectStore(mMetadata); | ||||
| 19506 | } | ||||
| 19507 | |||||
| 19508 | return NS_OK; | ||||
| 19509 | } | ||||
| 19510 | |||||
| 19511 | void ObjectStoreAddOrPutRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 19512 | size_t* aResponseSize) { | ||||
| 19513 | AssertIsOnOwningThread(); | ||||
| 19514 | |||||
| 19515 | if (mOverwrite) { | ||||
| 19516 | aResponse = ObjectStorePutResponse(mResponse); | ||||
| 19517 | *aResponseSize = mResponse.GetBuffer().Length(); | ||||
| 19518 | } else { | ||||
| 19519 | aResponse = ObjectStoreAddResponse(mResponse); | ||||
| 19520 | *aResponseSize = mResponse.GetBuffer().Length(); | ||||
| 19521 | } | ||||
| 19522 | } | ||||
| 19523 | |||||
| 19524 | void ObjectStoreAddOrPutRequestOp::Cleanup() { | ||||
| 19525 | AssertIsOnOwningThread(); | ||||
| 19526 | |||||
| 19527 | mStoredFileInfos.Clear(); | ||||
| 19528 | |||||
| 19529 | NormalTransactionOp::Cleanup(); | ||||
| 19530 | } | ||||
| 19531 | |||||
| 19532 | NS_IMPL_ISUPPORTS(ObjectStoreAddOrPutRequestOp::SCInputStream, nsIInputStream)MozExternalRefCountType ObjectStoreAddOrPutRequestOp::SCInputStream ::AddRef(void) { static_assert(!std::is_destructible_v<ObjectStoreAddOrPutRequestOp ::SCInputStream>, "Reference-counted class " "ObjectStoreAddOrPutRequestOp::SCInputStream" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19532); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 19532 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("ObjectStoreAddOrPutRequestOp::SCInputStream" != nullptr)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!("ObjectStoreAddOrPutRequestOp::SCInputStream" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19532); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 19532); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("ObjectStoreAddOrPutRequestOp::SCInputStream" " not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef ((this), (count), ("ObjectStoreAddOrPutRequestOp::SCInputStream" ), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType ObjectStoreAddOrPutRequestOp::SCInputStream::Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19532); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 19532 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("ObjectStoreAddOrPutRequestOp::SCInputStream" != nullptr)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!("ObjectStoreAddOrPutRequestOp::SCInputStream" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19532); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 19532); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("ObjectStoreAddOrPutRequestOp::SCInputStream" " not thread-safe"); const char* const nametmp = "ObjectStoreAddOrPutRequestOp::SCInputStream" ; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), ( nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return 0; } return count; } nsresult ObjectStoreAddOrPutRequestOp:: SCInputStream::QueryInterface(const nsIID& aIID, void** aInstancePtr ) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "QueryInterface requires a non-NULL destination!", "aInstancePtr" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19532 ); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE ; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<ObjectStoreAddOrPutRequestOp::SCInputStream , nsIInputStream>, int32_t( reinterpret_cast<char*>( static_cast<nsIInputStream*>((ObjectStoreAddOrPutRequestOp ::SCInputStream*)0x1000)) - reinterpret_cast<char*>((ObjectStoreAddOrPutRequestOp ::SCInputStream*)0x1000))}, {&mozilla::detail::kImplementedIID <ObjectStoreAddOrPutRequestOp::SCInputStream, nsISupports> , int32_t(reinterpret_cast<char*>(static_cast<nsISupports *>( static_cast<nsIInputStream*>((ObjectStoreAddOrPutRequestOp ::SCInputStream*)0x1000))) - reinterpret_cast<char*>((ObjectStoreAddOrPutRequestOp ::SCInputStream*)0x1000))}, { nullptr, 0 } } ; static_assert( std::size(table) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI (static_cast<void*>(this), aIID, aInstancePtr, table); return rv; } | ||||
| 19533 | |||||
| 19534 | NS_IMETHODIMPnsresult | ||||
| 19535 | ObjectStoreAddOrPutRequestOp::SCInputStream::Close() { return NS_OK; } | ||||
| 19536 | |||||
| 19537 | NS_IMETHODIMPnsresult | ||||
| 19538 | ObjectStoreAddOrPutRequestOp::SCInputStream::Available(uint64_t* _retval) { | ||||
| 19539 | return NS_ERROR_NOT_IMPLEMENTED; | ||||
| 19540 | } | ||||
| 19541 | |||||
| 19542 | NS_IMETHODIMPnsresult | ||||
| 19543 | ObjectStoreAddOrPutRequestOp::SCInputStream::StreamStatus() { return NS_OK; } | ||||
| 19544 | |||||
| 19545 | NS_IMETHODIMPnsresult | ||||
| 19546 | ObjectStoreAddOrPutRequestOp::SCInputStream::Read(char* aBuf, uint32_t aCount, | ||||
| 19547 | uint32_t* _retval) { | ||||
| 19548 | return ReadSegments(NS_CopySegmentToBuffer, aBuf, aCount, _retval); | ||||
| 19549 | } | ||||
| 19550 | |||||
| 19551 | NS_IMETHODIMPnsresult | ||||
| 19552 | ObjectStoreAddOrPutRequestOp::SCInputStream::ReadSegments( | ||||
| 19553 | nsWriteSegmentFun aWriter, void* aClosure, uint32_t aCount, | ||||
| 19554 | uint32_t* _retval) { | ||||
| 19555 | *_retval = 0; | ||||
| 19556 | |||||
| 19557 | while (aCount) { | ||||
| 19558 | uint32_t count = std::min(uint32_t(mIter.RemainingInSegment()), aCount); | ||||
| 19559 | if (!count) { | ||||
| 19560 | // We've run out of data in the last segment. | ||||
| 19561 | break; | ||||
| 19562 | } | ||||
| 19563 | |||||
| 19564 | uint32_t written; | ||||
| 19565 | nsresult rv = | ||||
| 19566 | aWriter(this, aClosure, mIter.Data(), *_retval, count, &written); | ||||
| 19567 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19567)) { | ||||
| 19568 | // InputStreams do not propagate errors to caller. | ||||
| 19569 | return NS_OK; | ||||
| 19570 | } | ||||
| 19571 | |||||
| 19572 | // Writer should write what we asked it to write. | ||||
| 19573 | MOZ_ASSERT(written == count)do { static_assert( mozilla::detail::AssertionConditionType< decltype(written == count)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(written == count))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("written == count" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19573 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "written == count" ")"); do { MOZ_CrashSequence(__null, 19573); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19574 | |||||
| 19575 | *_retval += count; | ||||
| 19576 | aCount -= count; | ||||
| 19577 | |||||
| 19578 | if (NS_WARN_IF(!mData.Advance(mIter, count))NS_warn_if_impl(!mData.Advance(mIter, count), "!mData.Advance(mIter, count)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19578 )) { | ||||
| 19579 | // InputStreams do not propagate errors to caller. | ||||
| 19580 | return NS_OK; | ||||
| 19581 | } | ||||
| 19582 | } | ||||
| 19583 | |||||
| 19584 | return NS_OK; | ||||
| 19585 | } | ||||
| 19586 | |||||
| 19587 | NS_IMETHODIMPnsresult | ||||
| 19588 | ObjectStoreAddOrPutRequestOp::SCInputStream::IsNonBlocking(bool* _retval) { | ||||
| 19589 | *_retval = false; | ||||
| 19590 | return NS_OK; | ||||
| 19591 | } | ||||
| 19592 | |||||
| 19593 | ObjectStoreGetRequestOp::ObjectStoreGetRequestOp( | ||||
| 19594 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 19595 | const RequestParams& aParams, bool aGetAll) | ||||
| 19596 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 19597 | mObjectStoreId(aGetAll | ||||
| 19598 | ? aParams.get_ObjectStoreGetAllParams().objectStoreId() | ||||
| 19599 | : aParams.get_ObjectStoreGetParams().objectStoreId()), | ||||
| 19600 | mDatabase(Transaction().GetDatabasePtr()), | ||||
| 19601 | mOptionalKeyRange( | ||||
| 19602 | aGetAll ? aParams.get_ObjectStoreGetAllParams() | ||||
| 19603 | .options() | ||||
| 19604 | .optionalKeyRange() | ||||
| 19605 | : Some(aParams.get_ObjectStoreGetParams().keyRange())), | ||||
| 19606 | mBackgroundParent(Transaction().GetBackgroundParent()), | ||||
| 19607 | mPreprocessInfoCount(0), | ||||
| 19608 | mLimit(aGetAll ? aParams.get_ObjectStoreGetAllParams().options().limit() | ||||
| 19609 | : 1), | ||||
| 19610 | mDirection( | ||||
| 19611 | aGetAll ? aParams.get_ObjectStoreGetAllParams().options().direction() | ||||
| 19612 | : IDBCursorDirection::Next), | ||||
| 19613 | mGetAll(aGetAll) { | ||||
| 19614 | MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreGetParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19615 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams" ")"); do { MOZ_CrashSequence(__null, 19615); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 19615 | aParams.type() == RequestParams::TObjectStoreGetAllParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19615 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams" ")"); do { MOZ_CrashSequence(__null, 19615); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19616 | MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19616 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 19616); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 19617 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19617); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { MOZ_CrashSequence(__null, 19617); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19618 | MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19618 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 19618); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19619 | MOZ_ASSERT(mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mBackgroundParent)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mBackgroundParent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mBackgroundParent" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19619 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent" ")"); do { MOZ_CrashSequence(__null, 19619); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19620 | } | ||||
| 19621 | |||||
| 19622 | template <typename T> | ||||
| 19623 | Result<T, nsresult> ConvertResponse(const SafeRefPtr<Database>& aDatabase, | ||||
| 19624 | StructuredCloneReadInfoParent&& aInfo) { | ||||
| 19625 | static_assert(std::is_same_v<T, SerializedStructuredCloneReadInfo> || | ||||
| 19626 | std::is_same_v<T, PreprocessInfo>); | ||||
| 19627 | |||||
| 19628 | T result; | ||||
| 19629 | |||||
| 19630 | if constexpr (std::is_same_v<T, SerializedStructuredCloneReadInfo>) { | ||||
| 19631 | result.data().data = aInfo.ReleaseData(); | ||||
| 19632 | result.hasPreprocessInfo() = aInfo.HasPreprocessInfo(); | ||||
| 19633 | } | ||||
| 19634 | |||||
| 19635 | QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult1474 = (SerializeStructuredCloneFiles( aDatabase , aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla ::dom::quota::HandleError("SerializeStructuredCloneFiles( aDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)" , tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19637, mozilla::dom::quota::Severity::Error); return tryResult1474 .propagateErr(); } result.files() = tryResult1474.unwrap(); | ||||
| 19636 | aDatabase, aInfo.Files(),auto tryResult1474 = (SerializeStructuredCloneFiles( aDatabase , aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla ::dom::quota::HandleError("SerializeStructuredCloneFiles( aDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)" , tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19637, mozilla::dom::quota::Severity::Error); return tryResult1474 .propagateErr(); } result.files() = tryResult1474.unwrap(); | ||||
| 19637 | std::is_same_v<T, PreprocessInfo>))auto tryResult1474 = (SerializeStructuredCloneFiles( aDatabase , aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla ::dom::quota::HandleError("SerializeStructuredCloneFiles( aDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)" , tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19637, mozilla::dom::quota::Severity::Error); return tryResult1474 .propagateErr(); } result.files() = tryResult1474.unwrap();; | ||||
| 19638 | |||||
| 19639 | return result; | ||||
| 19640 | } | ||||
| 19641 | |||||
| 19642 | nsresult ObjectStoreGetRequestOp::DoDatabaseWork( | ||||
| 19643 | DatabaseConnection* aConnection) { | ||||
| 19644 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19644); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 19644); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19645 | aConnection->AssertIsOnConnectionThread(); | ||||
| 19646 | MOZ_ASSERT_IF(!mGetAll, mOptionalKeyRange.isSome())do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19646 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 19646); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19647 | MOZ_ASSERT_IF(!mGetAll, mLimit == 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mLimit == 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLimit == 1))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mLimit == 1", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19647); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1" ")"); do { MOZ_CrashSequence(__null, 19647); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19648 | MOZ_ASSERT_IF(!mGetAll, mDirection == IDBCursorDirection::Next)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mDirection == IDBCursorDirection::Next)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mDirection == IDBCursorDirection::Next))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirection == IDBCursorDirection::Next" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19648 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirection == IDBCursorDirection::Next" ")"); do { MOZ_CrashSequence(__null, 19648); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19649 | |||||
| 19650 | AUTO_PROFILER_LABEL("ObjectStoreGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19650( "ObjectStoreGetRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 19651 | |||||
| 19652 | const nsCString query = | ||||
| 19653 | "SELECT file_ids, data " | ||||
| 19654 | "FROM object_data " | ||||
| 19655 | "WHERE object_store_id = :"_ns + | ||||
| 19656 | kStmtParamNameObjectStoreId + | ||||
| 19657 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) + | ||||
| 19658 | MakeDirectionClause(mDirection) + | ||||
| 19659 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 19660 | |||||
| 19661 | QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1475 = (aConnection->BorrowCachedStatement(query )); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)" , tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19661, mozilla::dom::quota::Severity::Error); return tryResult1475 .propagateErr(); } const auto& stmt = tryResult1475.inspect ();; | ||||
| 19662 | |||||
| 19663 | QM_TRY(MOZ_TO_RESULT({auto tryResult1476 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect (!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); return tryResult1476 .propagateErr(); }} | ||||
| 19664 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1476 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect (!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); return tryResult1476 .propagateErr(); }}; | ||||
| 19665 | |||||
| 19666 | if (mOptionalKeyRange.isSome()) { | ||||
| 19667 | QM_TRY(MOZ_TO_RESULT({auto tryResult1477 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1477)::ok_type>); if ((__builtin_expect (!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19668, mozilla::dom::quota::Severity::Error); return tryResult1477 .propagateErr(); }} | ||||
| 19668 | BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1477 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1477)::ok_type>); if ((__builtin_expect (!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19668, mozilla::dom::quota::Severity::Error); return tryResult1477 .propagateErr(); }}; | ||||
| 19669 | } | ||||
| 19670 | |||||
| 19671 | QM_TRY(CollectWhileHasResult({auto tryResult1480 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1478.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19675, mozilla::dom::quota::Severity::Error); return tryResult1478 .propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1480 )::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1478.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19675, mozilla::dom::quota::Severity::Error); return tryResult1478.propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19685, mozilla::dom::quota::Severity::Error); return tryResult1480 .propagateErr(); }} | ||||
| 19672 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1480 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1478.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19675, mozilla::dom::quota::Severity::Error); return tryResult1478 .propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1480 )::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1478.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19675, mozilla::dom::quota::Severity::Error); return tryResult1478.propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19685, mozilla::dom::quota::Severity::Error); return tryResult1480 .propagateErr(); }} | ||||
| 19673 | QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1480 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1478.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19675, mozilla::dom::quota::Severity::Error); return tryResult1478 .propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1480 )::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1478.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19675, mozilla::dom::quota::Severity::Error); return tryResult1478.propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19685, mozilla::dom::quota::Severity::Error); return tryResult1480 .propagateErr(); }} | ||||
| 19674 | GetStructuredCloneReadInfoFromStatement({auto tryResult1480 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1478.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19675, mozilla::dom::quota::Severity::Error); return tryResult1478 .propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1480 )::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1478.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19675, mozilla::dom::quota::Severity::Error); return tryResult1478.propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19685, mozilla::dom::quota::Severity::Error); return tryResult1480 .propagateErr(); }} | ||||
| 19675 | &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult1480 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1478.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19675, mozilla::dom::quota::Severity::Error); return tryResult1478 .propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1480 )::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1478.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19675, mozilla::dom::quota::Severity::Error); return tryResult1478.propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19685, mozilla::dom::quota::Severity::Error); return tryResult1480 .propagateErr(); }} | ||||
| 19676 | |||||
| 19677 | if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1480 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1478.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19675, mozilla::dom::quota::Severity::Error); return tryResult1478 .propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1480 )::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1478.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19675, mozilla::dom::quota::Severity::Error); return tryResult1478.propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19685, mozilla::dom::quota::Severity::Error); return tryResult1480 .propagateErr(); }} | ||||
| 19678 | mPreprocessInfoCount++;{auto tryResult1480 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1478.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19675, mozilla::dom::quota::Severity::Error); return tryResult1478 .propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1480 )::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1478.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19675, mozilla::dom::quota::Severity::Error); return tryResult1478.propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19685, mozilla::dom::quota::Severity::Error); return tryResult1480 .propagateErr(); }} | ||||
| 19679 | }{auto tryResult1480 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1478.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19675, mozilla::dom::quota::Severity::Error); return tryResult1478 .propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1480 )::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1478.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19675, mozilla::dom::quota::Severity::Error); return tryResult1478.propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19685, mozilla::dom::quota::Severity::Error); return tryResult1480 .propagateErr(); }} | ||||
| 19680 | |||||
| 19681 | QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1480 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1478.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19675, mozilla::dom::quota::Severity::Error); return tryResult1478 .propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1480 )::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1478.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19675, mozilla::dom::quota::Severity::Error); return tryResult1478.propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19685, mozilla::dom::quota::Severity::Error); return tryResult1480 .propagateErr(); }} | ||||
| 19682 | Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1480 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1478.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19675, mozilla::dom::quota::Severity::Error); return tryResult1478 .propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1480 )::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1478.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19675, mozilla::dom::quota::Severity::Error); return tryResult1478.propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19685, mozilla::dom::quota::Severity::Error); return tryResult1480 .propagateErr(); }} | ||||
| 19683 | |||||
| 19684 | return Ok{};{auto tryResult1480 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1478.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19675, mozilla::dom::quota::Severity::Error); return tryResult1478 .propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1480 )::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1478.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19675, mozilla::dom::quota::Severity::Error); return tryResult1478.propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19685, mozilla::dom::quota::Severity::Error); return tryResult1480 .propagateErr(); }} | ||||
| 19685 | })){auto tryResult1480 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1478.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19675, mozilla::dom::quota::Severity::Error); return tryResult1478 .propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1480 )::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1478 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1478.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19675, mozilla::dom::quota::Severity::Error); return tryResult1478.propagateErr(); } auto cloneInfo = tryResult1478.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1479 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19682, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19685, mozilla::dom::quota::Severity::Error); return tryResult1480 .propagateErr(); }}; | ||||
| 19686 | |||||
| 19687 | MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19687 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { MOZ_CrashSequence(__null, 19687); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19688 | |||||
| 19689 | return NS_OK; | ||||
| 19690 | } | ||||
| 19691 | |||||
| 19692 | bool ObjectStoreGetRequestOp::HasPreprocessInfo() { | ||||
| 19693 | return mPreprocessInfoCount > 0; | ||||
| 19694 | } | ||||
| 19695 | |||||
| 19696 | Result<PreprocessParams, nsresult> | ||||
| 19697 | ObjectStoreGetRequestOp::GetPreprocessParams() { | ||||
| 19698 | AssertIsOnOwningThread(); | ||||
| 19699 | MOZ_ASSERT(!mResponse.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mResponse.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mResponse.IsEmpty()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mResponse.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19699 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 19699); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19700 | |||||
| 19701 | if (mGetAll) { | ||||
| 19702 | auto params = ObjectStoreGetAllPreprocessParams(); | ||||
| 19703 | |||||
| 19704 | auto& preprocessInfos = params.preprocessInfos(); | ||||
| 19705 | if (NS_WARN_IF(NS_warn_if_impl(!preprocessInfos.SetCapacity(mPreprocessInfoCount , fallible), "!preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19706 ) | ||||
| 19706 | !preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible))NS_warn_if_impl(!preprocessInfos.SetCapacity(mPreprocessInfoCount , fallible), "!preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19706 )) { | ||||
| 19707 | return Err(NS_ERROR_OUT_OF_MEMORY); | ||||
| 19708 | } | ||||
| 19709 | |||||
| 19710 | QM_TRY(TransformIfAbortOnErr({auto tryResult1481 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return ConvertResponse<PreprocessInfo> (self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v <typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })" , tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19718, mozilla::dom::quota::Severity::Error); return tryResult1481 .propagateErr(); }} | ||||
| 19711 | std::make_move_iterator(mResponse.begin()),{auto tryResult1481 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return ConvertResponse<PreprocessInfo> (self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v <typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })" , tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19718, mozilla::dom::quota::Severity::Error); return tryResult1481 .propagateErr(); }} | ||||
| 19712 | std::make_move_iterator(mResponse.end()),{auto tryResult1481 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return ConvertResponse<PreprocessInfo> (self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v <typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })" , tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19718, mozilla::dom::quota::Severity::Error); return tryResult1481 .propagateErr(); }} | ||||
| 19713 | MakeBackInserter(preprocessInfos),{auto tryResult1481 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return ConvertResponse<PreprocessInfo> (self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v <typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })" , tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19718, mozilla::dom::quota::Severity::Error); return tryResult1481 .propagateErr(); }} | ||||
| 19714 | [](const auto& info) { return info.HasPreprocessInfo(); },{auto tryResult1481 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return ConvertResponse<PreprocessInfo> (self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v <typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })" , tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19718, mozilla::dom::quota::Severity::Error); return tryResult1481 .propagateErr(); }} | ||||
| 19715 | [&self = *this](StructuredCloneReadInfoParent&& info) {{auto tryResult1481 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return ConvertResponse<PreprocessInfo> (self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v <typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })" , tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19718, mozilla::dom::quota::Severity::Error); return tryResult1481 .propagateErr(); }} | ||||
| 19716 | return ConvertResponse<PreprocessInfo>(self.mDatabase,{auto tryResult1481 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return ConvertResponse<PreprocessInfo> (self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v <typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })" , tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19718, mozilla::dom::quota::Severity::Error); return tryResult1481 .propagateErr(); }} | ||||
| 19717 | std::move(info));{auto tryResult1481 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return ConvertResponse<PreprocessInfo> (self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v <typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })" , tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19718, mozilla::dom::quota::Severity::Error); return tryResult1481 .propagateErr(); }} | ||||
| 19718 | })){auto tryResult1481 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return ConvertResponse<PreprocessInfo> (self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v <typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })" , tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19718, mozilla::dom::quota::Severity::Error); return tryResult1481 .propagateErr(); }}; | ||||
| 19719 | |||||
| 19720 | return PreprocessParams{std::move(params)}; | ||||
| 19721 | } | ||||
| 19722 | |||||
| 19723 | auto params = ObjectStoreGetPreprocessParams(); | ||||
| 19724 | |||||
| 19725 | QM_TRY_UNWRAP(auto tryResult1482 = (ConvertResponse<PreprocessInfo>(mDatabase , std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1482 .isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(mDatabase, std::move(mResponse[0]))" , tryResult1482.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19727, mozilla::dom::quota::Severity::Error); return tryResult1482 .propagateErr(); } params.preprocessInfo() = tryResult1482.unwrap (); | ||||
| 19726 | params.preprocessInfo(),auto tryResult1482 = (ConvertResponse<PreprocessInfo>(mDatabase , std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1482 .isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(mDatabase, std::move(mResponse[0]))" , tryResult1482.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19727, mozilla::dom::quota::Severity::Error); return tryResult1482 .propagateErr(); } params.preprocessInfo() = tryResult1482.unwrap (); | ||||
| 19727 | ConvertResponse<PreprocessInfo>(mDatabase, std::move(mResponse[0])))auto tryResult1482 = (ConvertResponse<PreprocessInfo>(mDatabase , std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1482 .isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(mDatabase, std::move(mResponse[0]))" , tryResult1482.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19727, mozilla::dom::quota::Severity::Error); return tryResult1482 .propagateErr(); } params.preprocessInfo() = tryResult1482.unwrap ();; | ||||
| 19728 | |||||
| 19729 | return PreprocessParams{std::move(params)}; | ||||
| 19730 | } | ||||
| 19731 | |||||
| 19732 | void ObjectStoreGetRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 19733 | size_t* aResponseSize) { | ||||
| 19734 | MOZ_ASSERT_IF(mLimit, mResponse.Length() <= mLimit)do { if (mLimit) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= mLimit)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= mLimit ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mResponse.Length() <= mLimit", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19734); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit" ")"); do { MOZ_CrashSequence(__null, 19734); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19735 | |||||
| 19736 | if (mGetAll) { | ||||
| 19737 | aResponse = ObjectStoreGetAllResponse(); | ||||
| 19738 | *aResponseSize = 0; | ||||
| 19739 | |||||
| 19740 | if (!mResponse.IsEmpty()) { | ||||
| 19741 | QM_TRY_UNWRAP(auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap(); | ||||
| 19742 | aResponse.get_ObjectStoreGetAllResponse().cloneInfos(),auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap(); | ||||
| 19743 | TransformIntoNewArrayAbortOnErr(auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap(); | ||||
| 19744 | std::make_move_iterator(mResponse.begin()),auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap(); | ||||
| 19745 | std::make_move_iterator(mResponse.end()),auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap(); | ||||
| 19746 | [this, &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap(); | ||||
| 19747 | *aResponseSize += info.Size();auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap(); | ||||
| 19748 | return ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap(); | ||||
| 19749 | mDatabase, std::move(info));auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap(); | ||||
| 19750 | },auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap(); | ||||
| 19751 | fallible),auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap(); | ||||
| 19752 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap(); | ||||
| 19753 | aResponse = TransactionOpResult(result);auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap(); | ||||
| 19754 | })auto tryResult1483 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { auto tryTempError = tryResult1483.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19754, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult1483.unwrap();; | ||||
| 19755 | } | ||||
| 19756 | |||||
| 19757 | return; | ||||
| 19758 | } | ||||
| 19759 | |||||
| 19760 | aResponse = ObjectStoreGetResponse(); | ||||
| 19761 | *aResponseSize = 0; | ||||
| 19762 | |||||
| 19763 | if (!mResponse.IsEmpty()) { | ||||
| 19764 | SerializedStructuredCloneReadInfo& serializedInfo = | ||||
| 19765 | aResponse.get_ObjectStoreGetResponse().cloneInfo(); | ||||
| 19766 | |||||
| 19767 | *aResponseSize += mResponse[0].Size(); | ||||
| 19768 | QM_TRY_UNWRAP(serializedInfo,auto tryResult1484 = (ConvertResponse<SerializedStructuredCloneReadInfo >( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect (!!(tryResult1484.isErr()), 0))) { auto tryTempError = tryResult1484 .unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19773, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1484.unwrap (); | ||||
| 19769 | ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1484 = (ConvertResponse<SerializedStructuredCloneReadInfo >( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect (!!(tryResult1484.isErr()), 0))) { auto tryTempError = tryResult1484 .unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19773, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1484.unwrap (); | ||||
| 19770 | mDatabase, std::move(mResponse[0])),auto tryResult1484 = (ConvertResponse<SerializedStructuredCloneReadInfo >( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect (!!(tryResult1484.isErr()), 0))) { auto tryTempError = tryResult1484 .unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19773, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1484.unwrap (); | ||||
| 19771 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1484 = (ConvertResponse<SerializedStructuredCloneReadInfo >( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect (!!(tryResult1484.isErr()), 0))) { auto tryTempError = tryResult1484 .unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19773, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1484.unwrap (); | ||||
| 19772 | aResponse = TransactionOpResult(result);auto tryResult1484 = (ConvertResponse<SerializedStructuredCloneReadInfo >( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect (!!(tryResult1484.isErr()), 0))) { auto tryTempError = tryResult1484 .unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19773, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1484.unwrap (); | ||||
| 19773 | })auto tryResult1484 = (ConvertResponse<SerializedStructuredCloneReadInfo >( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect (!!(tryResult1484.isErr()), 0))) { auto tryTempError = tryResult1484 .unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19773, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1484.unwrap ();; | ||||
| 19774 | } | ||||
| 19775 | } | ||||
| 19776 | |||||
| 19777 | ObjectStoreGetKeyRequestOp::ObjectStoreGetKeyRequestOp( | ||||
| 19778 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 19779 | const RequestParams& aParams, bool aGetAll) | ||||
| 19780 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 19781 | mObjectStoreId( | ||||
| 19782 | aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().objectStoreId() | ||||
| 19783 | : aParams.get_ObjectStoreGetKeyParams().objectStoreId()), | ||||
| 19784 | mOptionalKeyRange( | ||||
| 19785 | aGetAll ? aParams.get_ObjectStoreGetAllKeysParams() | ||||
| 19786 | .options() | ||||
| 19787 | .optionalKeyRange() | ||||
| 19788 | : Some(aParams.get_ObjectStoreGetKeyParams().keyRange())), | ||||
| 19789 | mLimit(aGetAll | ||||
| 19790 | ? aParams.get_ObjectStoreGetAllKeysParams().options().limit() | ||||
| 19791 | : 1), | ||||
| 19792 | mDirection( | ||||
| 19793 | aGetAll | ||||
| 19794 | ? aParams.get_ObjectStoreGetAllKeysParams().options().direction() | ||||
| 19795 | : IDBCursorDirection::Next), | ||||
| 19796 | mGetAll(aGetAll) { | ||||
| 19797 | MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreGetKeyParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19798 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams" ")"); do { MOZ_CrashSequence(__null, 19798); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 19798 | aParams.type() == RequestParams::TObjectStoreGetAllKeysParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19798 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams" ")"); do { MOZ_CrashSequence(__null, 19798); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19799 | MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19799 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 19799); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 19800 | MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19800 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 19800); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19801 | } | ||||
| 19802 | |||||
| 19803 | nsresult ObjectStoreGetKeyRequestOp::DoDatabaseWork( | ||||
| 19804 | DatabaseConnection* aConnection) { | ||||
| 19805 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19805); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 19805); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19806 | aConnection->AssertIsOnConnectionThread(); | ||||
| 19807 | |||||
| 19808 | AUTO_PROFILER_LABEL("ObjectStoreGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19808( "ObjectStoreGetKeyRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 19809 | |||||
| 19810 | const nsCString query = | ||||
| 19811 | "SELECT key " | ||||
| 19812 | "FROM object_data " | ||||
| 19813 | "WHERE object_store_id = :"_ns + | ||||
| 19814 | kStmtParamNameObjectStoreId + | ||||
| 19815 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) + | ||||
| 19816 | MakeDirectionClause(mDirection) + | ||||
| 19817 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 19818 | |||||
| 19819 | QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1485 = (aConnection->BorrowCachedStatement(query )); if ((__builtin_expect(!!(tryResult1485.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)" , tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19819, mozilla::dom::quota::Severity::Error); return tryResult1485 .propagateErr(); } const auto& stmt = tryResult1485.inspect ();; | ||||
| 19820 | |||||
| 19821 | nsresult rv = | ||||
| 19822 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId); | ||||
| 19823 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19823)) { | ||||
| 19824 | return rv; | ||||
| 19825 | } | ||||
| 19826 | |||||
| 19827 | if (mOptionalKeyRange.isSome()) { | ||||
| 19828 | rv = BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt); | ||||
| 19829 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19829)) { | ||||
| 19830 | return rv; | ||||
| 19831 | } | ||||
| 19832 | } | ||||
| 19833 | |||||
| 19834 | QM_TRY(CollectWhileHasResult({auto tryResult1488 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19837 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19838, mozilla::dom::quota::Severity::Error); return tryResult1487 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect (!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19838, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; return Ok{}; })" , tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult1488 .propagateErr(); }} | ||||
| 19835 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1488 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19837 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19838, mozilla::dom::quota::Severity::Error); return tryResult1487 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect (!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19838, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; return Ok{}; })" , tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult1488 .propagateErr(); }} | ||||
| 19836 | Key* const key = mResponse.AppendElement(fallible);{auto tryResult1488 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19837 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19838, mozilla::dom::quota::Severity::Error); return tryResult1487 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect (!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19838, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; return Ok{}; })" , tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult1488 .propagateErr(); }} | ||||
| 19837 | QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1488 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19837 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19838, mozilla::dom::quota::Severity::Error); return tryResult1487 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect (!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19838, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; return Ok{}; })" , tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult1488 .propagateErr(); }} | ||||
| 19838 | QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1488 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19837 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19838, mozilla::dom::quota::Severity::Error); return tryResult1487 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect (!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19838, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; return Ok{}; })" , tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult1488 .propagateErr(); }} | ||||
| 19839 | |||||
| 19840 | return Ok{};{auto tryResult1488 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19837 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19838, mozilla::dom::quota::Severity::Error); return tryResult1487 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect (!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19838, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; return Ok{}; })" , tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult1488 .propagateErr(); }} | ||||
| 19841 | })){auto tryResult1488 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19837 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19838, mozilla::dom::quota::Severity::Error); return tryResult1487 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect (!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1486 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1486)::ok_type>); if ((__builtin_expect(!!(tryResult1486.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1486.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1487 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19838, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; return Ok{}; })" , tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult1488 .propagateErr(); }}; | ||||
| 19842 | |||||
| 19843 | MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19843 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { MOZ_CrashSequence(__null, 19843); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19844 | |||||
| 19845 | return NS_OK; | ||||
| 19846 | } | ||||
| 19847 | |||||
| 19848 | void ObjectStoreGetKeyRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 19849 | size_t* aResponseSize) { | ||||
| 19850 | MOZ_ASSERT_IF(mLimit, mResponse.Length() <= mLimit)do { if (mLimit) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= mLimit)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= mLimit ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mResponse.Length() <= mLimit", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19850); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit" ")"); do { MOZ_CrashSequence(__null, 19850); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19851 | |||||
| 19852 | if (mGetAll) { | ||||
| 19853 | aResponse = ObjectStoreGetAllKeysResponse(); | ||||
| 19854 | *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u, | ||||
| 19855 | [](size_t old, const auto& entry) { | ||||
| 19856 | return old + entry.GetBuffer().Length(); | ||||
| 19857 | }); | ||||
| 19858 | |||||
| 19859 | aResponse.get_ObjectStoreGetAllKeysResponse().keys() = std::move(mResponse); | ||||
| 19860 | |||||
| 19861 | return; | ||||
| 19862 | } | ||||
| 19863 | |||||
| 19864 | aResponse = ObjectStoreGetKeyResponse(); | ||||
| 19865 | *aResponseSize = 0; | ||||
| 19866 | |||||
| 19867 | if (!mResponse.IsEmpty()) { | ||||
| 19868 | *aResponseSize = mResponse[0].GetBuffer().Length(); | ||||
| 19869 | aResponse.get_ObjectStoreGetKeyResponse().key() = std::move(mResponse[0]); | ||||
| 19870 | } | ||||
| 19871 | } | ||||
| 19872 | |||||
| 19873 | ObjectStoreDeleteRequestOp::ObjectStoreDeleteRequestOp( | ||||
| 19874 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 19875 | const ObjectStoreDeleteParams& aParams) | ||||
| 19876 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 19877 | mParams(aParams), | ||||
| 19878 | mObjectStoreMayHaveIndexes(false) { | ||||
| 19879 | AssertIsOnBackgroundThread(); | ||||
| 19880 | |||||
| 19881 | SafeRefPtr<FullObjectStoreMetadata> metadata = | ||||
| 19882 | Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId()); | ||||
| 19883 | MOZ_ASSERT(metadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(metadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19883); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 19883); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 19884 | |||||
| 19885 | mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes(); | ||||
| 19886 | } | ||||
| 19887 | |||||
| 19888 | nsresult ObjectStoreDeleteRequestOp::DoDatabaseWork( | ||||
| 19889 | DatabaseConnection* aConnection) { | ||||
| 19890 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19890); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 19890); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19891 | aConnection->AssertIsOnConnectionThread(); | ||||
| 19892 | AUTO_PROFILER_LABEL("ObjectStoreDeleteRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19892( "ObjectStoreDeleteRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 19893 | |||||
| 19894 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 19895 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1489 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1489)::ok_type>); if ((__builtin_expect(!!(tryResult1489 .isErr()), 0))) { auto tryTempError = tryResult1489.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19900, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19896 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1489 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1489)::ok_type>); if ((__builtin_expect(!!(tryResult1489 .isErr()), 0))) { auto tryTempError = tryResult1489.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19900, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19897 | ,{auto tryResult1489 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1489)::ok_type>); if ((__builtin_expect(!!(tryResult1489 .isErr()), 0))) { auto tryTempError = tryResult1489.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19900, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19898 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1489 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1489)::ok_type>); if ((__builtin_expect(!!(tryResult1489 .isErr()), 0))) { auto tryTempError = tryResult1489.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19900, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19899 | #endif{auto tryResult1489 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1489)::ok_type>); if ((__builtin_expect(!!(tryResult1489 .isErr()), 0))) { auto tryTempError = tryResult1489.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19900, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19900 | ){auto tryResult1489 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1489)::ok_type>); if ((__builtin_expect(!!(tryResult1489 .isErr()), 0))) { auto tryTempError = tryResult1489.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19900, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | ||||
| 19901 | |||||
| 19902 | QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1490 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1490.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1490.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19904, mozilla::dom::quota::Severity::Error); return tryResult1490 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1490 .inspect(); | ||||
| 19903 | ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1490 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1490.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1490.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19904, mozilla::dom::quota::Severity::Error); return tryResult1490 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1490 .inspect(); | ||||
| 19904 | mObjectStoreMayHaveIndexes))auto tryResult1490 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1490.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1490.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19904, mozilla::dom::quota::Severity::Error); return tryResult1490 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1490 .inspect();; | ||||
| 19905 | |||||
| 19906 | if (objectStoreHasIndexes) { | ||||
| 19907 | QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1491 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Some(mParams.keyRange ())))); static_assert(std::is_empty_v<typename decltype(tryResult1491 )::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))" , tryResult1491.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19908, mozilla::dom::quota::Severity::Error); return tryResult1491 .propagateErr(); }} | ||||
| 19908 | aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))){auto tryResult1491 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Some(mParams.keyRange ())))); static_assert(std::is_empty_v<typename decltype(tryResult1491 )::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))" , tryResult1491.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19908, mozilla::dom::quota::Severity::Error); return tryResult1491 .propagateErr(); }}; | ||||
| 19909 | } else { | ||||
| 19910 | const auto keyRangeClause = | ||||
| 19911 | GetBindingClauseForKeyRange(mParams.keyRange(), kColumnNameKey); | ||||
| 19912 | |||||
| 19913 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1494 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1492 )::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19920, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19923, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1492.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19920, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19923, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; }))" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19926, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); }} | ||||
| 19914 | "DELETE FROM object_data "{auto tryResult1494 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1492 )::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19920, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19923, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1492.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19920, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19923, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; }))" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19926, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); }} | ||||
| 19915 | "WHERE object_store_id = :"_ns +{auto tryResult1494 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1492 )::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19920, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19923, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1492.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19920, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19923, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; }))" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19926, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); }} | ||||
| 19916 | kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns,{auto tryResult1494 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1492 )::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19920, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19923, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1492.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19920, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19923, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; }))" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19926, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); }} | ||||
| 19917 | [¶ms = mParams]({auto tryResult1494 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1492 )::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19920, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19923, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1492.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19920, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19923, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; }))" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19926, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); }} | ||||
| 19918 | mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult1494 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1492 )::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19920, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19923, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1492.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19920, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19923, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; }))" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19926, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); }} | ||||
| 19919 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult1494 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1492 )::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19920, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19923, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1492.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19920, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19923, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; }))" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19926, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); }} | ||||
| 19920 | params.objectStoreId())));{auto tryResult1494 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1492 )::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19920, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19923, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1492.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19920, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19923, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; }))" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19926, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); }} | ||||
| 19921 | |||||
| 19922 | QM_TRY({auto tryResult1494 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1492 )::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19920, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19923, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1492.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19920, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19923, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; }))" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19926, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); }} | ||||
| 19923 | MOZ_TO_RESULT(BindKeyRangeToStatement(params.keyRange(), &stmt)));{auto tryResult1494 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1492 )::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19920, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19923, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1492.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19920, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19923, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; }))" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19926, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); }} | ||||
| 19924 | |||||
| 19925 | return Ok{};{auto tryResult1494 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1492 )::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19920, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19923, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1492.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19920, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19923, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; }))" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19926, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); }} | ||||
| 19926 | }))){auto tryResult1494 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1492 )::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19920, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19923, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1492 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1492.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19920, mozilla::dom::quota::Severity::Error); return tryResult1492.propagateErr(); }}; {auto tryResult1493 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19923, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; }))" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19926, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); }}; | ||||
| 19927 | } | ||||
| 19928 | |||||
| 19929 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1495 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1495)::ok_type >); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19929, mozilla::dom::quota::Severity::Error); return tryResult1495 .propagateErr(); }}; | ||||
| 19930 | |||||
| 19931 | return NS_OK; | ||||
| 19932 | } | ||||
| 19933 | |||||
| 19934 | ObjectStoreClearRequestOp::ObjectStoreClearRequestOp( | ||||
| 19935 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 19936 | const ObjectStoreClearParams& aParams) | ||||
| 19937 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 19938 | mParams(aParams), | ||||
| 19939 | mObjectStoreMayHaveIndexes(false) { | ||||
| 19940 | AssertIsOnBackgroundThread(); | ||||
| 19941 | |||||
| 19942 | SafeRefPtr<FullObjectStoreMetadata> metadata = | ||||
| 19943 | Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId()); | ||||
| 19944 | MOZ_ASSERT(metadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(metadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19944); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 19944); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 19945 | |||||
| 19946 | mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes(); | ||||
| 19947 | } | ||||
| 19948 | |||||
| 19949 | nsresult ObjectStoreClearRequestOp::DoDatabaseWork( | ||||
| 19950 | DatabaseConnection* aConnection) { | ||||
| 19951 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 19951); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19952 | aConnection->AssertIsOnConnectionThread(); | ||||
| 19953 | |||||
| 19954 | AUTO_PROFILER_LABEL("ObjectStoreClearRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19954( "ObjectStoreClearRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 19955 | |||||
| 19956 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 19957 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1496 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); 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("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19962, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19958 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1496 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); 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("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19962, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19959 | ,{auto tryResult1496 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); 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("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19962, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19960 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1496 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); 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("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19962, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19961 | #endif{auto tryResult1496 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); 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("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19962, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | ||||
| 19962 | ){auto tryResult1496 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); 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("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19962, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | ||||
| 19963 | |||||
| 19964 | QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1497 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19966, mozilla::dom::quota::Severity::Error); return tryResult1497 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1497 .inspect(); | ||||
| 19965 | ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1497 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19966, mozilla::dom::quota::Severity::Error); return tryResult1497 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1497 .inspect(); | ||||
| 19966 | mObjectStoreMayHaveIndexes))auto tryResult1497 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19966, mozilla::dom::quota::Severity::Error); return tryResult1497 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1497 .inspect();; | ||||
| 19967 | |||||
| 19968 | // The parameter names are not used, parameters are bound by index only | ||||
| 19969 | // locally in the same function. | ||||
| 19970 | QM_TRY(MOZ_TO_RESULT({auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }} | ||||
| 19971 | objectStoreHasIndexes{auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }} | ||||
| 19972 | ? DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }} | ||||
| 19973 | aConnection, mParams.objectStoreId(), Nothing()){auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }} | ||||
| 19974 | : aConnection->ExecuteCachedStatement({auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }} | ||||
| 19975 | "DELETE FROM object_data "{auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }} | ||||
| 19976 | "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }} | ||||
| 19977 | [objectStoreId ={auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }} | ||||
| 19978 | mParams.objectStoreId()](mozIStorageStatement& stmt){auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }} | ||||
| 19979 | -> mozilla::Result<Ok, nsresult> {{auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }} | ||||
| 19980 | QM_TRY({auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }} | ||||
| 19981 | MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoreId)));{auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }} | ||||
| 19982 | |||||
| 19983 | return Ok{};{auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }} | ||||
| 19984 | }))){auto tryResult1499 = (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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1498 )::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19981, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1499)::ok_type>); if ((__builtin_expect (!!(tryResult1499.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 tryResult1498 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1498.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19981, mozilla::dom::quota::Severity::Error); return tryResult1498.propagateErr(); }}; return Ok{}; }))" , tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19984, mozilla::dom::quota::Severity::Error); return tryResult1499 .propagateErr(); }}; | ||||
| 19985 | |||||
| 19986 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1500 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1500)::ok_type >); if ((__builtin_expect(!!(tryResult1500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1500.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19986, mozilla::dom::quota::Severity::Error); return tryResult1500 .propagateErr(); }}; | ||||
| 19987 | |||||
| 19988 | return NS_OK; | ||||
| 19989 | } | ||||
| 19990 | |||||
| 19991 | nsresult ObjectStoreCountRequestOp::DoDatabaseWork( | ||||
| 19992 | DatabaseConnection* aConnection) { | ||||
| 19993 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19993); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 19993); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19994 | aConnection->AssertIsOnConnectionThread(); | ||||
| 19995 | |||||
| 19996 | AUTO_PROFILER_LABEL("ObjectStoreCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19996( "ObjectStoreCountRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 19997 | |||||
| 19998 | const auto keyRangeClause = MaybeGetBindingClauseForKeyRange( | ||||
| 19999 | mParams.optionalKeyRange(), kColumnNameKey); | ||||
| 20000 | |||||
| 20001 | QM_TRY_INSPECT(auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20002 | const auto& maybeStmt,auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20003 | aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20004 | "SELECT count(*) "auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20005 | "FROM object_data "auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20006 | "WHERE object_store_id = :"_ns +auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20007 | kStmtParamNameObjectStoreId + keyRangeClause,auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20008 | [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20009 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20010 | kStmtParamNameObjectStoreId, params.objectStoreId())));auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20011 | |||||
| 20012 | if (params.optionalKeyRange().isSome()) {auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20013 | QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20014 | params.optionalKeyRange().ref(), &stmt)));auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20015 | }auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20016 | |||||
| 20017 | return Ok{};auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect(); | ||||
| 20018 | }))auto tryResult1503 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect (!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20010, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect (!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1502.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20014, mozilla::dom::quota::Severity::Error); return tryResult1502 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1501 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1501.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20010, mozilla::dom::quota::Severity::Error); return tryResult1501.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1502 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1502.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20014, mozilla::dom::quota::Severity::Error); return tryResult1502.propagateErr(); }}; } return Ok{}; })" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); } const auto& maybeStmt = tryResult1503. inspect();; | ||||
| 20019 | |||||
| 20020 | QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1504 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1504)::ok_type >); if ((__builtin_expect(!!(tryResult1504.isErr()), 0))) { auto tryTempError = tryResult1504.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20026, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20024 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20024); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20025, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20021 | [](const auto) {{auto tryResult1504 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1504)::ok_type >); if ((__builtin_expect(!!(tryResult1504.isErr()), 0))) { auto tryTempError = tryResult1504.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20026, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20024 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20024); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20025, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20022 | // XXX Why do we have an assertion here, but not at most other{auto tryResult1504 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1504)::ok_type >); if ((__builtin_expect(!!(tryResult1504.isErr()), 0))) { auto tryTempError = tryResult1504.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20026, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20024 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20024); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20025, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20023 | // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1504 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1504)::ok_type >); if ((__builtin_expect(!!(tryResult1504.isErr()), 0))) { auto tryTempError = tryResult1504.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20026, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20024 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20024); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20025, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20024 | MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1504 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1504)::ok_type >); if ((__builtin_expect(!!(tryResult1504.isErr()), 0))) { auto tryTempError = tryResult1504.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20026, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20024 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20024); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20025, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20025 | IDB_REPORT_INTERNAL_ERR();{auto tryResult1504 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1504)::ok_type >); if ((__builtin_expect(!!(tryResult1504.isErr()), 0))) { auto tryTempError = tryResult1504.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20026, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20024 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20024); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20025, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20026 | }){auto tryResult1504 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1504)::ok_type >); if ((__builtin_expect(!!(tryResult1504.isErr()), 0))) { auto tryTempError = tryResult1504.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20026, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20024 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20024); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20025, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | ||||
| 20027 | |||||
| 20028 | const auto& stmt = *maybeStmt; | ||||
| 20029 | |||||
| 20030 | const int64_t count = stmt->AsInt64(0); | ||||
| 20031 | QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult1505 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1505)::ok_type> ); if ((__builtin_expect(!!(tryResult1505.isErr()), 0))) { auto tryTempError = tryResult1505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20036, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20034 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20034); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20035, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20032 | // XXX Why do we have an assertion here, but not at most other places using{auto tryResult1505 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1505)::ok_type> ); if ((__builtin_expect(!!(tryResult1505.isErr()), 0))) { auto tryTempError = tryResult1505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20036, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20034 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20034); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20035, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20033 | // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1505 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1505)::ok_type> ); if ((__builtin_expect(!!(tryResult1505.isErr()), 0))) { auto tryTempError = tryResult1505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20036, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20034 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20034); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20035, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20034 | MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1505 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1505)::ok_type> ); if ((__builtin_expect(!!(tryResult1505.isErr()), 0))) { auto tryTempError = tryResult1505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20036, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20034 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20034); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20035, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20035 | IDB_REPORT_INTERNAL_ERR();{auto tryResult1505 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1505)::ok_type> ); if ((__builtin_expect(!!(tryResult1505.isErr()), 0))) { auto tryTempError = tryResult1505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20036, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20034 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20034); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20035, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20036 | }){auto tryResult1505 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1505)::ok_type> ); if ((__builtin_expect(!!(tryResult1505.isErr()), 0))) { auto tryTempError = tryResult1505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20036, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20034 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20034); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20035, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | ||||
| 20037 | |||||
| 20038 | mResponse.count() = count; | ||||
| 20039 | |||||
| 20040 | return NS_OK; | ||||
| 20041 | } | ||||
| 20042 | |||||
| 20043 | // static | ||||
| 20044 | SafeRefPtr<FullIndexMetadata> IndexRequestOpBase::IndexMetadataForParams( | ||||
| 20045 | const TransactionBase& aTransaction, const RequestParams& aParams) { | ||||
| 20046 | AssertIsOnBackgroundThread(); | ||||
| 20047 | MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetKeyParams || aParams.type( ) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams ::TIndexGetAllKeysParams || aParams.type() == RequestParams:: TIndexGetAllRecordsParams || aParams.type() == RequestParams:: TIndexCountParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams .type() == RequestParams::TIndexGetAllKeysParams || aParams.type () == RequestParams::TIndexGetAllRecordsParams || aParams.type () == RequestParams::TIndexCountParams))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20052 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams" ")"); do { MOZ_CrashSequence(__null, 20052); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20048 | aParams.type() == RequestParams::TIndexGetKeyParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetKeyParams || aParams.type( ) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams ::TIndexGetAllKeysParams || aParams.type() == RequestParams:: TIndexGetAllRecordsParams || aParams.type() == RequestParams:: TIndexCountParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams .type() == RequestParams::TIndexGetAllKeysParams || aParams.type () == RequestParams::TIndexGetAllRecordsParams || aParams.type () == RequestParams::TIndexCountParams))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20052 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams" ")"); do { MOZ_CrashSequence(__null, 20052); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20049 | aParams.type() == RequestParams::TIndexGetAllParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetKeyParams || aParams.type( ) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams ::TIndexGetAllKeysParams || aParams.type() == RequestParams:: TIndexGetAllRecordsParams || aParams.type() == RequestParams:: TIndexCountParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams .type() == RequestParams::TIndexGetAllKeysParams || aParams.type () == RequestParams::TIndexGetAllRecordsParams || aParams.type () == RequestParams::TIndexCountParams))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20052 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams" ")"); do { MOZ_CrashSequence(__null, 20052); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20050 | aParams.type() == RequestParams::TIndexGetAllKeysParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetKeyParams || aParams.type( ) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams ::TIndexGetAllKeysParams || aParams.type() == RequestParams:: TIndexGetAllRecordsParams || aParams.type() == RequestParams:: TIndexCountParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams .type() == RequestParams::TIndexGetAllKeysParams || aParams.type () == RequestParams::TIndexGetAllRecordsParams || aParams.type () == RequestParams::TIndexCountParams))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20052 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams" ")"); do { MOZ_CrashSequence(__null, 20052); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20051 | aParams.type() == RequestParams::TIndexGetAllRecordsParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetKeyParams || aParams.type( ) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams ::TIndexGetAllKeysParams || aParams.type() == RequestParams:: TIndexGetAllRecordsParams || aParams.type() == RequestParams:: TIndexCountParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams .type() == RequestParams::TIndexGetAllKeysParams || aParams.type () == RequestParams::TIndexGetAllRecordsParams || aParams.type () == RequestParams::TIndexCountParams))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20052 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams" ")"); do { MOZ_CrashSequence(__null, 20052); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20052 | aParams.type() == RequestParams::TIndexCountParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetKeyParams || aParams.type( ) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams ::TIndexGetAllKeysParams || aParams.type() == RequestParams:: TIndexGetAllRecordsParams || aParams.type() == RequestParams:: TIndexCountParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams .type() == RequestParams::TIndexGetAllKeysParams || aParams.type () == RequestParams::TIndexGetAllRecordsParams || aParams.type () == RequestParams::TIndexCountParams))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20052 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams" ")"); do { MOZ_CrashSequence(__null, 20052); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20053 | |||||
| 20054 | IndexOrObjectStoreId objectStoreId; | ||||
| 20055 | IndexOrObjectStoreId indexId; | ||||
| 20056 | |||||
| 20057 | switch (aParams.type()) { | ||||
| 20058 | case RequestParams::TIndexGetParams: { | ||||
| 20059 | const IndexGetParams& params = aParams.get_IndexGetParams(); | ||||
| 20060 | objectStoreId = params.objectStoreId(); | ||||
| 20061 | indexId = params.indexId(); | ||||
| 20062 | break; | ||||
| 20063 | } | ||||
| 20064 | |||||
| 20065 | case RequestParams::TIndexGetKeyParams: { | ||||
| 20066 | const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams(); | ||||
| 20067 | objectStoreId = params.objectStoreId(); | ||||
| 20068 | indexId = params.indexId(); | ||||
| 20069 | break; | ||||
| 20070 | } | ||||
| 20071 | |||||
| 20072 | case RequestParams::TIndexGetAllParams: { | ||||
| 20073 | const IndexGetAllParams& params = aParams.get_IndexGetAllParams(); | ||||
| 20074 | objectStoreId = params.objectStoreId(); | ||||
| 20075 | indexId = params.indexId(); | ||||
| 20076 | break; | ||||
| 20077 | } | ||||
| 20078 | |||||
| 20079 | case RequestParams::TIndexGetAllKeysParams: { | ||||
| 20080 | const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams(); | ||||
| 20081 | objectStoreId = params.objectStoreId(); | ||||
| 20082 | indexId = params.indexId(); | ||||
| 20083 | break; | ||||
| 20084 | } | ||||
| 20085 | |||||
| 20086 | case RequestParams::TIndexGetAllRecordsParams: { | ||||
| 20087 | const IndexGetAllRecordsParams& params = | ||||
| 20088 | aParams.get_IndexGetAllRecordsParams(); | ||||
| 20089 | objectStoreId = params.objectStoreId(); | ||||
| 20090 | indexId = params.indexId(); | ||||
| 20091 | break; | ||||
| 20092 | } | ||||
| 20093 | |||||
| 20094 | case RequestParams::TIndexCountParams: { | ||||
| 20095 | const IndexCountParams& params = aParams.get_IndexCountParams(); | ||||
| 20096 | objectStoreId = params.objectStoreId(); | ||||
| 20097 | indexId = params.indexId(); | ||||
| 20098 | break; | ||||
| 20099 | } | ||||
| 20100 | |||||
| 20101 | default: | ||||
| 20102 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20102 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 20102); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 20103 | } | ||||
| 20104 | |||||
| 20105 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 20106 | aTransaction.GetMetadataForObjectStoreId(objectStoreId); | ||||
| 20107 | MOZ_ASSERT(objectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(objectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(objectStoreMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20107 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 20107); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20108 | |||||
| 20109 | SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 20110 | aTransaction.GetMetadataForIndexId(*objectStoreMetadata, indexId); | ||||
| 20111 | MOZ_ASSERT(indexMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(indexMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20111) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")" ); do { MOZ_CrashSequence(__null, 20111); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 20112 | |||||
| 20113 | return indexMetadata; | ||||
| 20114 | } | ||||
| 20115 | |||||
| 20116 | IndexGetRequestOp::IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 20117 | const int64_t aRequestId, | ||||
| 20118 | const RequestParams& aParams, bool aGetAll) | ||||
| 20119 | : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams), | ||||
| 20120 | mDatabase(Transaction().GetDatabasePtr()), | ||||
| 20121 | mOptionalKeyRange( | ||||
| 20122 | aGetAll ? aParams.get_IndexGetAllParams().options().optionalKeyRange() | ||||
| 20123 | : Some(aParams.get_IndexGetParams().keyRange())), | ||||
| 20124 | mBackgroundParent(Transaction().GetBackgroundParent()), | ||||
| 20125 | mLimit(aGetAll ? aParams.get_IndexGetAllParams().options().limit() : 1), | ||||
| 20126 | mDirection(aGetAll ? aParams.get_IndexGetAllParams().options().direction() | ||||
| 20127 | : IDBCursorDirection::Next), | ||||
| 20128 | mGetAll(aGetAll) { | ||||
| 20129 | MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetAllParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20130 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams" ")"); do { MOZ_CrashSequence(__null, 20130); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20130 | aParams.type() == RequestParams::TIndexGetAllParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetAllParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20130 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams" ")"); do { MOZ_CrashSequence(__null, 20130); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20131 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { MOZ_CrashSequence(__null, 20131); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20132 | MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20132 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 20132); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20133 | MOZ_ASSERT(mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mBackgroundParent)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mBackgroundParent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mBackgroundParent" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20133 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent" ")"); do { MOZ_CrashSequence(__null, 20133); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20134 | } | ||||
| 20135 | |||||
| 20136 | nsCString IndexGetRequestOp::MakeQuery() const { | ||||
| 20137 | const auto indexTable = mMetadata->mCommonMetadata.unique() | ||||
| 20138 | ? "unique_index_data "_ns | ||||
| 20139 | : "index_data "_ns; | ||||
| 20140 | if (IsUnique(mDirection) && !mMetadata->mCommonMetadata.unique()) { | ||||
| 20141 | // For nextunique/prevunique on a non-unique index, deduplicate by index key | ||||
| 20142 | // by selecting only the record with the minimum primary key for each index | ||||
| 20143 | // key. unique_index_data (mMetadata->mCommonMetadata.unique()) already | ||||
| 20144 | // enforces one record per index key, so this is only needed for | ||||
| 20145 | // index_data. | ||||
| 20146 | // Note we always use MIN regardless of the direction because we always | ||||
| 20147 | // walk the items in the same order: the difference is that prevunique | ||||
| 20148 | // prepend record while nextunique append it. See step 3 at | ||||
| 20149 | // https://w3c.github.io/IndexedDB/#retrieve-multiple-items-from-an-index | ||||
| 20150 | // nextunique: "append |rangeRecords[i]| to records." | ||||
| 20151 | // prevunique: "prepend |rangeRecords[i]| to records." | ||||
| 20152 | return "SELECT file_ids, data " | ||||
| 20153 | "FROM object_data " | ||||
| 20154 | "INNER JOIN (" | ||||
| 20155 | "SELECT object_store_id, MIN(object_data_key) AS object_data_key, " | ||||
| 20156 | "value " | ||||
| 20157 | "FROM "_ns + | ||||
| 20158 | indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + | ||||
| 20159 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, | ||||
| 20160 | kColumnNameValue) + | ||||
| 20161 | " GROUP BY value, object_store_id) AS index_table " | ||||
| 20162 | "ON object_data.object_store_id = " | ||||
| 20163 | "index_table.object_store_id " | ||||
| 20164 | "AND object_data.key = " | ||||
| 20165 | "index_table.object_data_key"_ns + | ||||
| 20166 | MakeDirectionClause(mDirection, "index_table.value"_ns) + | ||||
| 20167 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20168 | } | ||||
| 20169 | return "SELECT file_ids, data " | ||||
| 20170 | "FROM object_data " | ||||
| 20171 | "INNER JOIN "_ns + | ||||
| 20172 | indexTable + | ||||
| 20173 | "AS index_table " | ||||
| 20174 | "ON object_data.object_store_id = " | ||||
| 20175 | "index_table.object_store_id " | ||||
| 20176 | "AND object_data.key = " | ||||
| 20177 | "index_table.object_data_key " | ||||
| 20178 | "WHERE index_id = :"_ns + | ||||
| 20179 | kStmtParamNameIndexId + | ||||
| 20180 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + | ||||
| 20181 | MakeDirectionClause(mDirection, "index_table.value"_ns) + | ||||
| 20182 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20183 | } | ||||
| 20184 | |||||
| 20185 | nsresult IndexGetRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 20186 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20186); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 20186); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20187 | aConnection->AssertIsOnConnectionThread(); | ||||
| 20188 | MOZ_ASSERT_IF(!mGetAll, mOptionalKeyRange.isSome())do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20188 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 20188); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20189 | MOZ_ASSERT_IF(!mGetAll, mLimit == 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mLimit == 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLimit == 1))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mLimit == 1", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20189); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1" ")"); do { MOZ_CrashSequence(__null, 20189); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20190 | MOZ_ASSERT_IF(!mGetAll, mDirection == IDBCursorDirection::Next)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mDirection == IDBCursorDirection::Next)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mDirection == IDBCursorDirection::Next))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirection == IDBCursorDirection::Next" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20190 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirection == IDBCursorDirection::Next" ")"); do { MOZ_CrashSequence(__null, 20190); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20191 | |||||
| 20192 | AUTO_PROFILER_LABEL("IndexGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20192( "IndexGetRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 20193 | |||||
| 20194 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1506 = (aConnection->BorrowCachedStatement(MakeQuery ())); if ((__builtin_expect(!!(tryResult1506.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())" , tryResult1506.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20195, mozilla::dom::quota::Severity::Error); return tryResult1506 .propagateErr(); } const auto& stmt = tryResult1506.inspect (); | ||||
| 20195 | aConnection->BorrowCachedStatement(MakeQuery()))auto tryResult1506 = (aConnection->BorrowCachedStatement(MakeQuery ())); if ((__builtin_expect(!!(tryResult1506.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())" , tryResult1506.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20195, mozilla::dom::quota::Severity::Error); return tryResult1506 .propagateErr(); } const auto& stmt = tryResult1506.inspect ();; | ||||
| 20196 | |||||
| 20197 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1507 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult1507)::ok_type>); if ((__builtin_expect (!!(tryResult1507.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult1507.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20198, mozilla::dom::quota::Severity::Error); return tryResult1507 .propagateErr(); }} | ||||
| 20198 | mMetadata->mCommonMetadata.id()))){auto tryResult1507 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult1507)::ok_type>); if ((__builtin_expect (!!(tryResult1507.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult1507.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20198, mozilla::dom::quota::Severity::Error); return tryResult1507 .propagateErr(); }}; | ||||
| 20199 | |||||
| 20200 | if (mOptionalKeyRange.isSome()) { | ||||
| 20201 | QM_TRY(MOZ_TO_RESULT({auto tryResult1508 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect (!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20202, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }} | ||||
| 20202 | BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1508 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect (!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20202, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }}; | ||||
| 20203 | } | ||||
| 20204 | |||||
| 20205 | QM_TRY(CollectWhileHasResult({auto tryResult1511 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20209, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20212 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1511 )::ok_type>); if ((__builtin_expect(!!(tryResult1511.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20209, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }} | ||||
| 20206 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1511 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20209, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20212 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1511 )::ok_type>); if ((__builtin_expect(!!(tryResult1511.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20209, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }} | ||||
| 20207 | QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1511 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20209, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20212 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1511 )::ok_type>); if ((__builtin_expect(!!(tryResult1511.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20209, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }} | ||||
| 20208 | GetStructuredCloneReadInfoFromStatement({auto tryResult1511 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20209, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20212 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1511 )::ok_type>); if ((__builtin_expect(!!(tryResult1511.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20209, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }} | ||||
| 20209 | &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult1511 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20209, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20212 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1511 )::ok_type>); if ((__builtin_expect(!!(tryResult1511.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20209, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }} | ||||
| 20210 | |||||
| 20211 | if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1511 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20209, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20212 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1511 )::ok_type>); if ((__builtin_expect(!!(tryResult1511.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20209, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }} | ||||
| 20212 | IDB_WARNING("Preprocessing for indexes not yet implemented!");{auto tryResult1511 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20209, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20212 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1511 )::ok_type>); if ((__builtin_expect(!!(tryResult1511.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20209, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }} | ||||
| 20213 | return Err(NS_ERROR_NOT_IMPLEMENTED);{auto tryResult1511 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20209, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20212 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1511 )::ok_type>); if ((__builtin_expect(!!(tryResult1511.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20209, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }} | ||||
| 20214 | }{auto tryResult1511 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20209, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20212 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1511 )::ok_type>); if ((__builtin_expect(!!(tryResult1511.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20209, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }} | ||||
| 20215 | |||||
| 20216 | QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1511 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20209, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20212 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1511 )::ok_type>); if ((__builtin_expect(!!(tryResult1511.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20209, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }} | ||||
| 20217 | Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1511 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20209, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20212 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1511 )::ok_type>); if ((__builtin_expect(!!(tryResult1511.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20209, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }} | ||||
| 20218 | |||||
| 20219 | return Ok{};{auto tryResult1511 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20209, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20212 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1511 )::ok_type>); if ((__builtin_expect(!!(tryResult1511.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20209, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }} | ||||
| 20220 | })){auto tryResult1511 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20209, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20212 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1511 )::ok_type>); if ((__builtin_expect(!!(tryResult1511.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1509 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20209, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); } auto cloneInfo = tryResult1509.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20212); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1510 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1510.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20217, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }}; | ||||
| 20221 | |||||
| 20222 | MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20222 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { MOZ_CrashSequence(__null, 20222); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20223 | |||||
| 20224 | return NS_OK; | ||||
| 20225 | } | ||||
| 20226 | |||||
| 20227 | // XXX This is more or less a duplicate of ObjectStoreGetRequestOp::GetResponse | ||||
| 20228 | void IndexGetRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 20229 | size_t* aResponseSize) { | ||||
| 20230 | MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20230 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { MOZ_CrashSequence(__null, 20230); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20231 | |||||
| 20232 | auto convertResponse = [this](StructuredCloneReadInfoParent&& info) | ||||
| 20233 | -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { | ||||
| 20234 | SerializedStructuredCloneReadInfo result; | ||||
| 20235 | |||||
| 20236 | result.data().data = info.ReleaseData(); | ||||
| 20237 | |||||
| 20238 | QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult1512 = (SerializeStructuredCloneFiles( mDatabase , info.Files(), false)); if ((__builtin_expect(!!(tryResult1512 .isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)" , tryResult1512.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20239, mozilla::dom::quota::Severity::Error); return tryResult1512 .propagateErr(); } result.files() = tryResult1512.unwrap(); | ||||
| 20239 | mDatabase, info.Files(), false))auto tryResult1512 = (SerializeStructuredCloneFiles( mDatabase , info.Files(), false)); if ((__builtin_expect(!!(tryResult1512 .isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)" , tryResult1512.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20239, mozilla::dom::quota::Severity::Error); return tryResult1512 .propagateErr(); } result.files() = tryResult1512.unwrap();; | ||||
| 20240 | |||||
| 20241 | return result; | ||||
| 20242 | }; | ||||
| 20243 | |||||
| 20244 | if (mGetAll) { | ||||
| 20245 | aResponse = IndexGetAllResponse(); | ||||
| 20246 | *aResponseSize = 0; | ||||
| 20247 | |||||
| 20248 | if (!mResponse.IsEmpty()) { | ||||
| 20249 | QM_TRY_UNWRAP(aResponse.get_IndexGetAllResponse().cloneInfos(),auto tryResult1513 = (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(!!(tryResult1513 .isErr()), 0))) { auto tryTempError = tryResult1513.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20261, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_IndexGetAllResponse ().cloneInfos() = tryResult1513.unwrap(); | ||||
| 20250 | TransformIntoNewArrayAbortOnErr(auto tryResult1513 = (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(!!(tryResult1513 .isErr()), 0))) { auto tryTempError = tryResult1513.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20261, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_IndexGetAllResponse ().cloneInfos() = tryResult1513.unwrap(); | ||||
| 20251 | std::make_move_iterator(mResponse.begin()),auto tryResult1513 = (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(!!(tryResult1513 .isErr()), 0))) { auto tryTempError = tryResult1513.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20261, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_IndexGetAllResponse ().cloneInfos() = tryResult1513.unwrap(); | ||||
| 20252 | std::make_move_iterator(mResponse.end()),auto tryResult1513 = (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(!!(tryResult1513 .isErr()), 0))) { auto tryTempError = tryResult1513.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20261, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_IndexGetAllResponse ().cloneInfos() = tryResult1513.unwrap(); | ||||
| 20253 | [convertResponse,auto tryResult1513 = (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(!!(tryResult1513 .isErr()), 0))) { auto tryTempError = tryResult1513.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20261, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_IndexGetAllResponse ().cloneInfos() = tryResult1513.unwrap(); | ||||
| 20254 | &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult1513 = (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(!!(tryResult1513 .isErr()), 0))) { auto tryTempError = tryResult1513.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20261, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_IndexGetAllResponse ().cloneInfos() = tryResult1513.unwrap(); | ||||
| 20255 | *aResponseSize += info.Size();auto tryResult1513 = (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(!!(tryResult1513 .isErr()), 0))) { auto tryTempError = tryResult1513.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20261, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_IndexGetAllResponse ().cloneInfos() = tryResult1513.unwrap(); | ||||
| 20256 | return convertResponse(std::move(info));auto tryResult1513 = (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(!!(tryResult1513 .isErr()), 0))) { auto tryTempError = tryResult1513.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20261, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_IndexGetAllResponse ().cloneInfos() = tryResult1513.unwrap(); | ||||
| 20257 | },auto tryResult1513 = (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(!!(tryResult1513 .isErr()), 0))) { auto tryTempError = tryResult1513.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20261, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_IndexGetAllResponse ().cloneInfos() = tryResult1513.unwrap(); | ||||
| 20258 | fallible),auto tryResult1513 = (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(!!(tryResult1513 .isErr()), 0))) { auto tryTempError = tryResult1513.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20261, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_IndexGetAllResponse ().cloneInfos() = tryResult1513.unwrap(); | ||||
| 20259 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1513 = (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(!!(tryResult1513 .isErr()), 0))) { auto tryTempError = tryResult1513.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20261, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_IndexGetAllResponse ().cloneInfos() = tryResult1513.unwrap(); | ||||
| 20260 | aResponse = TransactionOpResult(result);auto tryResult1513 = (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(!!(tryResult1513 .isErr()), 0))) { auto tryTempError = tryResult1513.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20261, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_IndexGetAllResponse ().cloneInfos() = tryResult1513.unwrap(); | ||||
| 20261 | })auto tryResult1513 = (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(!!(tryResult1513 .isErr()), 0))) { auto tryTempError = tryResult1513.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20261, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } aResponse.get_IndexGetAllResponse ().cloneInfos() = tryResult1513.unwrap();; | ||||
| 20262 | } | ||||
| 20263 | |||||
| 20264 | return; | ||||
| 20265 | } | ||||
| 20266 | |||||
| 20267 | aResponse = IndexGetResponse(); | ||||
| 20268 | *aResponseSize = 0; | ||||
| 20269 | |||||
| 20270 | if (!mResponse.IsEmpty()) { | ||||
| 20271 | SerializedStructuredCloneReadInfo& serializedInfo = | ||||
| 20272 | aResponse.get_IndexGetResponse().cloneInfo(); | ||||
| 20273 | |||||
| 20274 | *aResponseSize += mResponse[0].Size(); | ||||
| 20275 | QM_TRY_UNWRAP(serializedInfo, convertResponse(std::move(mResponse[0])),auto tryResult1514 = (convertResponse(std::move(mResponse[0]) )); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { auto tryTempError = tryResult1514.unwrapErr(); mozilla::dom::quota ::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20278 , mozilla::dom::quota::Severity::Error); [&aResponse](const nsresult result) { aResponse = TransactionOpResult(result); } (tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1514.unwrap (); | ||||
| 20276 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1514 = (convertResponse(std::move(mResponse[0]) )); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { auto tryTempError = tryResult1514.unwrapErr(); mozilla::dom::quota ::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20278 , mozilla::dom::quota::Severity::Error); [&aResponse](const nsresult result) { aResponse = TransactionOpResult(result); } (tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1514.unwrap (); | ||||
| 20277 | aResponse = TransactionOpResult(result);auto tryResult1514 = (convertResponse(std::move(mResponse[0]) )); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { auto tryTempError = tryResult1514.unwrapErr(); mozilla::dom::quota ::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20278 , mozilla::dom::quota::Severity::Error); [&aResponse](const nsresult result) { aResponse = TransactionOpResult(result); } (tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1514.unwrap (); | ||||
| 20278 | })auto tryResult1514 = (convertResponse(std::move(mResponse[0]) )); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { auto tryTempError = tryResult1514.unwrapErr(); mozilla::dom::quota ::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20278 , mozilla::dom::quota::Severity::Error); [&aResponse](const nsresult result) { aResponse = TransactionOpResult(result); } (tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1514.unwrap ();; | ||||
| 20279 | } | ||||
| 20280 | } | ||||
| 20281 | |||||
| 20282 | nsCString IndexGetKeyRequestOp::MakeQuery() const { | ||||
| 20283 | const auto indexTable = mMetadata->mCommonMetadata.unique() | ||||
| 20284 | ? "unique_index_data "_ns | ||||
| 20285 | : "index_data "_ns; | ||||
| 20286 | |||||
| 20287 | if (IsUnique(mDirection) && !mMetadata->mCommonMetadata.unique()) { | ||||
| 20288 | // For nextunique/prevunique on a non-unique index, deduplicate by index key | ||||
| 20289 | // by selecting only the record with the minimum primary key for each index | ||||
| 20290 | // key. unique_index_data (mMetadata->mCommonMetadata.unique()) already | ||||
| 20291 | // enforces one record per index key, so this is only needed for | ||||
| 20292 | // index_data. | ||||
| 20293 | // Note we always use MIN regardless of the direction because we always | ||||
| 20294 | // walk the items in the same order: the difference is that prevunique | ||||
| 20295 | // prepend record while nextunique append it. See step 3 at | ||||
| 20296 | // https://w3c.github.io/IndexedDB/#retrieve-multiple-items-from-an-index | ||||
| 20297 | // nextunique: "append |rangeRecords[i]| to records." | ||||
| 20298 | // prevunique: "prepend |rangeRecords[i]| to records." | ||||
| 20299 | return "SELECT MIN(object_data_key) " | ||||
| 20300 | "FROM "_ns + | ||||
| 20301 | indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + | ||||
| 20302 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, | ||||
| 20303 | kColumnNameValue) + | ||||
| 20304 | " GROUP BY value"_ns + | ||||
| 20305 | MakeDirectionClause(mDirection, kColumnNameValue) + | ||||
| 20306 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20307 | } | ||||
| 20308 | return "SELECT object_data_key " | ||||
| 20309 | "FROM "_ns + | ||||
| 20310 | indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + | ||||
| 20311 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + | ||||
| 20312 | MakeDirectionClause(mDirection, kColumnNameValue) + | ||||
| 20313 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20314 | } | ||||
| 20315 | |||||
| 20316 | IndexGetKeyRequestOp::IndexGetKeyRequestOp( | ||||
| 20317 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 20318 | const RequestParams& aParams, bool aGetAll) | ||||
| 20319 | : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams), | ||||
| 20320 | mOptionalKeyRange( | ||||
| 20321 | aGetAll | ||||
| 20322 | ? aParams.get_IndexGetAllKeysParams().options().optionalKeyRange() | ||||
| 20323 | : Some(aParams.get_IndexGetKeyParams().keyRange())), | ||||
| 20324 | mLimit(aGetAll ? aParams.get_IndexGetAllKeysParams().options().limit() | ||||
| 20325 | : 1), | ||||
| 20326 | mDirection(aGetAll | ||||
| 20327 | ? aParams.get_IndexGetAllKeysParams().options().direction() | ||||
| 20328 | : IDBCursorDirection::Next), | ||||
| 20329 | mGetAll(aGetAll) { | ||||
| 20330 | MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetKeyParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20331 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams" ")"); do { MOZ_CrashSequence(__null, 20331); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20331 | aParams.type() == RequestParams::TIndexGetAllKeysParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20331 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams" ")"); do { MOZ_CrashSequence(__null, 20331); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20332 | MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20332 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 20332); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20333 | } | ||||
| 20334 | |||||
| 20335 | nsresult IndexGetKeyRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 20336 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20336); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 20336); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20337 | aConnection->AssertIsOnConnectionThread(); | ||||
| 20338 | MOZ_ASSERT_IF(!mGetAll, mOptionalKeyRange.isSome())do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20338 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 20338); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20339 | MOZ_ASSERT_IF(!mGetAll, mLimit == 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mLimit == 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLimit == 1))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mLimit == 1", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20339); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1" ")"); do { MOZ_CrashSequence(__null, 20339); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20340 | |||||
| 20341 | AUTO_PROFILER_LABEL("IndexGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20341( "IndexGetKeyRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 20342 | |||||
| 20343 | const bool hasKeyRange = mOptionalKeyRange.isSome(); | ||||
| 20344 | |||||
| 20345 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1515 = (aConnection->BorrowCachedStatement(MakeQuery ())); if ((__builtin_expect(!!(tryResult1515.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20346, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); } const auto& stmt = tryResult1515.inspect (); | ||||
| 20346 | aConnection->BorrowCachedStatement(MakeQuery()))auto tryResult1515 = (aConnection->BorrowCachedStatement(MakeQuery ())); if ((__builtin_expect(!!(tryResult1515.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20346, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); } const auto& stmt = tryResult1515.inspect ();; | ||||
| 20347 | |||||
| 20348 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1516 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult1516)::ok_type>); if ((__builtin_expect (!!(tryResult1516.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult1516.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20349, mozilla::dom::quota::Severity::Error); return tryResult1516 .propagateErr(); }} | ||||
| 20349 | mMetadata->mCommonMetadata.id()))){auto tryResult1516 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult1516)::ok_type>); if ((__builtin_expect (!!(tryResult1516.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult1516.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20349, mozilla::dom::quota::Severity::Error); return tryResult1516 .propagateErr(); }}; | ||||
| 20350 | |||||
| 20351 | if (hasKeyRange) { | ||||
| 20352 | QM_TRY(MOZ_TO_RESULT({auto tryResult1517 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20353, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }} | ||||
| 20353 | BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1517 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20353, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; | ||||
| 20354 | } | ||||
| 20355 | |||||
| 20356 | QM_TRY(CollectWhileHasResult({auto tryResult1520 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20359 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20360, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1520)::ok_type>); if ((__builtin_expect (!!(tryResult1520.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20359, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1519.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20360, mozilla::dom::quota::Severity::Error); return tryResult1519.propagateErr(); }}; return Ok{}; })" , tryResult1520.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20363, mozilla::dom::quota::Severity::Error); return tryResult1520 .propagateErr(); }} | ||||
| 20357 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1520 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20359 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20360, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1520)::ok_type>); if ((__builtin_expect (!!(tryResult1520.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20359, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1519.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20360, mozilla::dom::quota::Severity::Error); return tryResult1519.propagateErr(); }}; return Ok{}; })" , tryResult1520.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20363, mozilla::dom::quota::Severity::Error); return tryResult1520 .propagateErr(); }} | ||||
| 20358 | Key* const key = mResponse.AppendElement(fallible);{auto tryResult1520 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20359 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20360, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1520)::ok_type>); if ((__builtin_expect (!!(tryResult1520.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20359, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1519.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20360, mozilla::dom::quota::Severity::Error); return tryResult1519.propagateErr(); }}; return Ok{}; })" , tryResult1520.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20363, mozilla::dom::quota::Severity::Error); return tryResult1520 .propagateErr(); }} | ||||
| 20359 | QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1520 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20359 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20360, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1520)::ok_type>); if ((__builtin_expect (!!(tryResult1520.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20359, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1519.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20360, mozilla::dom::quota::Severity::Error); return tryResult1519.propagateErr(); }}; return Ok{}; })" , tryResult1520.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20363, mozilla::dom::quota::Severity::Error); return tryResult1520 .propagateErr(); }} | ||||
| 20360 | QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1520 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20359 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20360, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1520)::ok_type>); if ((__builtin_expect (!!(tryResult1520.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20359, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1519.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20360, mozilla::dom::quota::Severity::Error); return tryResult1519.propagateErr(); }}; return Ok{}; })" , tryResult1520.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20363, mozilla::dom::quota::Severity::Error); return tryResult1520 .propagateErr(); }} | ||||
| 20361 | |||||
| 20362 | return Ok{};{auto tryResult1520 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20359 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20360, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1520)::ok_type>); if ((__builtin_expect (!!(tryResult1520.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20359, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1519.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20360, mozilla::dom::quota::Severity::Error); return tryResult1519.propagateErr(); }}; return Ok{}; })" , tryResult1520.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20363, mozilla::dom::quota::Severity::Error); return tryResult1520 .propagateErr(); }} | ||||
| 20363 | })){auto tryResult1520 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20359 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20360, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1520)::ok_type>); if ((__builtin_expect (!!(tryResult1520.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1518 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20359, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1519 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1519)::ok_type>); if ((__builtin_expect(!!(tryResult1519.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1519.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20360, mozilla::dom::quota::Severity::Error); return tryResult1519.propagateErr(); }}; return Ok{}; })" , tryResult1520.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20363, mozilla::dom::quota::Severity::Error); return tryResult1520 .propagateErr(); }}; | ||||
| 20364 | |||||
| 20365 | MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20365 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { MOZ_CrashSequence(__null, 20365); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20366 | |||||
| 20367 | return NS_OK; | ||||
| 20368 | } | ||||
| 20369 | |||||
| 20370 | void IndexGetKeyRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 20371 | size_t* aResponseSize) { | ||||
| 20372 | MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20372 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { MOZ_CrashSequence(__null, 20372); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20373 | |||||
| 20374 | if (mGetAll) { | ||||
| 20375 | aResponse = IndexGetAllKeysResponse(); | ||||
| 20376 | *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u, | ||||
| 20377 | [](size_t old, const auto& entry) { | ||||
| 20378 | return old + entry.GetBuffer().Length(); | ||||
| 20379 | }); | ||||
| 20380 | |||||
| 20381 | aResponse.get_IndexGetAllKeysResponse().keys() = std::move(mResponse); | ||||
| 20382 | |||||
| 20383 | return; | ||||
| 20384 | } | ||||
| 20385 | |||||
| 20386 | aResponse = IndexGetKeyResponse(); | ||||
| 20387 | *aResponseSize = 0; | ||||
| 20388 | |||||
| 20389 | if (!mResponse.IsEmpty()) { | ||||
| 20390 | *aResponseSize = mResponse[0].GetBuffer().Length(); | ||||
| 20391 | aResponse.get_IndexGetKeyResponse().key() = std::move(mResponse[0]); | ||||
| 20392 | } | ||||
| 20393 | } | ||||
| 20394 | |||||
| 20395 | ObjectStoreGetAllRecordsRequestOp::ObjectStoreGetAllRecordsRequestOp( | ||||
| 20396 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 20397 | const RequestParams& aParams) | ||||
| 20398 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 20399 | mObjectStoreId( | ||||
| 20400 | aParams.get_ObjectStoreGetAllRecordsParams().objectStoreId()), | ||||
| 20401 | mDatabase(Transaction().GetDatabasePtr()), | ||||
| 20402 | mOptionalKeyRange(aParams.get_ObjectStoreGetAllRecordsParams() | ||||
| 20403 | .options() | ||||
| 20404 | .optionalKeyRange()), | ||||
| 20405 | mBackgroundParent(Transaction().GetBackgroundParent()), | ||||
| 20406 | mLimit(aParams.get_ObjectStoreGetAllRecordsParams().options().limit()), | ||||
| 20407 | mDirection( | ||||
| 20408 | aParams.get_ObjectStoreGetAllRecordsParams().options().direction()) { | ||||
| 20409 | MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreGetAllRecordsParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TObjectStoreGetAllRecordsParams )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetAllRecordsParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TObjectStoreGetAllRecordsParams" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20409 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetAllRecordsParams" ")"); do { MOZ_CrashSequence(__null, 20409); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20410 | MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20410 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 20410); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 20411 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20411); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { MOZ_CrashSequence(__null, 20411); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20412 | MOZ_ASSERT(mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mBackgroundParent)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mBackgroundParent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mBackgroundParent" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20412 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent" ")"); do { MOZ_CrashSequence(__null, 20412); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20413 | } | ||||
| 20414 | |||||
| 20415 | nsresult ObjectStoreGetAllRecordsRequestOp::DoDatabaseWork( | ||||
| 20416 | DatabaseConnection* aConnection) { | ||||
| 20417 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20417); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 20417); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20418 | aConnection->AssertIsOnConnectionThread(); | ||||
| 20419 | |||||
| 20420 | AUTO_PROFILER_LABEL("ObjectStoreGetAllRecordsRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20420( "ObjectStoreGetAllRecordsRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 20421 | |||||
| 20422 | const nsCString query = | ||||
| 20423 | "SELECT key, file_ids, data " | ||||
| 20424 | "FROM object_data " | ||||
| 20425 | "WHERE object_store_id = :"_ns + | ||||
| 20426 | kStmtParamNameObjectStoreId + | ||||
| 20427 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) + | ||||
| 20428 | MakeDirectionClause(mDirection) + | ||||
| 20429 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20430 | |||||
| 20431 | QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1521 = (aConnection->BorrowCachedStatement(query )); if ((__builtin_expect(!!(tryResult1521.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)" , tryResult1521.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20431, mozilla::dom::quota::Severity::Error); return tryResult1521 .propagateErr(); } const auto& stmt = tryResult1521.inspect ();; | ||||
| 20432 | |||||
| 20433 | QM_TRY(MOZ_TO_RESULT({auto tryResult1522 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1522)::ok_type>); if ((__builtin_expect (!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20434, mozilla::dom::quota::Severity::Error); return tryResult1522 .propagateErr(); }} | ||||
| 20434 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1522 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1522)::ok_type>); if ((__builtin_expect (!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20434, mozilla::dom::quota::Severity::Error); return tryResult1522 .propagateErr(); }}; | ||||
| 20435 | |||||
| 20436 | if (mOptionalKeyRange.isSome()) { | ||||
| 20437 | QM_TRY(MOZ_TO_RESULT({auto tryResult1523 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect (!!(tryResult1523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1523.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20438, mozilla::dom::quota::Severity::Error); return tryResult1523 .propagateErr(); }} | ||||
| 20438 | BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1523 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect (!!(tryResult1523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1523.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20438, mozilla::dom::quota::Severity::Error); return tryResult1523 .propagateErr(); }}; | ||||
| 20439 | } | ||||
| 20440 | |||||
| 20441 | QM_TRY(CollectWhileHasResult({auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20442 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20443 | Key* const key = mKeys.AppendElement(fallible);{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20444 | QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20445 | |||||
| 20446 | QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20447 | |||||
| 20448 | QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20449 | GetStructuredCloneReadInfoFromStatement({auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20450 | &stmt, 2, 1, mDatabase->GetFileManager()));{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20451 | if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20452 | // Bug 1942995: not implemented yet{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20453 | IDB_WARNING("Preprocessing for getAllRecords not yet implemented!");{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20454 | return Err(NS_ERROR_NOT_IMPLEMENTED);{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20455 | }{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20456 | QM_TRY(OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20457 | Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20458 | |||||
| 20459 | return Ok{};{auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }} | ||||
| 20460 | })){auto tryResult1528 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20444 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20446, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20450, mozilla::dom::quota::Severity::Error); return tryResult1526 .propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20453 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect (!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1528 )::ok_type>); if ((__builtin_expect(!!(tryResult1528.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1524 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1524.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20444, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1525 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20446, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); }}; auto tryResult1526 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1526.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20450, mozilla::dom::quota::Severity::Error); return tryResult1526.propagateErr(); } auto cloneInfo = tryResult1526.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20453); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1527 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1527)::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20457, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20460, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); }}; | ||||
| 20461 | |||||
| 20462 | return NS_OK; | ||||
| 20463 | } | ||||
| 20464 | |||||
| 20465 | void ObjectStoreGetAllRecordsRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 20466 | size_t* aResponseSize) { | ||||
| 20467 | MOZ_ASSERT(mKeys.Length() == mCloneInfos.Length())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mKeys.Length() == mCloneInfos.Length())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mKeys.Length() == mCloneInfos.Length()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mKeys.Length() == mCloneInfos.Length()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20467 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() == mCloneInfos.Length()" ")"); do { MOZ_CrashSequence(__null, 20467); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20468 | MOZ_ASSERT_IF(mLimit, mKeys.Length() <= mLimit)do { if (mLimit) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mKeys.Length() <= mLimit)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mKeys.Length() <= mLimit) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mKeys.Length() <= mLimit" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20468 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() <= mLimit" ")"); do { MOZ_CrashSequence(__null, 20468); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20469 | |||||
| 20470 | aResponse = ObjectStoreGetAllRecordsResponse(); | ||||
| 20471 | *aResponseSize = 0; | ||||
| 20472 | |||||
| 20473 | if (mKeys.IsEmpty()) { | ||||
| 20474 | return; | ||||
| 20475 | } | ||||
| 20476 | |||||
| 20477 | auto& resp = aResponse.get_ObjectStoreGetAllRecordsResponse(); | ||||
| 20478 | |||||
| 20479 | for (const auto& key : mKeys) { | ||||
| 20480 | *aResponseSize += key.GetBuffer().Length(); | ||||
| 20481 | } | ||||
| 20482 | resp.keys() = std::move(mKeys); | ||||
| 20483 | |||||
| 20484 | QM_TRY_UNWRAP(auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20485 | resp.cloneInfos(),auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20486 | TransformIntoNewArrayAbortOnErr(auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20487 | std::make_move_iterator(mCloneInfos.begin()),auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20488 | std::make_move_iterator(mCloneInfos.end()),auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20489 | [this, &aResponseSize](StructuredCloneReadInfoParent&& info)auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20490 | -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> {auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20491 | *aResponseSize += info.Size();auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20492 | return ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20493 | mDatabase, std::move(info));auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20494 | },auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20495 | fallible),auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20496 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20497 | aResponse = TransactionOpResult(result);auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap(); | ||||
| 20498 | })auto tryResult1529 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [this, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( mDatabase, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20498, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1529 .unwrap();; | ||||
| 20499 | } | ||||
| 20500 | |||||
| 20501 | IndexGetAllRecordsRequestOp::IndexGetAllRecordsRequestOp( | ||||
| 20502 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 20503 | const RequestParams& aParams) | ||||
| 20504 | : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams), | ||||
| 20505 | mDatabase(Transaction().GetDatabasePtr()), | ||||
| 20506 | mOptionalKeyRange( | ||||
| 20507 | aParams.get_IndexGetAllRecordsParams().options().optionalKeyRange()), | ||||
| 20508 | mBackgroundParent(Transaction().GetBackgroundParent()), | ||||
| 20509 | mLimit(aParams.get_IndexGetAllRecordsParams().options().limit()), | ||||
| 20510 | mDirection(aParams.get_IndexGetAllRecordsParams().options().direction()) { | ||||
| 20511 | MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetAllRecordsParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetAllRecordsParams )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TIndexGetAllRecordsParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TIndexGetAllRecordsParams", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20511) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetAllRecordsParams" ")"); do { MOZ_CrashSequence(__null, 20511); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20512 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20512); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { MOZ_CrashSequence(__null, 20512); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20513 | MOZ_ASSERT(mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mBackgroundParent)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mBackgroundParent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mBackgroundParent" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20513 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent" ")"); do { MOZ_CrashSequence(__null, 20513); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20514 | } | ||||
| 20515 | |||||
| 20516 | nsCString IndexGetAllRecordsRequestOp::MakeQuery() const { | ||||
| 20517 | const auto indexTable = mMetadata->mCommonMetadata.unique() | ||||
| 20518 | ? "unique_index_data "_ns | ||||
| 20519 | : "index_data "_ns; | ||||
| 20520 | |||||
| 20521 | if (IsUnique(mDirection) && !mMetadata->mCommonMetadata.unique()) { | ||||
| 20522 | // For nextunique/prevunique on a non-unique index, deduplicate by index | ||||
| 20523 | // key by selecting only the record with the minimum primary key for each | ||||
| 20524 | // index key. | ||||
| 20525 | // Note we always use MIN regardless of the direction because we always | ||||
| 20526 | // walk the items in the same order: the difference is that prevunique | ||||
| 20527 | // prepend record while nextunique append it. See step 3 at | ||||
| 20528 | // https://w3c.github.io/IndexedDB/#retrieve-multiple-items-from-an-index | ||||
| 20529 | // nextunique: "append |rangeRecords[i]| to records." | ||||
| 20530 | // prevunique: "prepend |rangeRecords[i]| to records." | ||||
| 20531 | return "SELECT index_table.value, object_data.key, " | ||||
| 20532 | "object_data.file_ids, object_data.data " | ||||
| 20533 | "FROM object_data " | ||||
| 20534 | "INNER JOIN (" | ||||
| 20535 | "SELECT object_store_id, MIN(object_data_key) AS object_data_key, " | ||||
| 20536 | "value " | ||||
| 20537 | "FROM "_ns + | ||||
| 20538 | indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + | ||||
| 20539 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, | ||||
| 20540 | kColumnNameValue) + | ||||
| 20541 | " GROUP BY value, object_store_id) AS index_table " | ||||
| 20542 | "ON object_data.object_store_id = " | ||||
| 20543 | "index_table.object_store_id " | ||||
| 20544 | "AND object_data.key = " | ||||
| 20545 | "index_table.object_data_key"_ns + | ||||
| 20546 | MakeDirectionClause(mDirection, "index_table.value"_ns) + | ||||
| 20547 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20548 | } | ||||
| 20549 | return "SELECT index_table.value, object_data.key, " | ||||
| 20550 | "object_data.file_ids, object_data.data " | ||||
| 20551 | "FROM object_data " | ||||
| 20552 | "INNER JOIN "_ns + | ||||
| 20553 | indexTable + | ||||
| 20554 | "AS index_table " | ||||
| 20555 | "ON object_data.object_store_id = " | ||||
| 20556 | "index_table.object_store_id " | ||||
| 20557 | "AND object_data.key = " | ||||
| 20558 | "index_table.object_data_key " | ||||
| 20559 | "WHERE index_id = :"_ns + | ||||
| 20560 | kStmtParamNameIndexId + | ||||
| 20561 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + | ||||
| 20562 | MakeDirectionClause(mDirection, "index_table.value"_ns) + | ||||
| 20563 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20564 | } | ||||
| 20565 | |||||
| 20566 | nsresult IndexGetAllRecordsRequestOp::DoDatabaseWork( | ||||
| 20567 | DatabaseConnection* aConnection) { | ||||
| 20568 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20568); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 20568); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20569 | aConnection->AssertIsOnConnectionThread(); | ||||
| 20570 | |||||
| 20571 | AUTO_PROFILER_LABEL("IndexGetAllRecordsRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20571( "IndexGetAllRecordsRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 20572 | |||||
| 20573 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1530 = (aConnection->BorrowCachedStatement(MakeQuery ())); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())" , tryResult1530.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20574, mozilla::dom::quota::Severity::Error); return tryResult1530 .propagateErr(); } const auto& stmt = tryResult1530.inspect (); | ||||
| 20574 | aConnection->BorrowCachedStatement(MakeQuery()))auto tryResult1530 = (aConnection->BorrowCachedStatement(MakeQuery ())); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())" , tryResult1530.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20574, mozilla::dom::quota::Severity::Error); return tryResult1530 .propagateErr(); } const auto& stmt = tryResult1530.inspect ();; | ||||
| 20575 | |||||
| 20576 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1531 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult1531)::ok_type>); if ((__builtin_expect (!!(tryResult1531.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult1531.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20577, mozilla::dom::quota::Severity::Error); return tryResult1531 .propagateErr(); }} | ||||
| 20577 | mMetadata->mCommonMetadata.id()))){auto tryResult1531 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult1531)::ok_type>); if ((__builtin_expect (!!(tryResult1531.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult1531.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20577, mozilla::dom::quota::Severity::Error); return tryResult1531 .propagateErr(); }}; | ||||
| 20578 | |||||
| 20579 | if (mOptionalKeyRange.isSome()) { | ||||
| 20580 | QM_TRY(MOZ_TO_RESULT({auto tryResult1532 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1532)::ok_type>); if ((__builtin_expect (!!(tryResult1532.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1532.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20581, mozilla::dom::quota::Severity::Error); return tryResult1532 .propagateErr(); }} | ||||
| 20581 | BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1532 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1532)::ok_type>); if ((__builtin_expect (!!(tryResult1532.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1532.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20581, mozilla::dom::quota::Severity::Error); return tryResult1532 .propagateErr(); }}; | ||||
| 20582 | } | ||||
| 20583 | |||||
| 20584 | QM_TRY(CollectWhileHasResult({auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20585 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20586 | Key* const key = mKeys.AppendElement(fallible);{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20587 | QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20588 | |||||
| 20589 | QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20590 | |||||
| 20591 | Key* const primaryKey = mPrimaryKeys.AppendElement(fallible);{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20592 | QM_TRY(OkIf(primaryKey), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20593 | |||||
| 20594 | QM_TRY(MOZ_TO_RESULT(primaryKey->SetFromStatement(&stmt, 1)));{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20595 | |||||
| 20596 | QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20597 | GetStructuredCloneReadInfoFromStatement({auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20598 | &stmt, 3, 2, mDatabase->GetFileManager()));{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20599 | |||||
| 20600 | if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20601 | // Bug 1942995: not implemented yet{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20602 | IDB_WARNING("Preprocessing for indexes not yet implemented!");{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20603 | return Err(NS_ERROR_NOT_IMPLEMENTED);{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20604 | }{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20605 | |||||
| 20606 | QM_TRY(OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20607 | Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20608 | |||||
| 20609 | return Ok{};{auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20610 | })){auto tryResult1539 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20587 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY )); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20589, mozilla::dom::quota::Severity::Error); return tryResult1534 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1535)::ok_type >); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20592 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err (NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1536)::ok_type >); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20594, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20598, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20602 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult1539 )::ok_type>); if ((__builtin_expect(!!(tryResult1539.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1533 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1533.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20587, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1534 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1534.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20589, mozilla::dom::quota::Severity::Error); return tryResult1534.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1535 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1535.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20592, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1536 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20594, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; auto tryResult1537 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20598, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); } auto cloneInfo = tryResult1537.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20602); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1538 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect(!!(tryResult1538.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1538.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20607, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20610, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }}; | ||||
| 20611 | |||||
| 20612 | return NS_OK; | ||||
| 20613 | } | ||||
| 20614 | |||||
| 20615 | void IndexGetAllRecordsRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 20616 | size_t* aResponseSize) { | ||||
| 20617 | MOZ_ASSERT(mKeys.Length() == mPrimaryKeys.Length())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mKeys.Length() == mPrimaryKeys.Length())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mKeys.Length() == mPrimaryKeys.Length()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mKeys.Length() == mPrimaryKeys.Length()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20617 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() == mPrimaryKeys.Length()" ")"); do { MOZ_CrashSequence(__null, 20617); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20618 | MOZ_ASSERT(mKeys.Length() == mCloneInfos.Length())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mKeys.Length() == mCloneInfos.Length())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mKeys.Length() == mCloneInfos.Length()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mKeys.Length() == mCloneInfos.Length()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20618 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() == mCloneInfos.Length()" ")"); do { MOZ_CrashSequence(__null, 20618); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20619 | MOZ_ASSERT_IF(mLimit, mKeys.Length() <= mLimit)do { if (mLimit) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mKeys.Length() <= mLimit)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mKeys.Length() <= mLimit) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mKeys.Length() <= mLimit" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20619 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() <= mLimit" ")"); do { MOZ_CrashSequence(__null, 20619); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20620 | |||||
| 20621 | aResponse = IndexGetAllRecordsResponse(); | ||||
| 20622 | *aResponseSize = 0; | ||||
| 20623 | |||||
| 20624 | if (mKeys.IsEmpty()) { | ||||
| 20625 | return; | ||||
| 20626 | } | ||||
| 20627 | |||||
| 20628 | auto& resp = aResponse.get_IndexGetAllRecordsResponse(); | ||||
| 20629 | |||||
| 20630 | for (size_t i = 0; i < mKeys.Length(); i++) { | ||||
| 20631 | *aResponseSize += | ||||
| 20632 | mKeys[i].GetBuffer().Length() + mPrimaryKeys[i].GetBuffer().Length(); | ||||
| 20633 | } | ||||
| 20634 | resp.keys() = std::move(mKeys); | ||||
| 20635 | resp.primaryKeys() = std::move(mPrimaryKeys); | ||||
| 20636 | |||||
| 20637 | QM_TRY_UNWRAP(auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20638 | resp.cloneInfos(),auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20639 | TransformIntoNewArrayAbortOnErr(auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20640 | std::make_move_iterator(mCloneInfos.begin()),auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20641 | std::make_move_iterator(mCloneInfos.end()),auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20642 | [&database = mDatabase,auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20643 | &aResponseSize](StructuredCloneReadInfoParent&& info)auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20644 | -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> {auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20645 | *aResponseSize += info.Size();auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20646 | return ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20647 | database, std::move(info));auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20648 | },auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20649 | fallible),auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20650 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20651 | aResponse = TransactionOpResult(result);auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap(); | ||||
| 20652 | })auto tryResult1540 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end ()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent && info) -> mozilla::Result<SerializedStructuredCloneReadInfo , nsresult> { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( database, std::move (info)); }, fallible)); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20652, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1540 .unwrap();; | ||||
| 20653 | } | ||||
| 20654 | |||||
| 20655 | nsresult IndexCountRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 20656 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 20656); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20657 | aConnection->AssertIsOnConnectionThread(); | ||||
| 20658 | |||||
| 20659 | AUTO_PROFILER_LABEL("IndexCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20659( "IndexCountRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 20660 | |||||
| 20661 | const auto indexTable = mMetadata->mCommonMetadata.unique() | ||||
| 20662 | ? "unique_index_data "_ns | ||||
| 20663 | : "index_data "_ns; | ||||
| 20664 | |||||
| 20665 | const auto keyRangeClause = MaybeGetBindingClauseForKeyRange( | ||||
| 20666 | mParams.optionalKeyRange(), kColumnNameValue); | ||||
| 20667 | |||||
| 20668 | QM_TRY_INSPECT(auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20669 | const auto& maybeStmt,auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20670 | aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20671 | "SELECT count(*) "auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20672 | "FROM "_ns +auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20673 | indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20674 | keyRangeClause,auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20675 | [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20676 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20677 | kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id())));auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20678 | |||||
| 20679 | if (self.mParams.optionalKeyRange().isSome()) {auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20680 | QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20681 | self.mParams.optionalKeyRange().ref(), &stmt)));auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20682 | }auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20683 | |||||
| 20684 | return Ok{};auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect(); | ||||
| 20685 | }))auto tryResult1543 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1541)::ok_type> ); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20677, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1542)::ok_type >); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20681, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1543.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 tryResult1541 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1542 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20681, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; } return Ok{}; })" , tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20685, mozilla::dom::quota::Severity::Error); return tryResult1543 .propagateErr(); } const auto& maybeStmt = tryResult1543. inspect();; | ||||
| 20686 | |||||
| 20687 | QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1544 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1544)::ok_type >); if ((__builtin_expect(!!(tryResult1544.isErr()), 0))) { auto tryTempError = tryResult1544.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20693, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20691 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20691); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20692, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20688 | [](const auto) {{auto tryResult1544 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1544)::ok_type >); if ((__builtin_expect(!!(tryResult1544.isErr()), 0))) { auto tryTempError = tryResult1544.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20693, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20691 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20691); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20692, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20689 | // XXX Why do we have an assertion here, but not at most other{auto tryResult1544 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1544)::ok_type >); if ((__builtin_expect(!!(tryResult1544.isErr()), 0))) { auto tryTempError = tryResult1544.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20693, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20691 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20691); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20692, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20690 | // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1544 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1544)::ok_type >); if ((__builtin_expect(!!(tryResult1544.isErr()), 0))) { auto tryTempError = tryResult1544.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20693, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20691 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20691); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20692, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20691 | MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1544 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1544)::ok_type >); if ((__builtin_expect(!!(tryResult1544.isErr()), 0))) { auto tryTempError = tryResult1544.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20693, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20691 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20691); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20692, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20692 | IDB_REPORT_INTERNAL_ERR();{auto tryResult1544 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1544)::ok_type >); if ((__builtin_expect(!!(tryResult1544.isErr()), 0))) { auto tryTempError = tryResult1544.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20693, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20691 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20691); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20692, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20693 | }){auto tryResult1544 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1544)::ok_type >); if ((__builtin_expect(!!(tryResult1544.isErr()), 0))) { auto tryTempError = tryResult1544.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20693, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20691 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20691); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20692, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | ||||
| 20694 | |||||
| 20695 | const auto& stmt = *maybeStmt; | ||||
| 20696 | |||||
| 20697 | const int64_t count = stmt->AsInt64(0); | ||||
| 20698 | QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult1545 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1545)::ok_type> ); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { auto tryTempError = tryResult1545.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20703, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20701 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20701); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20702, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20699 | // XXX Why do we have an assertion here, but not at most other places using{auto tryResult1545 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1545)::ok_type> ); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { auto tryTempError = tryResult1545.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20703, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20701 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20701); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20702, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20700 | // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1545 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1545)::ok_type> ); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { auto tryTempError = tryResult1545.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20703, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20701 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20701); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20702, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20701 | MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1545 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1545)::ok_type> ); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { auto tryTempError = tryResult1545.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20703, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20701 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20701); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20702, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20702 | IDB_REPORT_INTERNAL_ERR();{auto tryResult1545 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1545)::ok_type> ); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { auto tryTempError = tryResult1545.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20703, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20701 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20701); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20702, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | ||||
| 20703 | }){auto tryResult1545 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1545)::ok_type> ); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { auto tryTempError = tryResult1545.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20703, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20701 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20701); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20702, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | ||||
| 20704 | |||||
| 20705 | mResponse.count() = count; | ||||
| 20706 | |||||
| 20707 | return NS_OK; | ||||
| 20708 | } | ||||
| 20709 | |||||
| 20710 | template <IDBCursorType CursorType> | ||||
| 20711 | bool Cursor<CursorType>::CursorOpBase::SendFailureResult( | ||||
| 20712 | const TransactionOpResult& aResult) { | ||||
| 20713 | AssertIsOnOwningThread(); | ||||
| 20714 | MOZ_ASSERT(NS_FAILED(aResult.mCode))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode )), 0))))>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl (aResult.mCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode)), 0)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20714 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode)), 0)))" ")"); do { MOZ_CrashSequence(__null, 20714); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20715 | MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { MOZ_CrashSequence(__null, 20715); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 20716 | MOZ_ASSERT(mCursor->mCurrentlyRunningOp == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor->mCurrentlyRunningOp == this)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mCursor->mCurrentlyRunningOp == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mCurrentlyRunningOp == this" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20716 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this" ")"); do { MOZ_CrashSequence(__null, 20716); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20717 | MOZ_ASSERT(!mResponseSent)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mResponseSent)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mResponseSent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mResponseSent" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20717 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponseSent" ")" ); do { MOZ_CrashSequence(__null, 20717); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 20718 | |||||
| 20719 | if (!IsActorDestroyed()) { | ||||
| 20720 | mResponse = aResult.mCode; | ||||
| 20721 | |||||
| 20722 | // This is an expected race when the transaction is invalidated after | ||||
| 20723 | // data is retrieved from database. | ||||
| 20724 | // | ||||
| 20725 | // TODO: There seem to be other cases when mFiles is non-empty here, which | ||||
| 20726 | // have been present before adding cursor preloading, but with cursor | ||||
| 20727 | // preloading they have become more frequent (also during startup). One | ||||
| 20728 | // possible cause with cursor preloading is to be addressed by Bug 1597191. | ||||
| 20729 | NS_WARNING_ASSERTION(do { if (!(!mFiles.IsEmpty() && !Transaction().IsInvalidated ())) { NS_DebugBreak(NS_DEBUG_WARNING, "Expected empty mFiles when transaction has not been invalidated" , "!mFiles.IsEmpty() && !Transaction().IsInvalidated()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20731 ); } } while (false) | ||||
| 20730 | !mFiles.IsEmpty() && !Transaction().IsInvalidated(),do { if (!(!mFiles.IsEmpty() && !Transaction().IsInvalidated ())) { NS_DebugBreak(NS_DEBUG_WARNING, "Expected empty mFiles when transaction has not been invalidated" , "!mFiles.IsEmpty() && !Transaction().IsInvalidated()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20731 ); } } while (false) | ||||
| 20731 | "Expected empty mFiles when transaction has not been invalidated")do { if (!(!mFiles.IsEmpty() && !Transaction().IsInvalidated ())) { NS_DebugBreak(NS_DEBUG_WARNING, "Expected empty mFiles when transaction has not been invalidated" , "!mFiles.IsEmpty() && !Transaction().IsInvalidated()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20731 ); } } while (false); | ||||
| 20732 | |||||
| 20733 | // SendResponseInternal will assert when mResponse.type() is | ||||
| 20734 | // CursorResponse::Tnsresult and mFiles is non-empty, so we clear mFiles | ||||
| 20735 | // here. | ||||
| 20736 | mFiles.Clear(); | ||||
| 20737 | |||||
| 20738 | mCursor->SendResponseInternal(mResponse, mFiles); | ||||
| 20739 | } | ||||
| 20740 | |||||
| 20741 | #ifdef DEBUG1 | ||||
| 20742 | mResponseSent = true; | ||||
| 20743 | #endif | ||||
| 20744 | return false; | ||||
| 20745 | } | ||||
| 20746 | |||||
| 20747 | template <IDBCursorType CursorType> | ||||
| 20748 | void Cursor<CursorType>::CursorOpBase::Cleanup() { | ||||
| 20749 | AssertIsOnOwningThread(); | ||||
| 20750 | MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20750); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { MOZ_CrashSequence(__null, 20750); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 20751 | MOZ_ASSERT_IF(!IsActorDestroyed(), mResponseSent)do { if (!IsActorDestroyed()) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mResponseSent)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mResponseSent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mResponseSent", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20751); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent" ")"); do { MOZ_CrashSequence(__null, 20751); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20752 | |||||
| 20753 | mCursor = nullptr; | ||||
| 20754 | |||||
| 20755 | #ifdef DEBUG1 | ||||
| 20756 | // A bit hacky but the CursorOp request is not generated in response to a | ||||
| 20757 | // child request like most other database operations. Do this to make our | ||||
| 20758 | // assertions happy. | ||||
| 20759 | NoteActorDestroyed(); | ||||
| 20760 | #endif | ||||
| 20761 | |||||
| 20762 | TransactionDatabaseOperationBase::Cleanup(); | ||||
| 20763 | } | ||||
| 20764 | |||||
| 20765 | template <IDBCursorType CursorType> | ||||
| 20766 | ResponseSizeOrError | ||||
| 20767 | CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement( | ||||
| 20768 | mozIStorageStatement* const aStmt, const bool aInitializeResponse, | ||||
| 20769 | Key* const aOptOutSortKey) { | ||||
| 20770 | mOp.Transaction().AssertIsOnConnectionThread(); | ||||
| 20771 | MOZ_ASSERT_IF(aInitializeResponse,do { if (aInitializeResponse) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mOp.mResponse.type () == CursorResponse::T__None)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() == CursorResponse ::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mOp.mResponse.type() == CursorResponse::T__None", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 20772); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20772 | mOp.mResponse.type() == CursorResponse::T__None)do { if (aInitializeResponse) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mOp.mResponse.type () == CursorResponse::T__None)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() == CursorResponse ::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mOp.mResponse.type() == CursorResponse::T__None", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 20772); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20773 | MOZ_ASSERT_IF(!aInitializeResponse,do { if (!aInitializeResponse) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mOp.mResponse.type () != CursorResponse::T__None)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() != CursorResponse ::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mOp.mResponse.type() != CursorResponse::T__None", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20774); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 20774); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20774 | mOp.mResponse.type() != CursorResponse::T__None)do { if (!aInitializeResponse) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mOp.mResponse.type () != CursorResponse::T__None)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() != CursorResponse ::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mOp.mResponse.type() != CursorResponse::T__None", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20774); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 20774); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20775 | MOZ_ASSERT_IF(do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type( ) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp .mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(aInitializeResponse)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20780 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { MOZ_CrashSequence(__null, 20780); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20776 | mOp.mFiles.IsEmpty() &&do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type( ) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp .mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(aInitializeResponse)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20780 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { MOZ_CrashSequence(__null, 20780); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20777 | (mOp.mResponse.type() ==do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type( ) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp .mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(aInitializeResponse)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20780 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { MOZ_CrashSequence(__null, 20780); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20778 | CursorResponse::TArrayOfObjectStoreCursorResponse ||do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type( ) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp .mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(aInitializeResponse)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20780 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { MOZ_CrashSequence(__null, 20780); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20779 | mOp.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse),do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type( ) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp .mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(aInitializeResponse)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20780 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { MOZ_CrashSequence(__null, 20780); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20780 | aInitializeResponse)do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type( ) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp .mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(aInitializeResponse)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20780 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { MOZ_CrashSequence(__null, 20780); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20781 | |||||
| 20782 | auto populateResponseHelper = PopulateResponseHelper<CursorType>{mOp}; | ||||
| 20783 | auto previousKey = aOptOutSortKey
| ||||
| |||||
| 20784 | |||||
| 20785 | QM_TRY(MOZ_TO_RESULT(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))){auto tryResult1546 = (ToResult(populateResponseHelper.GetKeys (aStmt, aOptOutSortKey))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect (!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))" , tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20785, mozilla::dom::quota::Severity::Error); return tryResult1546 .propagateErr(); }}; | ||||
| 20786 | |||||
| 20787 | // aOptOutSortKey must be set iff the cursor is a unique cursor. For unique | ||||
| 20788 | // cursors, we need to skip records with the same key. The SQL queries | ||||
| 20789 | // currently do not filter these out. | ||||
| 20790 | if (aOptOutSortKey
| ||||
| 20791 | previousKey == *aOptOutSortKey) { | ||||
| 20792 | return 0; | ||||
| 20793 | } | ||||
| 20794 | |||||
| 20795 | QM_TRY(MOZ_TO_RESULT({auto tryResult1547 = (ToResult(populateResponseHelper.MaybeGetCloneInfo (aStmt, GetCursor()))); static_assert(std::is_empty_v<typename decltype(tryResult1547)::ok_type>); if ((__builtin_expect (!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))" , tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20796, mozilla::dom::quota::Severity::Error); return tryResult1547 .propagateErr(); }} | ||||
| 20796 | populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))){auto tryResult1547 = (ToResult(populateResponseHelper.MaybeGetCloneInfo (aStmt, GetCursor()))); static_assert(std::is_empty_v<typename decltype(tryResult1547)::ok_type>); if ((__builtin_expect (!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))" , tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20796, mozilla::dom::quota::Severity::Error); return tryResult1547 .propagateErr(); }}; | ||||
| 20797 | |||||
| 20798 | // CAUTION: It is important that only the part of the function above this | ||||
| 20799 | // comment may fail, and modifications to the data structure (in particular | ||||
| 20800 | // mResponse and mFiles) may only be made below. This is necessary to allow to | ||||
| 20801 | // discard entries that were attempted to be preloaded without causing an | ||||
| 20802 | // inconsistent state. | ||||
| 20803 | |||||
| 20804 | if (aInitializeResponse) { | ||||
| 20805 | mOp.mResponse = std::remove_reference_t< | ||||
| 20806 | decltype(populateResponseHelper.GetTypedResponse(&mOp.mResponse))>(); | ||||
| 20807 | } | ||||
| 20808 | |||||
| 20809 | auto& responses = populateResponseHelper.GetTypedResponse(&mOp.mResponse); | ||||
| 20810 | auto& response = *responses.AppendElement(); | ||||
| 20811 | |||||
| 20812 | populateResponseHelper.FillKeys(response); | ||||
| 20813 | if constexpr (!CursorTypeTraits<CursorType>::IsKeyOnlyCursor) { | ||||
| 20814 | populateResponseHelper.MaybeFillCloneInfo(response, &mOp.mFiles); | ||||
| 20815 | } | ||||
| 20816 | |||||
| 20817 | return populateResponseHelper.GetKeySize(response) + | ||||
| 20818 | populateResponseHelper.MaybeGetCloneInfoSize(response); | ||||
| 20819 | } | ||||
| 20820 | |||||
| 20821 | template <IDBCursorType CursorType> | ||||
| 20822 | void CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses( | ||||
| 20823 | mozIStorageStatement* const aStmt, const uint32_t aMaxExtraCount, | ||||
| 20824 | const size_t aInitialResponseSize, const nsACString& aOperation, | ||||
| 20825 | Key* const aOptPreviousSortKey) { | ||||
| 20826 | mOp.AssertIsOnConnectionThread(); | ||||
| 20827 | |||||
| 20828 | const auto extraCount = [&]() -> uint32_t { | ||||
| 20829 | auto accumulatedResponseSize = aInitialResponseSize; | ||||
| 20830 | uint32_t extraCount = 0; | ||||
| 20831 | |||||
| 20832 | do { | ||||
| 20833 | bool hasResult; | ||||
| 20834 | nsresult rv = aStmt->ExecuteStep(&hasResult); | ||||
| 20835 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20835)) { | ||||
| 20836 | // In case of a failure on one step, do not attempt to execute further | ||||
| 20837 | // steps, but use the results already populated. | ||||
| 20838 | |||||
| 20839 | break; | ||||
| 20840 | } | ||||
| 20841 | |||||
| 20842 | if (!hasResult) { | ||||
| 20843 | break; | ||||
| 20844 | } | ||||
| 20845 | |||||
| 20846 | // PopulateResponseFromStatement does not modify the data in case of | ||||
| 20847 | // failure, so we can just use the results already populated, and discard | ||||
| 20848 | // any remaining entries, and signal overall success. Probably, future | ||||
| 20849 | // attempts to access the same entry will fail as well, but it might never | ||||
| 20850 | // be accessed by the application. | ||||
| 20851 | QM_TRY_INSPECT(auto tryResult1548 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1548 .isErr()), 0))) { auto tryTempError = tryResult1548.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20862, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); [[maybe_unused]] constexpr const auto & func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult1548.inspect(); | ||||
| 20852 | const auto& responseSize,auto tryResult1548 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1548 .isErr()), 0))) { auto tryTempError = tryResult1548.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20862, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); [[maybe_unused]] constexpr const auto & func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult1548.inspect(); | ||||
| 20853 | PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey),auto tryResult1548 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1548 .isErr()), 0))) { auto tryTempError = tryResult1548.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20862, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); [[maybe_unused]] constexpr const auto & func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult1548.inspect(); | ||||
| 20854 | extraCount, [](const auto&) {auto tryResult1548 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1548 .isErr()), 0))) { auto tryTempError = tryResult1548.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20862, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); [[maybe_unused]] constexpr const auto & func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult1548.inspect(); | ||||
| 20855 | // TODO: Maybe disable preloading for this cursor? The problem willauto tryResult1548 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1548 .isErr()), 0))) { auto tryTempError = tryResult1548.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20862, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); [[maybe_unused]] constexpr const auto & func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult1548.inspect(); | ||||
| 20856 | // probably reoccur on the next attempt, and disabling preloadingauto tryResult1548 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1548 .isErr()), 0))) { auto tryTempError = tryResult1548.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20862, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); [[maybe_unused]] constexpr const auto & func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult1548.inspect(); | ||||
| 20857 | // will reduce latency. However, if some problematic entry will beauto tryResult1548 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1548 .isErr()), 0))) { auto tryTempError = tryResult1548.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20862, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); [[maybe_unused]] constexpr const auto & func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult1548.inspect(); | ||||
| 20858 | // skipped over, after that it might be fine again. To judge this,auto tryResult1548 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1548 .isErr()), 0))) { auto tryTempError = tryResult1548.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20862, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); [[maybe_unused]] constexpr const auto & func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult1548.inspect(); | ||||
| 20859 | // the causes for such failures would need to be analyzed moreauto tryResult1548 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1548 .isErr()), 0))) { auto tryTempError = tryResult1548.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20862, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); [[maybe_unused]] constexpr const auto & func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult1548.inspect(); | ||||
| 20860 | // thoroughly. Since this seems to be rare, maybe no further actionauto tryResult1548 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1548 .isErr()), 0))) { auto tryTempError = tryResult1548.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20862, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); [[maybe_unused]] constexpr const auto & func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult1548.inspect(); | ||||
| 20861 | // is necessary at all.auto tryResult1548 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1548 .isErr()), 0))) { auto tryTempError = tryResult1548.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20862, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); [[maybe_unused]] constexpr const auto & func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult1548.inspect(); | ||||
| 20862 | })auto tryResult1548 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1548 .isErr()), 0))) { auto tryTempError = tryResult1548.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20862, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); [[maybe_unused]] constexpr const auto & func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult1548.inspect();; | ||||
| 20863 | |||||
| 20864 | // Check accumulated size of individual responses and maybe break early. | ||||
| 20865 | accumulatedResponseSize += responseSize; | ||||
| 20866 | if (accumulatedResponseSize > IPC::Channel::kMaximumMessageSize / 2) { | ||||
| 20867 | 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) | ||||
| 20868 | "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) | ||||
| 20869 | "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) | ||||
| 20870 | "%.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) | ||||
| 20871 | 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) | ||||
| 20872 | 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) | ||||
| 20873 | 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) | ||||
| 20874 | 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); | ||||
| 20875 | |||||
| 20876 | break; | ||||
| 20877 | } | ||||
| 20878 | |||||
| 20879 | // TODO: Do not count entries skipped for unique cursors. | ||||
| 20880 | ++extraCount; | ||||
| 20881 | } while (true); | ||||
| 20882 | |||||
| 20883 | return extraCount; | ||||
| 20884 | }(); | ||||
| 20885 | |||||
| 20886 | 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) | ||||
| 20887 | "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) | ||||
| 20888 | "%.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) | ||||
| 20889 | 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) | ||||
| 20890 | 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) | ||||
| 20891 | 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); | ||||
| 20892 | } | ||||
| 20893 | |||||
| 20894 | template <IDBCursorType CursorType> | ||||
| 20895 | void Cursor<CursorType>::SetOptionalKeyRange( | ||||
| 20896 | const Maybe<SerializedKeyRange>& aOptionalKeyRange, bool* const aOpen) { | ||||
| 20897 | MOZ_ASSERT(aOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOpen)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aOpen))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("aOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20897); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpen" ")" ); do { MOZ_CrashSequence(__null, 20897); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 20898 | |||||
| 20899 | Key localeAwareRangeBound; | ||||
| 20900 | |||||
| 20901 | if (aOptionalKeyRange.isSome()) { | ||||
| 20902 | const SerializedKeyRange& range = aOptionalKeyRange.ref(); | ||||
| 20903 | |||||
| 20904 | const bool lowerBound = !IsIncreasingOrder(mDirection); | ||||
| 20905 | *aOpen = | ||||
| 20906 | !range.isOnly() && (lowerBound ? range.lowerOpen() : range.upperOpen()); | ||||
| 20907 | |||||
| 20908 | const auto& bound = | ||||
| 20909 | (range.isOnly() || lowerBound) ? range.lower() : range.upper(); | ||||
| 20910 | if constexpr (IsIndexCursor) { | ||||
| 20911 | if (this->IsLocaleAware()) { | ||||
| 20912 | // XXX Don't we need to propagate the error? | ||||
| 20913 | QM_TRY_UNWRAP(localeAwareRangeBound,auto tryResult1549 = (bound.ToLocaleAwareKey(this->mLocale )); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1549.unwrapErr() ; mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20914, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } localeAwareRangeBound = tryResult1549.unwrap(); | ||||
| 20914 | bound.ToLocaleAwareKey(this->mLocale), QM_VOID)auto tryResult1549 = (bound.ToLocaleAwareKey(this->mLocale )); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1549.unwrapErr() ; mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20914, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } localeAwareRangeBound = tryResult1549.unwrap();; | ||||
| 20915 | } else { | ||||
| 20916 | localeAwareRangeBound = bound; | ||||
| 20917 | } | ||||
| 20918 | } else { | ||||
| 20919 | localeAwareRangeBound = bound; | ||||
| 20920 | } | ||||
| 20921 | } else { | ||||
| 20922 | *aOpen = false; | ||||
| 20923 | } | ||||
| 20924 | |||||
| 20925 | this->mLocaleAwareRangeBound.init(std::move(localeAwareRangeBound)); | ||||
| 20926 | } | ||||
| 20927 | |||||
| 20928 | template <IDBCursorType CursorType> | ||||
| 20929 | void ObjectStoreOpenOpHelper<CursorType>::PrepareKeyConditionClauses( | ||||
| 20930 | const nsACString& aDirectionClause, const nsACString& aQueryStart) { | ||||
| 20931 | const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection); | ||||
| 20932 | |||||
| 20933 | nsAutoCString keyRangeClause; | ||||
| 20934 | nsAutoCString continueToKeyRangeClause; | ||||
| 20935 | AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey, | ||||
| 20936 | !isIncreasingOrder, false, keyRangeClause); | ||||
| 20937 | AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey, | ||||
| 20938 | !isIncreasingOrder, true, continueToKeyRangeClause); | ||||
| 20939 | |||||
| 20940 | { | ||||
| 20941 | bool open; | ||||
| 20942 | GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open); | ||||
| 20943 | |||||
| 20944 | if (GetOptionalKeyRange().isSome() && | ||||
| 20945 | !GetCursor().mLocaleAwareRangeBound->IsUnset()) { | ||||
| 20946 | AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound, | ||||
| 20947 | isIncreasingOrder, !open, keyRangeClause); | ||||
| 20948 | AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound, | ||||
| 20949 | isIncreasingOrder, !open, continueToKeyRangeClause); | ||||
| 20950 | } | ||||
| 20951 | } | ||||
| 20952 | |||||
| 20953 | const nsAutoCString suffix = | ||||
| 20954 | aDirectionClause + " LIMIT :"_ns + kStmtParamNameLimit; | ||||
| 20955 | |||||
| 20956 | GetCursor().mContinueQueries.init( | ||||
| 20957 | aQueryStart + keyRangeClause + suffix, | ||||
| 20958 | aQueryStart + continueToKeyRangeClause + suffix); | ||||
| 20959 | } | ||||
| 20960 | |||||
| 20961 | template <IDBCursorType CursorType> | ||||
| 20962 | void IndexOpenOpHelper<CursorType>::PrepareIndexKeyConditionClause( | ||||
| 20963 | const nsACString& aDirectionClause, | ||||
| 20964 | const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart) { | ||||
| 20965 | const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection); | ||||
| 20966 | |||||
| 20967 | { | ||||
| 20968 | bool open; | ||||
| 20969 | GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open); | ||||
| 20970 | if (GetOptionalKeyRange().isSome() && | ||||
| 20971 | !GetCursor().mLocaleAwareRangeBound->IsUnset()) { | ||||
| 20972 | AppendConditionClause(kColumnNameAliasSortKey, kStmtParamNameRangeBound, | ||||
| 20973 | isIncreasingOrder, !open, aQueryStart); | ||||
| 20974 | } | ||||
| 20975 | } | ||||
| 20976 | |||||
| 20977 | nsCString continueQuery, continueToQuery, continuePrimaryKeyQuery; | ||||
| 20978 | |||||
| 20979 | const ComparisonOperator comparisonOperatorStrict = | ||||
| 20980 | isIncreasingOrder ? ComparisonOperator::GreaterThan | ||||
| 20981 | : ComparisonOperator::LessThan; | ||||
| 20982 | const ComparisonOperator comparisonOperatorNonStrict = | ||||
| 20983 | isIncreasingOrder ? ComparisonOperator::GreaterOrEquals | ||||
| 20984 | : ComparisonOperator::LessOrEquals; | ||||
| 20985 | |||||
| 20986 | continueToQuery = | ||||
| 20987 | aQueryStart + " AND "_ns + | ||||
| 20988 | GetSortKeyClause(comparisonOperatorNonStrict, kStmtParamNameCurrentKey); | ||||
| 20989 | |||||
| 20990 | switch (GetCursor().mDirection) { | ||||
| 20991 | case IDBCursorDirection::Next: | ||||
| 20992 | case IDBCursorDirection::Prev: | ||||
| 20993 | continueQuery = | ||||
| 20994 | aQueryStart + " AND "_ns + | ||||
| 20995 | GetRowValueClause(kColumnNameAliasSortKey, | ||||
| 20996 | aObjectDataKeyPrefix + "object_data_key"_ns, | ||||
| 20997 | comparisonOperatorStrict, kStmtParamNameCurrentKey, | ||||
| 20998 | kStmtParamNameObjectStorePosition); | ||||
| 20999 | |||||
| 21000 | continuePrimaryKeyQuery = | ||||
| 21001 | aQueryStart + " AND "_ns + | ||||
| 21002 | GetRowValueClause(kColumnNameAliasSortKey, | ||||
| 21003 | aObjectDataKeyPrefix + "object_data_key"_ns, | ||||
| 21004 | comparisonOperatorNonStrict, | ||||
| 21005 | kStmtParamNameCurrentKey, | ||||
| 21006 | kStmtParamNameObjectStorePosition); | ||||
| 21007 | break; | ||||
| 21008 | |||||
| 21009 | case IDBCursorDirection::Nextunique: | ||||
| 21010 | case IDBCursorDirection::Prevunique: | ||||
| 21011 | continueQuery = | ||||
| 21012 | aQueryStart + " AND "_ns + | ||||
| 21013 | GetSortKeyClause(comparisonOperatorStrict, kStmtParamNameCurrentKey); | ||||
| 21014 | break; | ||||
| 21015 | |||||
| 21016 | default: | ||||
| 21017 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21017 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 21017); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 21018 | } | ||||
| 21019 | |||||
| 21020 | const nsAutoCString suffix = | ||||
| 21021 | aDirectionClause + " LIMIT :"_ns + kStmtParamNameLimit; | ||||
| 21022 | continueQuery += suffix; | ||||
| 21023 | continueToQuery += suffix; | ||||
| 21024 | if (!continuePrimaryKeyQuery.IsEmpty()) { | ||||
| 21025 | continuePrimaryKeyQuery += suffix; | ||||
| 21026 | } | ||||
| 21027 | |||||
| 21028 | GetCursor().mContinueQueries.init(std::move(continueQuery), | ||||
| 21029 | std::move(continueToQuery), | ||||
| 21030 | std::move(continuePrimaryKeyQuery)); | ||||
| 21031 | } | ||||
| 21032 | |||||
| 21033 | template <IDBCursorType CursorType> | ||||
| 21034 | nsresult CommonOpenOpHelper<CursorType>::ProcessStatementSteps( | ||||
| 21035 | mozIStorageStatement* const aStmt) { | ||||
| 21036 | QM_TRY_INSPECT(const bool& hasResult,auto tryResult1550 = (::mozilla::ToResultInvokeMember( (aStmt ), &::mozilla::detail::DerefedType<decltype(aStmt)> ::ExecuteStep )); if ((__builtin_expect(!!(tryResult1550.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep )" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21037, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); } const bool& hasResult = tryResult1550. inspect(); | ||||
| 21037 | MOZ_TO_RESULT_INVOKE_MEMBER(aStmt, ExecuteStep))auto tryResult1550 = (::mozilla::ToResultInvokeMember( (aStmt ), &::mozilla::detail::DerefedType<decltype(aStmt)> ::ExecuteStep )); if ((__builtin_expect(!!(tryResult1550.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep )" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21037, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); } const bool& hasResult = tryResult1550. inspect();; | ||||
| 21038 | |||||
| 21039 | if (!hasResult) { | ||||
| 21040 | SetResponse(void_t{}); | ||||
| 21041 | return NS_OK; | ||||
| 21042 | } | ||||
| 21043 | |||||
| 21044 | Key previousKey; | ||||
| 21045 | auto* optPreviousKey = | ||||
| 21046 | IsUnique(GetCursor().mDirection) ? &previousKey : nullptr; | ||||
| 21047 | |||||
| 21048 | QM_TRY_INSPECT(const auto& responseSize,auto tryResult1551 = (PopulateResponseFromStatement(aStmt, true , optPreviousKey)); if ((__builtin_expect(!!(tryResult1551.isErr ()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)" , tryResult1551.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21049, mozilla::dom::quota::Severity::Error); return tryResult1551 .propagateErr(); } const auto& responseSize = tryResult1551 .inspect(); | ||||
| 21049 | PopulateResponseFromStatement(aStmt, true, optPreviousKey))auto tryResult1551 = (PopulateResponseFromStatement(aStmt, true , optPreviousKey)); if ((__builtin_expect(!!(tryResult1551.isErr ()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)" , tryResult1551.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21049, mozilla::dom::quota::Severity::Error); return tryResult1551 .propagateErr(); } const auto& responseSize = tryResult1551 .inspect();; | ||||
| 21050 | |||||
| 21051 | // The degree to which extra responses on OpenOp can actually be used depends | ||||
| 21052 | // on the parameters of subsequent ContinueOp operations, see also comment in | ||||
| 21053 | // ContinueOp::DoDatabaseWork. | ||||
| 21054 | // | ||||
| 21055 | // TODO: We should somehow evaluate the effects of this. Maybe use a smaller | ||||
| 21056 | // extra count than for ContinueOp? | ||||
| 21057 | PopulateExtraResponses(aStmt, GetCursor().mMaxExtraCount, responseSize, | ||||
| 21058 | "OpenOp"_ns, optPreviousKey); | ||||
| 21059 | |||||
| 21060 | return NS_OK; | ||||
| 21061 | } | ||||
| 21062 | |||||
| 21063 | nsresult OpenOpHelper<IDBCursorType::ObjectStore>::DoDatabaseWork( | ||||
| 21064 | DatabaseConnection* aConnection) { | ||||
| 21065 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 21065); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21066 | aConnection->AssertIsOnConnectionThread(); | ||||
| 21067 | MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21067 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 21067); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21068 | |||||
| 21069 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21069( "Cursor::OpenOp::DoObjectStoreDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21070 | |||||
| 21071 | const bool usingKeyRange = GetOptionalKeyRange().isSome(); | ||||
| 21072 | |||||
| 21073 | const nsCString queryStart = "SELECT "_ns + kColumnNameKey + | ||||
| 21074 | ", file_ids, data " | ||||
| 21075 | "FROM object_data " | ||||
| 21076 | "WHERE object_store_id = :"_ns + | ||||
| 21077 | kStmtParamNameId; | ||||
| 21078 | |||||
| 21079 | const auto keyRangeClause = | ||||
| 21080 | DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | ||||
| 21081 | GetOptionalKeyRange(), kColumnNameKey); | ||||
| 21082 | |||||
| 21083 | const auto& directionClause = MakeDirectionClause(GetCursor().mDirection); | ||||
| 21084 | |||||
| 21085 | // Note: Changing the number or order of SELECT columns in the query will | ||||
| 21086 | // require changes to CursorOpBase::PopulateResponseFromStatement. | ||||
| 21087 | const nsCString firstQuery = queryStart + keyRangeClause + directionClause + | ||||
| 21088 | " LIMIT "_ns + | ||||
| 21089 | IntToCString(1 + GetCursor().mMaxExtraCount); | ||||
| 21090 | |||||
| 21091 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1552 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21092, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); } const auto& stmt = tryResult1552.inspect (); | ||||
| 21092 | aConnection->BorrowCachedStatement(firstQuery))auto tryResult1552 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21092, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); } const auto& stmt = tryResult1552.inspect ();; | ||||
| 21093 | |||||
| 21094 | QM_TRY(MOZ_TO_RESULT({auto tryResult1553 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mObjectStoreId))); static_assert(std::is_empty_v <typename decltype(tryResult1553)::ok_type>); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21095, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); }} | ||||
| 21095 | stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult1553 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mObjectStoreId))); static_assert(std::is_empty_v <typename decltype(tryResult1553)::ok_type>); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21095, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); }}; | ||||
| 21096 | |||||
| 21097 | if (usingKeyRange) { | ||||
| 21098 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1554 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1554)::ok_type> ); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1554.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21099, mozilla::dom::quota::Severity::Error); return tryResult1554 .propagateErr(); }} | ||||
| 21099 | GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1554 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1554)::ok_type> ); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1554.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21099, mozilla::dom::quota::Severity::Error); return tryResult1554 .propagateErr(); }}; | ||||
| 21100 | } | ||||
| 21101 | |||||
| 21102 | // Now we need to make the query for ContinueOp. | ||||
| 21103 | PrepareKeyConditionClauses(directionClause, queryStart); | ||||
| 21104 | |||||
| 21105 | return ProcessStatementSteps(&*stmt); | ||||
| 21106 | } | ||||
| 21107 | |||||
| 21108 | nsresult OpenOpHelper<IDBCursorType::ObjectStoreKey>::DoDatabaseWork( | ||||
| 21109 | DatabaseConnection* aConnection) { | ||||
| 21110 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21110); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 21110); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21111 | aConnection->AssertIsOnConnectionThread(); | ||||
| 21112 | MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21112 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 21112); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21113 | |||||
| 21114 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21114( "Cursor::OpenOp::DoObjectStoreKeyDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21115 | |||||
| 21116 | const bool usingKeyRange = GetOptionalKeyRange().isSome(); | ||||
| 21117 | |||||
| 21118 | const nsCString queryStart = "SELECT "_ns + kColumnNameKey + | ||||
| 21119 | " FROM object_data " | ||||
| 21120 | "WHERE object_store_id = :"_ns + | ||||
| 21121 | kStmtParamNameId; | ||||
| 21122 | |||||
| 21123 | const auto keyRangeClause = | ||||
| 21124 | DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | ||||
| 21125 | GetOptionalKeyRange(), kColumnNameKey); | ||||
| 21126 | |||||
| 21127 | const auto& directionClause = MakeDirectionClause(GetCursor().mDirection); | ||||
| 21128 | |||||
| 21129 | // Note: Changing the number or order of SELECT columns in the query will | ||||
| 21130 | // require changes to CursorOpBase::PopulateResponseFromStatement. | ||||
| 21131 | const nsCString firstQuery = | ||||
| 21132 | queryStart + keyRangeClause + directionClause + " LIMIT 1"_ns; | ||||
| 21133 | |||||
| 21134 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1555 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1555.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21135, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); } const auto& stmt = tryResult1555.inspect (); | ||||
| 21135 | aConnection->BorrowCachedStatement(firstQuery))auto tryResult1555 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1555.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21135, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); } const auto& stmt = tryResult1555.inspect ();; | ||||
| 21136 | |||||
| 21137 | QM_TRY(MOZ_TO_RESULT({auto tryResult1556 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mObjectStoreId))); static_assert(std::is_empty_v <typename decltype(tryResult1556)::ok_type>); if ((__builtin_expect (!!(tryResult1556.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))" , tryResult1556.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21138, mozilla::dom::quota::Severity::Error); return tryResult1556 .propagateErr(); }} | ||||
| 21138 | stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult1556 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mObjectStoreId))); static_assert(std::is_empty_v <typename decltype(tryResult1556)::ok_type>); if ((__builtin_expect (!!(tryResult1556.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))" , tryResult1556.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21138, mozilla::dom::quota::Severity::Error); return tryResult1556 .propagateErr(); }}; | ||||
| 21139 | |||||
| 21140 | if (usingKeyRange) { | ||||
| 21141 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1557 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21142, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }} | ||||
| 21142 | GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1557 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21142, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; | ||||
| 21143 | } | ||||
| 21144 | |||||
| 21145 | // Now we need to make the query to get the next match. | ||||
| 21146 | PrepareKeyConditionClauses(directionClause, queryStart); | ||||
| 21147 | |||||
| 21148 | return ProcessStatementSteps(&*stmt); | ||||
| 21149 | } | ||||
| 21150 | |||||
| 21151 | nsresult OpenOpHelper<IDBCursorType::Index>::DoDatabaseWork( | ||||
| 21152 | DatabaseConnection* aConnection) { | ||||
| 21153 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21153); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 21153); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21154 | aConnection->AssertIsOnConnectionThread(); | ||||
| 21155 | MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21155 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 21155); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21156 | MOZ_ASSERT(GetCursor().mIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCursor().mIndexId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(GetCursor().mIndexId))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mIndexId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21156 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId" ")"); do { MOZ_CrashSequence(__null, 21156); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21157 | |||||
| 21158 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21158( "Cursor::OpenOp::DoIndexDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21159 | |||||
| 21160 | const bool usingKeyRange = GetOptionalKeyRange().isSome(); | ||||
| 21161 | |||||
| 21162 | const auto indexTable = | ||||
| 21163 | GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns; | ||||
| 21164 | |||||
| 21165 | // The result of MakeColumnPairSelectionList is stored in a local variable, | ||||
| 21166 | // since inlining it into the next statement causes a crash on some Mac OS X | ||||
| 21167 | // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110). | ||||
| 21168 | const auto columnPairSelectionList = MakeColumnPairSelectionList( | ||||
| 21169 | "index_table.value"_ns, "index_table.value_locale"_ns, | ||||
| 21170 | kColumnNameAliasSortKey, GetCursor().IsLocaleAware()); | ||||
| 21171 | const nsCString sortColumnAlias = | ||||
| 21172 | "SELECT "_ns + columnPairSelectionList + ", "_ns; | ||||
| 21173 | |||||
| 21174 | const nsAutoCString queryStart = sortColumnAlias + | ||||
| 21175 | "index_table.object_data_key, " | ||||
| 21176 | "object_data.file_ids, " | ||||
| 21177 | "object_data.data " | ||||
| 21178 | "FROM "_ns + | ||||
| 21179 | indexTable + | ||||
| 21180 | " AS index_table " | ||||
| 21181 | "JOIN object_data " | ||||
| 21182 | "ON index_table.object_store_id = " | ||||
| 21183 | "object_data.object_store_id " | ||||
| 21184 | "AND index_table.object_data_key = " | ||||
| 21185 | "object_data.key " | ||||
| 21186 | "WHERE index_table.index_id = :"_ns + | ||||
| 21187 | kStmtParamNameId; | ||||
| 21188 | |||||
| 21189 | const auto keyRangeClause = | ||||
| 21190 | DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | ||||
| 21191 | GetOptionalKeyRange(), kColumnNameAliasSortKey); | ||||
| 21192 | |||||
| 21193 | nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey; | ||||
| 21194 | |||||
| 21195 | switch (GetCursor().mDirection) { | ||||
| 21196 | case IDBCursorDirection::Next: | ||||
| 21197 | case IDBCursorDirection::Nextunique: | ||||
| 21198 | directionClause.AppendLiteral(" ASC, index_table.object_data_key ASC"); | ||||
| 21199 | break; | ||||
| 21200 | |||||
| 21201 | case IDBCursorDirection::Prev: | ||||
| 21202 | directionClause.AppendLiteral(" DESC, index_table.object_data_key DESC"); | ||||
| 21203 | break; | ||||
| 21204 | |||||
| 21205 | case IDBCursorDirection::Prevunique: | ||||
| 21206 | directionClause.AppendLiteral(" DESC, index_table.object_data_key ASC"); | ||||
| 21207 | break; | ||||
| 21208 | |||||
| 21209 | default: | ||||
| 21210 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21210 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 21210); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 21211 | } | ||||
| 21212 | |||||
| 21213 | // Note: Changing the number or order of SELECT columns in the query will | ||||
| 21214 | // require changes to CursorOpBase::PopulateResponseFromStatement. | ||||
| 21215 | const nsCString firstQuery = queryStart + keyRangeClause + directionClause + | ||||
| 21216 | " LIMIT "_ns + | ||||
| 21217 | IntToCString(1 + GetCursor().mMaxExtraCount); | ||||
| 21218 | |||||
| 21219 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1558 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21220, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); } const auto& stmt = tryResult1558.inspect (); | ||||
| 21220 | aConnection->BorrowCachedStatement(firstQuery))auto tryResult1558 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21220, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); } const auto& stmt = tryResult1558.inspect ();; | ||||
| 21221 | |||||
| 21222 | QM_TRY(MOZ_TO_RESULT({auto tryResult1559 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1559)::ok_type>); if ((__builtin_expect (!!(tryResult1559.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21223, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); }} | ||||
| 21223 | stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult1559 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1559)::ok_type>); if ((__builtin_expect (!!(tryResult1559.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21223, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); }}; | ||||
| 21224 | |||||
| 21225 | if (usingKeyRange) { | ||||
| 21226 | if (GetCursor().IsLocaleAware()) { | ||||
| 21227 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1560 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1560 )::ok_type>); if ((__builtin_expect(!!(tryResult1560.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))" , tryResult1560.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21228, mozilla::dom::quota::Severity::Error); return tryResult1560 .propagateErr(); }} | ||||
| 21228 | GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult1560 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1560 )::ok_type>); if ((__builtin_expect(!!(tryResult1560.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))" , tryResult1560.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21228, mozilla::dom::quota::Severity::Error); return tryResult1560 .propagateErr(); }}; | ||||
| 21229 | } else { | ||||
| 21230 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1561 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1561)::ok_type> ); if ((__builtin_expect(!!(tryResult1561.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1561.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21231, mozilla::dom::quota::Severity::Error); return tryResult1561 .propagateErr(); }} | ||||
| 21231 | GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1561 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1561)::ok_type> ); if ((__builtin_expect(!!(tryResult1561.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1561.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21231, mozilla::dom::quota::Severity::Error); return tryResult1561 .propagateErr(); }}; | ||||
| 21232 | } | ||||
| 21233 | } | ||||
| 21234 | |||||
| 21235 | // TODO: At least the last two statements are almost the same in all | ||||
| 21236 | // DoDatabaseWork variants, consider removing this duplication. | ||||
| 21237 | |||||
| 21238 | // Now we need to make the query to get the next match. | ||||
| 21239 | PrepareKeyConditionClauses(directionClause, std::move(queryStart)); | ||||
| 21240 | |||||
| 21241 | return ProcessStatementSteps(&*stmt); | ||||
| 21242 | } | ||||
| 21243 | |||||
| 21244 | nsresult OpenOpHelper<IDBCursorType::IndexKey>::DoDatabaseWork( | ||||
| 21245 | DatabaseConnection* aConnection) { | ||||
| 21246 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21246); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 21246); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21247 | aConnection->AssertIsOnConnectionThread(); | ||||
| 21248 | MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21248 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 21248); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21249 | MOZ_ASSERT(GetCursor().mIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCursor().mIndexId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(GetCursor().mIndexId))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mIndexId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21249 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId" ")"); do { MOZ_CrashSequence(__null, 21249); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21250 | |||||
| 21251 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21251( "Cursor::OpenOp::DoIndexKeyDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21252 | |||||
| 21253 | const bool usingKeyRange = GetOptionalKeyRange().isSome(); | ||||
| 21254 | |||||
| 21255 | const auto table = | ||||
| 21256 | GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns; | ||||
| 21257 | |||||
| 21258 | // The result of MakeColumnPairSelectionList is stored in a local variable, | ||||
| 21259 | // since inlining it into the next statement causes a crash on some Mac OS X | ||||
| 21260 | // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110). | ||||
| 21261 | const auto columnPairSelectionList = MakeColumnPairSelectionList( | ||||
| 21262 | "value"_ns, "value_locale"_ns, kColumnNameAliasSortKey, | ||||
| 21263 | GetCursor().IsLocaleAware()); | ||||
| 21264 | const nsCString sortColumnAlias = | ||||
| 21265 | "SELECT "_ns + columnPairSelectionList + ", "_ns; | ||||
| 21266 | |||||
| 21267 | const nsAutoCString queryStart = sortColumnAlias + | ||||
| 21268 | "object_data_key " | ||||
| 21269 | " FROM "_ns + | ||||
| 21270 | table + " WHERE index_id = :"_ns + | ||||
| 21271 | kStmtParamNameId; | ||||
| 21272 | |||||
| 21273 | const auto keyRangeClause = | ||||
| 21274 | DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | ||||
| 21275 | GetOptionalKeyRange(), kColumnNameAliasSortKey); | ||||
| 21276 | |||||
| 21277 | nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey; | ||||
| 21278 | |||||
| 21279 | switch (GetCursor().mDirection) { | ||||
| 21280 | case IDBCursorDirection::Next: | ||||
| 21281 | case IDBCursorDirection::Nextunique: | ||||
| 21282 | directionClause.AppendLiteral(" ASC, object_data_key ASC"); | ||||
| 21283 | break; | ||||
| 21284 | |||||
| 21285 | case IDBCursorDirection::Prev: | ||||
| 21286 | directionClause.AppendLiteral(" DESC, object_data_key DESC"); | ||||
| 21287 | break; | ||||
| 21288 | |||||
| 21289 | case IDBCursorDirection::Prevunique: | ||||
| 21290 | directionClause.AppendLiteral(" DESC, object_data_key ASC"); | ||||
| 21291 | break; | ||||
| 21292 | |||||
| 21293 | default: | ||||
| 21294 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21294 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 21294); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 21295 | } | ||||
| 21296 | |||||
| 21297 | // Note: Changing the number or order of SELECT columns in the query will | ||||
| 21298 | // require changes to CursorOpBase::PopulateResponseFromStatement. | ||||
| 21299 | const nsCString firstQuery = | ||||
| 21300 | queryStart + keyRangeClause + directionClause + " LIMIT 1"_ns; | ||||
| 21301 | |||||
| 21302 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1562 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1562.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1562.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21303, mozilla::dom::quota::Severity::Error); return tryResult1562 .propagateErr(); } const auto& stmt = tryResult1562.inspect (); | ||||
| 21303 | aConnection->BorrowCachedStatement(firstQuery))auto tryResult1562 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1562.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1562.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21303, mozilla::dom::quota::Severity::Error); return tryResult1562 .propagateErr(); } const auto& stmt = tryResult1562.inspect ();; | ||||
| 21304 | |||||
| 21305 | QM_TRY(MOZ_TO_RESULT({auto tryResult1563 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1563)::ok_type>); if ((__builtin_expect (!!(tryResult1563.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))" , tryResult1563.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21306, mozilla::dom::quota::Severity::Error); return tryResult1563 .propagateErr(); }} | ||||
| 21306 | stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult1563 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1563)::ok_type>); if ((__builtin_expect (!!(tryResult1563.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))" , tryResult1563.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21306, mozilla::dom::quota::Severity::Error); return tryResult1563 .propagateErr(); }}; | ||||
| 21307 | |||||
| 21308 | if (usingKeyRange) { | ||||
| 21309 | if (GetCursor().IsLocaleAware()) { | ||||
| 21310 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1564 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1564 )::ok_type>); if ((__builtin_expect(!!(tryResult1564.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))" , tryResult1564.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21311, mozilla::dom::quota::Severity::Error); return tryResult1564 .propagateErr(); }} | ||||
| 21311 | GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult1564 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1564 )::ok_type>); if ((__builtin_expect(!!(tryResult1564.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))" , tryResult1564.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21311, mozilla::dom::quota::Severity::Error); return tryResult1564 .propagateErr(); }}; | ||||
| 21312 | } else { | ||||
| 21313 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1565 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1565)::ok_type> ); if ((__builtin_expect(!!(tryResult1565.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1565.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21314, mozilla::dom::quota::Severity::Error); return tryResult1565 .propagateErr(); }} | ||||
| 21314 | GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1565 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1565)::ok_type> ); if ((__builtin_expect(!!(tryResult1565.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1565.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21314, mozilla::dom::quota::Severity::Error); return tryResult1565 .propagateErr(); }}; | ||||
| 21315 | } | ||||
| 21316 | } | ||||
| 21317 | |||||
| 21318 | // Now we need to make the query to get the next match. | ||||
| 21319 | PrepareKeyConditionClauses(directionClause, std::move(queryStart)); | ||||
| 21320 | |||||
| 21321 | return ProcessStatementSteps(&*stmt); | ||||
| 21322 | } | ||||
| 21323 | |||||
| 21324 | template <IDBCursorType CursorType> | ||||
| 21325 | nsresult Cursor<CursorType>::OpenOp::DoDatabaseWork( | ||||
| 21326 | DatabaseConnection* aConnection) { | ||||
| 21327 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21327); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 21327); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| |||||
| 21328 | aConnection->AssertIsOnConnectionThread(); | ||||
| 21329 | MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21329); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { MOZ_CrashSequence(__null, 21329); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21330 | MOZ_ASSERT(!mCursor->mContinueQueries)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCursor->mContinueQueries)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mCursor->mContinueQueries ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!mCursor->mContinueQueries", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21330); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries" ")"); do { MOZ_CrashSequence(__null, 21330); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21331 | |||||
| 21332 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21332( "Cursor::OpenOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21333 | |||||
| 21334 | auto helper = OpenOpHelper<CursorType>{*this}; | ||||
| 21335 | const auto rv = helper.DoDatabaseWork(aConnection); | ||||
| 21336 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21336)) { | ||||
| 21337 | return rv; | ||||
| 21338 | } | ||||
| 21339 | |||||
| 21340 | return NS_OK; | ||||
| 21341 | } | ||||
| 21342 | |||||
| 21343 | template <IDBCursorType CursorType> | ||||
| 21344 | TransactionOpResult Cursor<CursorType>::CursorOpBase::SendSuccessResult() { | ||||
| 21345 | AssertIsOnOwningThread(); | ||||
| 21346 | MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21346); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { MOZ_CrashSequence(__null, 21346); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21347 | MOZ_ASSERT(mCursor->mCurrentlyRunningOp == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor->mCurrentlyRunningOp == this)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mCursor->mCurrentlyRunningOp == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mCurrentlyRunningOp == this" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21347 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this" ")"); do { MOZ_CrashSequence(__null, 21347); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21348 | MOZ_ASSERT(mResponse.type() != CursorResponse::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mResponse.type() != CursorResponse::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mResponse.type() != CursorResponse::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.type() != CursorResponse::T__None" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21348 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.type() != CursorResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 21348); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21349 | |||||
| 21350 | if (IsActorDestroyed()) { | ||||
| 21351 | return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR; | ||||
| 21352 | } | ||||
| 21353 | |||||
| 21354 | mCursor->SendResponseInternal(mResponse, mFiles); | ||||
| 21355 | |||||
| 21356 | #ifdef DEBUG1 | ||||
| 21357 | mResponseSent = true; | ||||
| 21358 | #endif | ||||
| 21359 | return NS_OK; | ||||
| 21360 | } | ||||
| 21361 | |||||
| 21362 | template <IDBCursorType CursorType> | ||||
| 21363 | nsresult Cursor<CursorType>::ContinueOp::DoDatabaseWork( | ||||
| 21364 | DatabaseConnection* aConnection) { | ||||
| 21365 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21365); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 21365); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21366 | aConnection->AssertIsOnConnectionThread(); | ||||
| 21367 | MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21367); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { MOZ_CrashSequence(__null, 21367); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21368 | MOZ_ASSERT(mCursor->mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor->mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor->mObjectStoreId)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mObjectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21368 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 21368); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21369 | MOZ_ASSERT(!mCursor->mContinueQueries->mContinueQuery.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCursor->mContinueQueries->mContinueQuery.IsEmpty ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mCursor->mContinueQueries->mContinueQuery.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCursor->mContinueQueries->mContinueQuery.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21369 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueQuery.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 21369); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21370 | MOZ_ASSERT(!mCursor->mContinueQueries->mContinueToQuery.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCursor->mContinueQueries->mContinueToQuery.IsEmpty ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mCursor->mContinueQueries->mContinueToQuery.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCursor->mContinueQueries->mContinueToQuery.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21370 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueToQuery.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 21370); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21371 | MOZ_ASSERT(!mCurrentPosition.mKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCurrentPosition.mKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mCurrentPosition.mKey.IsUnset ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCurrentPosition.mKey.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21371); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mKey.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 21371); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21372 | |||||
| 21373 | if constexpr (IsIndexCursor) { | ||||
| 21374 | MOZ_ASSERT_IF(do { if (mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(!mCursor ->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery .IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21377 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 21377); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 21375 | mCursor->mDirection == IDBCursorDirection::Next ||do { if (mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(!mCursor ->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery .IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21377 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 21377); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 21376 | mCursor->mDirection == IDBCursorDirection::Prev,do { if (mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(!mCursor ->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery .IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21377 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 21377); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 21377 | !mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty())do { if (mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(!mCursor ->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery .IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21377 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 21377); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 21378 | MOZ_ASSERT(mCursor->mIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor->mIndexId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor->mIndexId))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mIndexId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21378 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mIndexId" ")"); do { MOZ_CrashSequence(__null, 21378); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21379 | MOZ_ASSERT(!mCurrentPosition.mObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCurrentPosition.mObjectStoreKey.IsUnset())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mCurrentPosition.mObjectStoreKey.IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mCurrentPosition.mObjectStoreKey.IsUnset()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21379 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mObjectStoreKey.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 21379); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21380 | } | ||||
| 21381 | |||||
| 21382 | AUTO_PROFILER_LABEL("Cursor::ContinueOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21382( "Cursor::ContinueOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21383 | |||||
| 21384 | // We need to pick a query based on whether or not a key was passed to the | ||||
| 21385 | // continue function. If not we'll grab the next item in the database that | ||||
| 21386 | // is greater than (or less than, if we're running a PREV cursor) the current | ||||
| 21387 | // key. If a key was passed we'll grab the next item in the database that is | ||||
| 21388 | // greater than (or less than, if we're running a PREV cursor) or equal to the | ||||
| 21389 | // key that was specified. | ||||
| 21390 | // | ||||
| 21391 | // TODO: The description above is not complete, it does not take account of | ||||
| 21392 | // ContinuePrimaryKey nor Advance. | ||||
| 21393 | // | ||||
| 21394 | // Note: Changing the number or order of SELECT columns in the query will | ||||
| 21395 | // require changes to CursorOpBase::PopulateResponseFromStatement. | ||||
| 21396 | |||||
| 21397 | const uint32_t advanceCount = | ||||
| 21398 | mParams.type() == CursorRequestParams::TAdvanceParams | ||||
| 21399 | ? mParams.get_AdvanceParams().count() | ||||
| 21400 | : 1; | ||||
| 21401 | MOZ_ASSERT(advanceCount > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(advanceCount > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(advanceCount > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("advanceCount > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21401 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "advanceCount > 0" ")"); do { MOZ_CrashSequence(__null, 21401); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21402 | |||||
| 21403 | bool hasContinueKey = false; | ||||
| 21404 | bool hasContinuePrimaryKey = false; | ||||
| 21405 | |||||
| 21406 | auto explicitContinueKey = Key{}; | ||||
| 21407 | |||||
| 21408 | switch (mParams.type()) { | ||||
| 21409 | case CursorRequestParams::TContinueParams: | ||||
| 21410 | if (!mParams.get_ContinueParams().key().IsUnset()) { | ||||
| 21411 | hasContinueKey = true; | ||||
| 21412 | explicitContinueKey = mParams.get_ContinueParams().key(); | ||||
| 21413 | } | ||||
| 21414 | break; | ||||
| 21415 | case CursorRequestParams::TContinuePrimaryKeyParams: | ||||
| 21416 | MOZ_ASSERT(!mParams.get_ContinuePrimaryKeyParams().key().IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mParams.get_ContinuePrimaryKeyParams().key().IsUnset ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mParams.get_ContinuePrimaryKeyParams().key().IsUnset ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mParams.get_ContinuePrimaryKeyParams().key().IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21416); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().key().IsUnset()" ")"); do { MOZ_CrashSequence(__null, 21416); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21417 | MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mParams.get_ContinuePrimaryKeyParams().primaryKey() .IsUnset())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!mParams.get_ContinuePrimaryKeyParams ().primaryKey().IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21418 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()" ")"); do { MOZ_CrashSequence(__null, 21418); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 21418 | !mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mParams.get_ContinuePrimaryKeyParams().primaryKey() .IsUnset())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!mParams.get_ContinuePrimaryKeyParams ().primaryKey().IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21418 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()" ")"); do { MOZ_CrashSequence(__null, 21418); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21419 | MOZ_ASSERT(mCursor->mDirection == IDBCursorDirection::Next ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mCursor->mDirection == IDBCursorDirection::Next || mCursor ->mDirection == IDBCursorDirection::Prev))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21420 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev" ")"); do { MOZ_CrashSequence(__null, 21420); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 21420 | mCursor->mDirection == IDBCursorDirection::Prev)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mCursor->mDirection == IDBCursorDirection::Next || mCursor ->mDirection == IDBCursorDirection::Prev))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21420 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev" ")"); do { MOZ_CrashSequence(__null, 21420); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21421 | hasContinueKey = true; | ||||
| 21422 | hasContinuePrimaryKey = true; | ||||
| 21423 | explicitContinueKey = mParams.get_ContinuePrimaryKeyParams().key(); | ||||
| 21424 | break; | ||||
| 21425 | case CursorRequestParams::TAdvanceParams: | ||||
| 21426 | break; | ||||
| 21427 | default: | ||||
| 21428 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21428 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 21428); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 21429 | } | ||||
| 21430 | |||||
| 21431 | // TODO: Whether it makes sense to preload depends on the kind of the | ||||
| 21432 | // subsequent operations, not of the current operation. We could assume that | ||||
| 21433 | // the subsequent operations are: | ||||
| 21434 | // - the same as the current operation (with the same parameter values) | ||||
| 21435 | // - as above, except for Advance, where we assume the count will be 1 on the | ||||
| 21436 | // next call | ||||
| 21437 | // - basic operations (Advance with count 1 or Continue-without-key) | ||||
| 21438 | // | ||||
| 21439 | // For now, we implement the second option for now (which correspond to | ||||
| 21440 | // !hasContinueKey). | ||||
| 21441 | // | ||||
| 21442 | // Based on that, we could in both cases either preload for any assumed | ||||
| 21443 | // subsequent operations, or only for the basic operations. For now, we | ||||
| 21444 | // preload only for an assumed basic operation. Other operations would require | ||||
| 21445 | // more work on the client side for invalidation, and may not make any sense | ||||
| 21446 | // at all. | ||||
| 21447 | const uint32_t maxExtraCount = hasContinueKey ? 0 : mCursor->mMaxExtraCount; | ||||
| 21448 | |||||
| 21449 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1566 = (aConnection->BorrowCachedStatement( mCursor ->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey ))); if ((__builtin_expect(!!(tryResult1566.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))" , tryResult1566.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21452, mozilla::dom::quota::Severity::Error); return tryResult1566 .propagateErr(); } const auto& stmt = tryResult1566.inspect (); | ||||
| 21450 | aConnection->BorrowCachedStatement(auto tryResult1566 = (aConnection->BorrowCachedStatement( mCursor ->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey ))); if ((__builtin_expect(!!(tryResult1566.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))" , tryResult1566.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21452, mozilla::dom::quota::Severity::Error); return tryResult1566 .propagateErr(); } const auto& stmt = tryResult1566.inspect (); | ||||
| 21451 | mCursor->mContinueQueries->GetContinueQuery(auto tryResult1566 = (aConnection->BorrowCachedStatement( mCursor ->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey ))); if ((__builtin_expect(!!(tryResult1566.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))" , tryResult1566.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21452, mozilla::dom::quota::Severity::Error); return tryResult1566 .propagateErr(); } const auto& stmt = tryResult1566.inspect (); | ||||
| 21452 | hasContinueKey, hasContinuePrimaryKey)))auto tryResult1566 = (aConnection->BorrowCachedStatement( mCursor ->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey ))); if ((__builtin_expect(!!(tryResult1566.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))" , tryResult1566.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21452, mozilla::dom::quota::Severity::Error); return tryResult1566 .propagateErr(); } const auto& stmt = tryResult1566.inspect ();; | ||||
| 21453 | |||||
| 21454 | QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByName({auto tryResult1567 = (ToResult(stmt->BindUTF8StringByName ( kStmtParamNameLimit, IntToCString(advanceCount + mCursor-> mMaxExtraCount)))); static_assert(std::is_empty_v<typename decltype(tryResult1567)::ok_type>); if ((__builtin_expect (!!(tryResult1567.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))" , tryResult1567.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21456, mozilla::dom::quota::Severity::Error); return tryResult1567 .propagateErr(); }} | ||||
| 21455 | kStmtParamNameLimit,{auto tryResult1567 = (ToResult(stmt->BindUTF8StringByName ( kStmtParamNameLimit, IntToCString(advanceCount + mCursor-> mMaxExtraCount)))); static_assert(std::is_empty_v<typename decltype(tryResult1567)::ok_type>); if ((__builtin_expect (!!(tryResult1567.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))" , tryResult1567.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21456, mozilla::dom::quota::Severity::Error); return tryResult1567 .propagateErr(); }} | ||||
| 21456 | IntToCString(advanceCount + mCursor->mMaxExtraCount)))){auto tryResult1567 = (ToResult(stmt->BindUTF8StringByName ( kStmtParamNameLimit, IntToCString(advanceCount + mCursor-> mMaxExtraCount)))); static_assert(std::is_empty_v<typename decltype(tryResult1567)::ok_type>); if ((__builtin_expect (!!(tryResult1567.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))" , tryResult1567.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21456, mozilla::dom::quota::Severity::Error); return tryResult1567 .propagateErr(); }}; | ||||
| 21457 | |||||
| 21458 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))){auto tryResult1568 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , mCursor->Id()))); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect (!!(tryResult1568.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))" , tryResult1568.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21458, mozilla::dom::quota::Severity::Error); return tryResult1568 .propagateErr(); }}; | ||||
| 21459 | |||||
| 21460 | // Bind current key. | ||||
| 21461 | const auto& continueKey = | ||||
| 21462 | hasContinueKey ? explicitContinueKey | ||||
| 21463 | : mCurrentPosition.GetSortKey(mCursor->IsLocaleAware()); | ||||
| 21464 | QM_TRY(MOZ_TO_RESULT({auto tryResult1569 = (ToResult(continueKey.BindToStatement(& *stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v <typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect (!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))" , tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21465, mozilla::dom::quota::Severity::Error); return tryResult1569 .propagateErr(); }} | ||||
| 21465 | continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))){auto tryResult1569 = (ToResult(continueKey.BindToStatement(& *stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v <typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect (!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))" , tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21465, mozilla::dom::quota::Severity::Error); return tryResult1569 .propagateErr(); }}; | ||||
| 21466 | |||||
| 21467 | // Bind range bound if it is specified. | ||||
| 21468 | if (!mCursor->mLocaleAwareRangeBound->IsUnset()) { | ||||
| 21469 | QM_TRY(MOZ_TO_RESULT(mCursor->mLocaleAwareRangeBound->BindToStatement({auto tryResult1570 = (ToResult(mCursor->mLocaleAwareRangeBound ->BindToStatement( &*stmt, kStmtParamNameRangeBound))) ; static_assert(std::is_empty_v<typename decltype(tryResult1570 )::ok_type>); if ((__builtin_expect(!!(tryResult1570.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))" , tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21470, mozilla::dom::quota::Severity::Error); return tryResult1570 .propagateErr(); }} | ||||
| 21470 | &*stmt, kStmtParamNameRangeBound))){auto tryResult1570 = (ToResult(mCursor->mLocaleAwareRangeBound ->BindToStatement( &*stmt, kStmtParamNameRangeBound))) ; static_assert(std::is_empty_v<typename decltype(tryResult1570 )::ok_type>); if ((__builtin_expect(!!(tryResult1570.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))" , tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21470, mozilla::dom::quota::Severity::Error); return tryResult1570 .propagateErr(); }}; | ||||
| 21471 | } | ||||
| 21472 | |||||
| 21473 | // Bind object store position if duplicates are allowed and we're not | ||||
| 21474 | // continuing to a specific key. | ||||
| 21475 | if constexpr (IsIndexCursor) { | ||||
| 21476 | if (!hasContinueKey && (mCursor->mDirection == IDBCursorDirection::Next || | ||||
| 21477 | mCursor->mDirection == IDBCursorDirection::Prev)) { | ||||
| 21478 | QM_TRY(MOZ_TO_RESULT(mCurrentPosition.mObjectStoreKey.BindToStatement({auto tryResult1571 = (ToResult(mCurrentPosition.mObjectStoreKey .BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult1571 )::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult1571.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21479, mozilla::dom::quota::Severity::Error); return tryResult1571 .propagateErr(); }} | ||||
| 21479 | &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult1571 = (ToResult(mCurrentPosition.mObjectStoreKey .BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult1571 )::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult1571.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21479, mozilla::dom::quota::Severity::Error); return tryResult1571 .propagateErr(); }}; | ||||
| 21480 | } else if (hasContinuePrimaryKey) { | ||||
| 21481 | QM_TRY(MOZ_TO_RESULT({auto tryResult1572 = (ToResult(mParams.get_ContinuePrimaryKeyParams ().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult1572 )::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21483, mozilla::dom::quota::Severity::Error); return tryResult1572 .propagateErr(); }} | ||||
| 21482 | mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement({auto tryResult1572 = (ToResult(mParams.get_ContinuePrimaryKeyParams ().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult1572 )::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21483, mozilla::dom::quota::Severity::Error); return tryResult1572 .propagateErr(); }} | ||||
| 21483 | &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult1572 = (ToResult(mParams.get_ContinuePrimaryKeyParams ().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult1572 )::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21483, mozilla::dom::quota::Severity::Error); return tryResult1572 .propagateErr(); }}; | ||||
| 21484 | } | ||||
| 21485 | } | ||||
| 21486 | |||||
| 21487 | // TODO: Why do we query the records we don't need and skip them here, rather | ||||
| 21488 | // than using a OFFSET clause in the query? | ||||
| 21489 | for (uint32_t index = 0; index < advanceCount; index++) { | ||||
| 21490 | QM_TRY_INSPECT(const bool& hasResult,auto tryResult1573 = (::mozilla::ToResultInvokeMember( (& *stmt), &::mozilla::detail::DerefedType<decltype(& *stmt)>::ExecuteStep )); if ((__builtin_expect(!!(tryResult1573 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep )" , tryResult1573.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21491, mozilla::dom::quota::Severity::Error); return tryResult1573 .propagateErr(); } const bool& hasResult = tryResult1573. inspect(); | ||||
| 21491 | MOZ_TO_RESULT_INVOKE_MEMBER(&*stmt, ExecuteStep))auto tryResult1573 = (::mozilla::ToResultInvokeMember( (& *stmt), &::mozilla::detail::DerefedType<decltype(& *stmt)>::ExecuteStep )); if ((__builtin_expect(!!(tryResult1573 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep )" , tryResult1573.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21491, mozilla::dom::quota::Severity::Error); return tryResult1573 .propagateErr(); } const bool& hasResult = tryResult1573. inspect();; | ||||
| 21492 | |||||
| 21493 | if (!hasResult) { | ||||
| 21494 | mResponse = void_t(); | ||||
| 21495 | return NS_OK; | ||||
| 21496 | } | ||||
| 21497 | } | ||||
| 21498 | |||||
| 21499 | Key previousKey; | ||||
| 21500 | auto* const optPreviousKey = | ||||
| 21501 | IsUnique(mCursor->mDirection) ? &previousKey : nullptr; | ||||
| 21502 | |||||
| 21503 | auto helper = CursorOpBaseHelperBase<CursorType>{*this}; | ||||
| 21504 | QM_TRY_INSPECT(const auto& responseSize, helper.PopulateResponseFromStatement(auto tryResult1574 = (helper.PopulateResponseFromStatement( & *stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult1574 .isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)" , tryResult1574.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21505, mozilla::dom::quota::Severity::Error); return tryResult1574 .propagateErr(); } const auto& responseSize = tryResult1574 .inspect(); | ||||
| 21505 | &*stmt, true, optPreviousKey))auto tryResult1574 = (helper.PopulateResponseFromStatement( & *stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult1574 .isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)" , tryResult1574.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21505, mozilla::dom::quota::Severity::Error); return tryResult1574 .propagateErr(); } const auto& responseSize = tryResult1574 .inspect();; | ||||
| 21506 | |||||
| 21507 | helper.PopulateExtraResponses(&*stmt, maxExtraCount, responseSize, | ||||
| 21508 | "ContinueOp"_ns, optPreviousKey); | ||||
| 21509 | |||||
| 21510 | return NS_OK; | ||||
| 21511 | } | ||||
| 21512 | |||||
| 21513 | Utils::Utils() | ||||
| 21514 | #ifdef DEBUG1 | ||||
| 21515 | : mActorDestroyed(false) | ||||
| 21516 | #endif | ||||
| 21517 | { | ||||
| 21518 | AssertIsOnBackgroundThread(); | ||||
| 21519 | } | ||||
| 21520 | |||||
| 21521 | Utils::~Utils() { MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActorDestroyed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21521 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 21521); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 21522 | |||||
| 21523 | void Utils::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 21524 | AssertIsOnBackgroundThread(); | ||||
| 21525 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21525 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"); do { MOZ_CrashSequence(__null, 21525); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21526 | |||||
| 21527 | #ifdef DEBUG1 | ||||
| 21528 | mActorDestroyed = true; | ||||
| 21529 | #endif | ||||
| 21530 | } | ||||
| 21531 | |||||
| 21532 | mozilla::ipc::IPCResult Utils::RecvDeleteMe() { | ||||
| 21533 | AssertIsOnBackgroundThread(); | ||||
| 21534 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21534 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"); do { MOZ_CrashSequence(__null, 21534); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21535 | |||||
| 21536 | QM_WARNONLY_TRY(OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))){auto tryResult1575 = (OkIf(PBackgroundIndexedDBUtilsParent:: Send__delete__(this))); static_assert(std::is_empty_v<typename decltype(tryResult1575)::ok_type>); if ((__builtin_expect (!!(tryResult1575.isErr()), 0))) { mozilla::dom::quota::HandleError ("OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))" , tryResult1575.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21536, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 21537 | |||||
| 21538 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 21539 | } | ||||
| 21540 | |||||
| 21541 | mozilla::ipc::IPCResult Utils::RecvGetFileReferences( | ||||
| 21542 | const PersistenceType& aPersistenceType, const nsACString& aOrigin, | ||||
| 21543 | const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt, | ||||
| 21544 | int32_t* aDBRefCnt, bool* aResult) { | ||||
| 21545 | AssertIsOnBackgroundThread(); | ||||
| 21546 | MOZ_ASSERT(aRefCnt)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aRefCnt)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aRefCnt))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aRefCnt", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21546); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRefCnt" ")" ); do { MOZ_CrashSequence(__null, 21546); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21547 | MOZ_ASSERT(aDBRefCnt)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDBRefCnt)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDBRefCnt))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDBRefCnt", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21547); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt" ")"); do { MOZ_CrashSequence(__null, 21547); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21548 | MOZ_ASSERT(aResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21548); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")" ); do { MOZ_CrashSequence(__null, 21548); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21549 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21549 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"); do { MOZ_CrashSequence(__null, 21549); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21550 | |||||
| 21551 | if (NS_WARN_IF(!IndexedDatabaseManager::Get())NS_warn_if_impl(!IndexedDatabaseManager::Get(), "!IndexedDatabaseManager::Get()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21551 )) { | ||||
| 21552 | return IPC_FAIL(this, "No IndexedDatabaseManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No IndexedDatabaseManager active!" )); | ||||
| 21553 | } | ||||
| 21554 | |||||
| 21555 | if (NS_WARN_IF(!QuotaManager::Get())NS_warn_if_impl(!QuotaManager::Get(), "!QuotaManager::Get()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21555)) { | ||||
| 21556 | return IPC_FAIL(this, "No QuotaManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No QuotaManager active!" )); | ||||
| 21557 | } | ||||
| 21558 | |||||
| 21559 | if (NS_WARN_IF(!StaticPrefs::dom_indexedDB_testing())NS_warn_if_impl(!StaticPrefs::dom_indexedDB_testing(), "!StaticPrefs::dom_indexedDB_testing()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21559 )) { | ||||
| 21560 | return IPC_FAIL(this, "IndexedDB is not in testing mode!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("IndexedDB is not in testing mode!" )); | ||||
| 21561 | } | ||||
| 21562 | |||||
| 21563 | if (NS_WARN_IF(!IsValidPersistenceType(aPersistenceType))NS_warn_if_impl(!IsValidPersistenceType(aPersistenceType), "!IsValidPersistenceType(aPersistenceType)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21563 )) { | ||||
| 21564 | return IPC_FAIL(this, "PersistenceType is not valid!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("PersistenceType is not valid!" )); | ||||
| 21565 | } | ||||
| 21566 | |||||
| 21567 | if (NS_WARN_IF(aOrigin.IsEmpty())NS_warn_if_impl(aOrigin.IsEmpty(), "aOrigin.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21567)) { | ||||
| 21568 | return IPC_FAIL(this, "Origin is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Origin is empty!" )); | ||||
| 21569 | } | ||||
| 21570 | |||||
| 21571 | if (NS_WARN_IF(aDatabaseName.IsEmpty())NS_warn_if_impl(aDatabaseName.IsEmpty(), "aDatabaseName.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21571 )) { | ||||
| 21572 | return IPC_FAIL(this, "DatabaseName is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DatabaseName is empty!" )); | ||||
| 21573 | } | ||||
| 21574 | |||||
| 21575 | if (NS_WARN_IF(aFileId == 0)NS_warn_if_impl(aFileId == 0, "aFileId == 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21575)) { | ||||
| 21576 | return IPC_FAIL(this, "No FileId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No FileId!" )); | ||||
| 21577 | } | ||||
| 21578 | |||||
| 21579 | nsresult rv = | ||||
| 21580 | DispatchAndReturnFileReferences(aPersistenceType, aOrigin, aDatabaseName, | ||||
| 21581 | aFileId, aRefCnt, aDBRefCnt, aResult); | ||||
| 21582 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21582)) { | ||||
| 21583 | return IPC_FAIL(this, "DispatchAndReturnFileReferences failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DispatchAndReturnFileReferences failed!" )); | ||||
| 21584 | } | ||||
| 21585 | |||||
| 21586 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 21587 | } | ||||
| 21588 | |||||
| 21589 | mozilla::ipc::IPCResult Utils::RecvDoMaintenance( | ||||
| 21590 | DoMaintenanceResolver&& aResolver) { | ||||
| 21591 | AssertIsOnBackgroundThread(); | ||||
| 21592 | |||||
| 21593 | QM_TRY(MOZ_TO_RESULT(!QuotaManager::IsShuttingDown()),{auto tryResult1576 = (ToResult(!QuotaManager::IsShuttingDown ())); static_assert(std::is_empty_v<typename decltype(tryResult1576 )::ok_type>); if ((__builtin_expect(!!(tryResult1576.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1576 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaManager::IsShuttingDown())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21594, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())" , tryTempError, ResolveNSResultAndReturn(aResolver)); }} | ||||
| 21594 | ResolveNSResultAndReturn(aResolver)){auto tryResult1576 = (ToResult(!QuotaManager::IsShuttingDown ())); static_assert(std::is_empty_v<typename decltype(tryResult1576 )::ok_type>); if ((__builtin_expect(!!(tryResult1576.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1576 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaManager::IsShuttingDown())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21594, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())" , tryTempError, ResolveNSResultAndReturn(aResolver)); }}; | ||||
| 21595 | |||||
| 21596 | QM_TRY(QuotaManager::EnsureCreated(), ResolveNSResultAndReturn(aResolver)){auto tryResult1577 = (QuotaManager::EnsureCreated()); static_assert (std::is_empty_v<typename decltype(tryResult1577)::ok_type >); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr (); mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21596, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "QuotaManager::EnsureCreated()" , tryTempError, ResolveNSResultAndReturn(aResolver)); }}; | ||||
| 21597 | |||||
| 21598 | QuotaClient* quotaClient = QuotaClient::GetInstance(); | ||||
| 21599 | QM_TRY(MOZ_TO_RESULT(quotaClient), QM_IPC_FAIL(this)){auto tryResult1578 = (ToResult(quotaClient)); static_assert( std::is_empty_v<typename decltype(tryResult1578)::ok_type> ); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult1578.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaClient)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21599 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(quotaClient)", tryTempError , mozilla::dom::quota::detail::IpcFailCustomRetVal(mozilla::WrapNotNull (this))); }}; | ||||
| 21600 | |||||
| 21601 | quotaClient->DoMaintenance()->Then( | ||||
| 21602 | GetCurrentSerialEventTarget(), __func__, | ||||
| 21603 | [self = RefPtr(this), resolver = std::move(aResolver)]( | ||||
| 21604 | const BoolPromise::ResolveOrRejectValue& aValue) { | ||||
| 21605 | if (!self->CanSend()) { | ||||
| 21606 | return; | ||||
| 21607 | } | ||||
| 21608 | |||||
| 21609 | if (aValue.IsResolve()) { | ||||
| 21610 | resolver(NS_OK); | ||||
| 21611 | } else { | ||||
| 21612 | resolver(aValue.RejectValue()); | ||||
| 21613 | } | ||||
| 21614 | }); | ||||
| 21615 | |||||
| 21616 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 21617 | } | ||||
| 21618 | |||||
| 21619 | #ifdef DEBUG1 | ||||
| 21620 | |||||
| 21621 | NS_IMPL_ISUPPORTS(DEBUGThreadSlower, nsIThreadObserver)MozExternalRefCountType DEBUGThreadSlower::AddRef(void) { static_assert (!std::is_destructible_v<DEBUGThreadSlower>, "Reference-counted class " "DEBUGThreadSlower" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21621); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 21621 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("DEBUGThreadSlower" != nullptr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!("DEBUGThreadSlower" != nullptr ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "\"DEBUGThreadSlower\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21621 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 21621); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("DEBUGThreadSlower" " not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count), ("DEBUGThreadSlower" ), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType DEBUGThreadSlower::Release(void) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(int32_t(mRefCnt) > 0))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21621 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 21621 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("DEBUGThreadSlower" != nullptr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!("DEBUGThreadSlower" != nullptr ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "\"DEBUGThreadSlower\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21621 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 21621); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("DEBUGThreadSlower" " not thread-safe"); const char* const nametmp = "DEBUGThreadSlower"; nsrefcnt count = -- mRefCnt; NS_LogRelease((this), (count), (nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return 0; } return count ; } nsresult DEBUGThreadSlower::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak (NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!" , "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21621); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<DEBUGThreadSlower, nsIThreadObserver> , int32_t( reinterpret_cast<char*>(static_cast<nsIThreadObserver *>((DEBUGThreadSlower*)0x1000)) - reinterpret_cast<char *>((DEBUGThreadSlower*)0x1000))}, {&mozilla::detail::kImplementedIID <DEBUGThreadSlower, nsISupports>, int32_t(reinterpret_cast <char*>(static_cast<nsISupports*>( static_cast< nsIThreadObserver*>((DEBUGThreadSlower*)0x1000))) - reinterpret_cast <char*>((DEBUGThreadSlower*)0x1000))}, { nullptr, 0 } } ; static_assert(std::size(table) > 1, "need at least 1 interface" ); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID , aInstancePtr, table); return rv; } | ||||
| 21622 | |||||
| 21623 | NS_IMETHODIMPnsresult | ||||
| 21624 | DEBUGThreadSlower::OnDispatchedEvent() { MOZ_CRASH("Should never be called!")do { do { } while (false); MOZ_ReportCrash("" "Should never be called!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21624 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be called!" ")"); do { MOZ_CrashSequence(__null, 21624); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } | ||||
| 21625 | |||||
| 21626 | NS_IMETHODIMPnsresult | ||||
| 21627 | DEBUGThreadSlower::OnProcessNextEvent(nsIThreadInternal* /* aThread */, | ||||
| 21628 | bool /* aMayWait */) { | ||||
| 21629 | return NS_OK; | ||||
| 21630 | } | ||||
| 21631 | |||||
| 21632 | NS_IMETHODIMPnsresult | ||||
| 21633 | DEBUGThreadSlower::AfterProcessNextEvent(nsIThreadInternal* /* aThread */, | ||||
| 21634 | bool /* aEventWasProcessed */) { | ||||
| 21635 | MOZ_ASSERT(kDEBUGThreadSleepMS)do { static_assert( mozilla::detail::AssertionConditionType< decltype(kDEBUGThreadSleepMS)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(kDEBUGThreadSleepMS))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("kDEBUGThreadSleepMS" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21635 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS" ")"); do { MOZ_CrashSequence(__null, 21635); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21636 | |||||
| 21637 | MOZ_ALWAYS_TRUE(PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) ==do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval (kDEBUGThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21638 ); AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS" ")"); do { MOZ_CrashSequence(__null, 21638); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 21638 | PR_SUCCESS)do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval (kDEBUGThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21638 ); AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS" ")"); do { MOZ_CrashSequence(__null, 21638); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 21639 | return NS_OK; | ||||
| 21640 | } | ||||
| 21641 | |||||
| 21642 | #endif // DEBUG | ||||
| 21643 | |||||
| 21644 | nsresult FileHelper::Init() { | ||||
| 21645 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21645 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 21645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21646 | |||||
| 21647 | auto fileDirectory = mFileManager->GetCheckedDirectory(); | ||||
| 21648 | if (NS_WARN_IF(!fileDirectory)NS_warn_if_impl(!fileDirectory, "!fileDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21648)) { | ||||
| 21649 | return NS_ERROR_FAILURE; | ||||
| 21650 | } | ||||
| 21651 | |||||
| 21652 | auto journalDirectory = mFileManager->EnsureJournalDirectory(); | ||||
| 21653 | if (NS_WARN_IF(!journalDirectory)NS_warn_if_impl(!journalDirectory, "!journalDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21653)) { | ||||
| 21654 | return NS_ERROR_FAILURE; | ||||
| 21655 | } | ||||
| 21656 | |||||
| 21657 | DebugOnly<bool> exists; | ||||
| 21658 | MOZ_ASSERT(NS_SUCCEEDED(journalDirectory->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory ->Exists(&exists))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(journalDirectory->Exists(&exists))), 1 )))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->Exists(&exists))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21658 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->Exists(&exists))), 1)))" ")"); do { MOZ_CrashSequence(__null, 21658); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21659 | MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType< decltype(exists)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("exists", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21659); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")" ); do { MOZ_CrashSequence(__null, 21659); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21660 | |||||
| 21661 | DebugOnly<bool> isDirectory; | ||||
| 21662 | MOZ_ASSERT(NS_SUCCEEDED(journalDirectory->IsDirectory(&isDirectory)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory ->IsDirectory(&isDirectory))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory ))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory))), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21662 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 21662); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21663 | MOZ_ASSERT(isDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(isDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 21663); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21664 | |||||
| 21665 | mFileDirectory.init(WrapNotNullUnchecked(std::move(fileDirectory))); | ||||
| 21666 | mJournalDirectory.init(WrapNotNullUnchecked(std::move(journalDirectory))); | ||||
| 21667 | |||||
| 21668 | return NS_OK; | ||||
| 21669 | } | ||||
| 21670 | |||||
| 21671 | nsCOMPtr<nsIFile> FileHelper::GetFile(const DatabaseFileInfo& aFileInfo) { | ||||
| 21672 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21672 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 21672); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21673 | |||||
| 21674 | return mFileManager->GetFileForId(mFileDirectory->get(), aFileInfo.Id()); | ||||
| 21675 | } | ||||
| 21676 | |||||
| 21677 | nsCOMPtr<nsIFile> FileHelper::GetJournalFile( | ||||
| 21678 | const DatabaseFileInfo& aFileInfo) { | ||||
| 21679 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21679 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 21679); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21680 | |||||
| 21681 | return mFileManager->GetFileForId(mJournalDirectory->get(), aFileInfo.Id()); | ||||
| 21682 | } | ||||
| 21683 | |||||
| 21684 | nsresult FileHelper::CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile, | ||||
| 21685 | nsIInputStream& aInputStream, | ||||
| 21686 | bool aCompress, | ||||
| 21687 | const Maybe<CipherKey>& aMaybeKey) { | ||||
| 21688 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21688 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 21688); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21689 | |||||
| 21690 | QM_TRY_INSPECT(const auto& exists,auto tryResult1579 = (::mozilla::ToResultInvokeMember( (aFile ), &::mozilla::detail::DerefedType<decltype(aFile)> ::Exists )); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists )" , tryResult1579.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21691, mozilla::dom::quota::Severity::Error); return tryResult1579 .propagateErr(); } const auto& exists = tryResult1579.inspect (); | ||||
| 21691 | MOZ_TO_RESULT_INVOKE_MEMBER(aFile, Exists))auto tryResult1579 = (::mozilla::ToResultInvokeMember( (aFile ), &::mozilla::detail::DerefedType<decltype(aFile)> ::Exists )); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists )" , tryResult1579.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21691, mozilla::dom::quota::Severity::Error); return tryResult1579 .propagateErr(); } const auto& exists = tryResult1579.inspect ();; | ||||
| 21692 | |||||
| 21693 | // DOM blobs that are being stored in IDB are cached by calling | ||||
| 21694 | // IDBDatabase::GetOrCreateFileActorForBlob. So if the same DOM blob is stored | ||||
| 21695 | // again under a different key or in a different object store, we just add | ||||
| 21696 | // a new reference instead of creating a new copy (all such stored blobs share | ||||
| 21697 | // the same id). | ||||
| 21698 | // However, it can happen that CreateFileFromStream failed due to quota | ||||
| 21699 | // exceeded error and for some reason the orphaned file couldn't be deleted | ||||
| 21700 | // immediately. Now, if the operation is being repeated, the DOM blob is | ||||
| 21701 | // already cached, so it has the same file id which clashes with the orphaned | ||||
| 21702 | // file. We could do some tricks to restore previous copy loop, but it's safer | ||||
| 21703 | // to just delete the orphaned file and start from scratch. | ||||
| 21704 | // This corner case is partially simulated in test_file_copy_failure.js | ||||
| 21705 | if (exists) { | ||||
| 21706 | QM_TRY_INSPECT(const auto& isFile,auto tryResult1580 = (::mozilla::ToResultInvokeMember( (aFile ), &::mozilla::detail::DerefedType<decltype(aFile)> ::IsFile )); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile )" , tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21707, mozilla::dom::quota::Severity::Error); return tryResult1580 .propagateErr(); } const auto& isFile = tryResult1580.inspect (); | ||||
| 21707 | MOZ_TO_RESULT_INVOKE_MEMBER(aFile, IsFile))auto tryResult1580 = (::mozilla::ToResultInvokeMember( (aFile ), &::mozilla::detail::DerefedType<decltype(aFile)> ::IsFile )); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile )" , tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21707, mozilla::dom::quota::Severity::Error); return tryResult1580 .propagateErr(); } const auto& isFile = tryResult1580.inspect ();; | ||||
| 21708 | |||||
| 21709 | QM_TRY(OkIf(isFile), NS_ERROR_FAILURE){auto tryResult1581 = (OkIf(isFile)); static_assert(std::is_empty_v <typename decltype(tryResult1581)::ok_type>); if ((__builtin_expect (!!(tryResult1581.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1581.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(isFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21709, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(isFile)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 21710 | |||||
| 21711 | QM_TRY_INSPECT(const auto& journalExists,auto tryResult1582 = (::mozilla::ToResultInvokeMember( (aJournalFile ), &::mozilla::detail::DerefedType<decltype(aJournalFile )>::Exists )); if ((__builtin_expect(!!(tryResult1582.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists )" , tryResult1582.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21712, mozilla::dom::quota::Severity::Error); return tryResult1582 .propagateErr(); } const auto& journalExists = tryResult1582 .inspect(); | ||||
| 21712 | MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, Exists))auto tryResult1582 = (::mozilla::ToResultInvokeMember( (aJournalFile ), &::mozilla::detail::DerefedType<decltype(aJournalFile )>::Exists )); if ((__builtin_expect(!!(tryResult1582.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists )" , tryResult1582.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21712, mozilla::dom::quota::Severity::Error); return tryResult1582 .propagateErr(); } const auto& journalExists = tryResult1582 .inspect();; | ||||
| 21713 | |||||
| 21714 | QM_TRY(OkIf(journalExists), NS_ERROR_FAILURE){auto tryResult1583 = (OkIf(journalExists)); static_assert(std ::is_empty_v<typename decltype(tryResult1583)::ok_type> ); if ((__builtin_expect(!!(tryResult1583.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult1583.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(journalExists)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21714 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(journalExists)", tryTempError, NS_ERROR_FAILURE); }}; | ||||
| 21715 | |||||
| 21716 | QM_TRY_INSPECT(const auto& journalIsFile,auto tryResult1584 = (::mozilla::ToResultInvokeMember( (aJournalFile ), &::mozilla::detail::DerefedType<decltype(aJournalFile )>::IsFile )); if ((__builtin_expect(!!(tryResult1584.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile )" , tryResult1584.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21717, mozilla::dom::quota::Severity::Error); return tryResult1584 .propagateErr(); } const auto& journalIsFile = tryResult1584 .inspect(); | ||||
| 21717 | MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, IsFile))auto tryResult1584 = (::mozilla::ToResultInvokeMember( (aJournalFile ), &::mozilla::detail::DerefedType<decltype(aJournalFile )>::IsFile )); if ((__builtin_expect(!!(tryResult1584.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile )" , tryResult1584.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21717, mozilla::dom::quota::Severity::Error); return tryResult1584 .propagateErr(); } const auto& journalIsFile = tryResult1584 .inspect();; | ||||
| 21718 | |||||
| 21719 | QM_TRY(OkIf(journalIsFile), NS_ERROR_FAILURE){auto tryResult1585 = (OkIf(journalIsFile)); static_assert(std ::is_empty_v<typename decltype(tryResult1585)::ok_type> ); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult1585.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(journalIsFile)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21719 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(journalIsFile)", tryTempError, NS_ERROR_FAILURE); }}; | ||||
| 21720 | |||||
| 21721 | IDB_WARNING("Deleting orphaned file!")do { nsPrintfCString s("Deleting orphaned file!"); mozilla::dom ::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21721, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21721 ); } while (0); | ||||
| 21722 | |||||
| 21723 | QM_TRY(MOZ_TO_RESULT(mFileManager->SyncDeleteFile(aFile, aJournalFile))){auto tryResult1586 = (ToResult(mFileManager->SyncDeleteFile (aFile, aJournalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect (!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(mFileManager->SyncDeleteFile(aFile, aJournalFile))" , tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21723, mozilla::dom::quota::Severity::Error); return tryResult1586 .propagateErr(); }}; | ||||
| 21724 | } | ||||
| 21725 | |||||
| 21726 | // Create a journal file first. | ||||
| 21727 | QM_TRY(MOZ_TO_RESULT(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult1587 = (ToResult(aJournalFile.Create(nsIFile:: NORMAL_FILE_TYPE, 0644))); static_assert(std::is_empty_v<typename decltype(tryResult1587)::ok_type>); if ((__builtin_expect (!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))" , tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21727, mozilla::dom::quota::Severity::Error); return tryResult1587 .propagateErr(); }}; | ||||
| 21728 | |||||
| 21729 | // Now try to copy the stream. | ||||
| 21730 | QM_TRY_UNWRAP(nsCOMPtr<nsIOutputStream> fileOutputStream,auto tryResult1588 = (CreateFileOutputStream(mFileManager-> Type(), mFileManager->OriginMetadata(), Client::IDB, & aFile)); if ((__builtin_expect(!!(tryResult1588.isErr()), 0)) ) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)" , tryResult1588.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21733, mozilla::dom::quota::Severity::Error); return tryResult1588 .propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream = tryResult1588.unwrap(); | ||||
| 21731 | CreateFileOutputStream(mFileManager->Type(),auto tryResult1588 = (CreateFileOutputStream(mFileManager-> Type(), mFileManager->OriginMetadata(), Client::IDB, & aFile)); if ((__builtin_expect(!!(tryResult1588.isErr()), 0)) ) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)" , tryResult1588.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21733, mozilla::dom::quota::Severity::Error); return tryResult1588 .propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream = tryResult1588.unwrap(); | ||||
| 21732 | mFileManager->OriginMetadata(),auto tryResult1588 = (CreateFileOutputStream(mFileManager-> Type(), mFileManager->OriginMetadata(), Client::IDB, & aFile)); if ((__builtin_expect(!!(tryResult1588.isErr()), 0)) ) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)" , tryResult1588.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21733, mozilla::dom::quota::Severity::Error); return tryResult1588 .propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream = tryResult1588.unwrap(); | ||||
| 21733 | Client::IDB, &aFile))auto tryResult1588 = (CreateFileOutputStream(mFileManager-> Type(), mFileManager->OriginMetadata(), Client::IDB, & aFile)); if ((__builtin_expect(!!(tryResult1588.isErr()), 0)) ) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)" , tryResult1588.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21733, mozilla::dom::quota::Severity::Error); return tryResult1588 .propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream = tryResult1588.unwrap();; | ||||
| 21734 | |||||
| 21735 | AutoTArray<char, kFileCopyBufferSize> buffer; | ||||
| 21736 | const auto actualOutputStream = | ||||
| 21737 | [aCompress, &aMaybeKey, &buffer, | ||||
| 21738 | baseOutputStream = | ||||
| 21739 | std::move(fileOutputStream)]() mutable -> nsCOMPtr<nsIOutputStream> { | ||||
| 21740 | if (aMaybeKey) { | ||||
| 21741 | baseOutputStream = | ||||
| 21742 | MakeRefPtr<EncryptingOutputStream<IndexedDBCipherStrategy>>( | ||||
| 21743 | std::move(baseOutputStream), kEncryptedStreamBlockSize, | ||||
| 21744 | *aMaybeKey); | ||||
| 21745 | } | ||||
| 21746 | |||||
| 21747 | if (aCompress) { | ||||
| 21748 | auto snappyOutputStream = | ||||
| 21749 | MakeRefPtr<SnappyCompressOutputStream>(baseOutputStream); | ||||
| 21750 | |||||
| 21751 | buffer.SetLength(snappyOutputStream->BlockSize()); | ||||
| 21752 | |||||
| 21753 | return snappyOutputStream; | ||||
| 21754 | } | ||||
| 21755 | |||||
| 21756 | buffer.SetLength(kFileCopyBufferSize); | ||||
| 21757 | return std::move(baseOutputStream); | ||||
| 21758 | }(); | ||||
| 21759 | |||||
| 21760 | QM_TRY(MOZ_TO_RESULT(SyncCopy(aInputStream, *actualOutputStream,{auto tryResult1589 = (ToResult(SyncCopy(aInputStream, *actualOutputStream , buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v <typename decltype(tryResult1589)::ok_type>); if ((__builtin_expect (!!(tryResult1589.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))" , tryResult1589.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21761, mozilla::dom::quota::Severity::Error); return tryResult1589 .propagateErr(); }} | ||||
| 21761 | buffer.Elements(), buffer.Length()))){auto tryResult1589 = (ToResult(SyncCopy(aInputStream, *actualOutputStream , buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v <typename decltype(tryResult1589)::ok_type>); if ((__builtin_expect (!!(tryResult1589.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))" , tryResult1589.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21761, mozilla::dom::quota::Severity::Error); return tryResult1589 .propagateErr(); }}; | ||||
| 21762 | |||||
| 21763 | return NS_OK; | ||||
| 21764 | } | ||||
| 21765 | |||||
| 21766 | class FileHelper::ReadCallback final : public nsIInputStreamCallback { | ||||
| 21767 | public: | ||||
| 21768 | 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: | ||||
| 21769 | |||||
| 21770 | ReadCallback() | ||||
| 21771 | : mMutex("ReadCallback::mMutex"), | ||||
| 21772 | mCondVar(mMutex, "ReadCallback::mCondVar"), | ||||
| 21773 | mInputAvailable(false) {} | ||||
| 21774 | |||||
| 21775 | NS_IMETHODvirtual nsresult | ||||
| 21776 | OnInputStreamReady(nsIAsyncInputStream* aStream) override { | ||||
| 21777 | mozilla::MutexAutoLock autolock(mMutex); | ||||
| 21778 | |||||
| 21779 | mInputAvailable = true; | ||||
| 21780 | mCondVar.Notify(); | ||||
| 21781 | |||||
| 21782 | return NS_OK; | ||||
| 21783 | } | ||||
| 21784 | |||||
| 21785 | nsresult AsyncWait(nsIAsyncInputStream* aStream, uint32_t aBufferSize, | ||||
| 21786 | nsIEventTarget* aTarget) { | ||||
| 21787 | MOZ_ASSERT(aStream)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aStream)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aStream))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aStream", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21787); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStream" ")" ); do { MOZ_CrashSequence(__null, 21787); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21788 | mozilla::MutexAutoLock autolock(mMutex); | ||||
| 21789 | |||||
| 21790 | nsresult rv = aStream->AsyncWait(this, 0, aBufferSize, aTarget); | ||||
| 21791 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21791)) { | ||||
| 21792 | return rv; | ||||
| 21793 | } | ||||
| 21794 | |||||
| 21795 | mInputAvailable = false; | ||||
| 21796 | while (!mInputAvailable) { | ||||
| 21797 | mCondVar.Wait(); | ||||
| 21798 | } | ||||
| 21799 | |||||
| 21800 | return NS_OK; | ||||
| 21801 | } | ||||
| 21802 | |||||
| 21803 | private: | ||||
| 21804 | ~ReadCallback() = default; | ||||
| 21805 | |||||
| 21806 | mozilla::Mutex mMutex MOZ_UNANNOTATED; | ||||
| 21807 | mozilla::CondVar mCondVar; | ||||
| 21808 | bool mInputAvailable; | ||||
| 21809 | }; | ||||
| 21810 | |||||
| 21811 | NS_IMPL_ADDREF(FileHelper::ReadCallback)MozExternalRefCountType FileHelper::ReadCallback::AddRef(void ) { static_assert(!std::is_destructible_v<FileHelper::ReadCallback >, "Reference-counted class " "FileHelper::ReadCallback" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21811); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 21811 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("FileHelper::ReadCallback" != nullptr)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!("FileHelper::ReadCallback" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("\"FileHelper::ReadCallback\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21811); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 21811); __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; }; | ||||
| 21812 | NS_IMPL_RELEASE(FileHelper::ReadCallback)MozExternalRefCountType FileHelper::ReadCallback::Release(void ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 21812 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("FileHelper::ReadCallback" != nullptr)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!("FileHelper::ReadCallback" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("\"FileHelper::ReadCallback\" != nullptr" " (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 21812); __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; }; | ||||
| 21813 | |||||
| 21814 | NS_INTERFACE_MAP_BEGIN(FileHelper::ReadCallback)nsresult FileHelper::ReadCallback::QueryInterface(const nsIID & aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!" , "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21814); MOZ_PretendNoReturn(); } } while (0); nsISupports* foundInterface ; | ||||
| 21815 | NS_INTERFACE_MAP_ENTRY(nsIInputStreamCallback)if (aIID.Equals(mozilla::detail::kImplementedIID<std::remove_reference_t <decltype(*this)>, nsIInputStreamCallback>)) foundInterface = static_cast<nsIInputStreamCallback*>(this); else | ||||
| 21816 | 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 | ||||
| 21817 | NS_INTERFACE_MAP_ENDfoundInterface = 0; nsresult status; if (!foundInterface) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aIID.Equals((nsISupports::kIID)))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aIID.Equals((nsISupports::kIID ))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!aIID.Equals((nsISupports::kIID))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21817); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIID.Equals((nsISupports::kIID))" ")"); do { MOZ_CrashSequence(__null, 21817); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); status = NS_NOINTERFACE; } else { (foundInterface)->AddRef(); status = NS_OK; } *aInstancePtr = foundInterface; return status; } | ||||
| 21818 | |||||
| 21819 | nsresult FileHelper::SyncRead(nsIInputStream& aInputStream, char* const aBuffer, | ||||
| 21820 | const uint32_t aBufferSize, | ||||
| 21821 | uint32_t* const aRead) { | ||||
| 21822 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21822 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 21822); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21823 | |||||
| 21824 | // Let's try to read, directly. | ||||
| 21825 | nsresult rv = aInputStream.Read(aBuffer, aBufferSize, aRead); | ||||
| 21826 | if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) || rv != NS_BASE_STREAM_WOULD_BLOCK) { | ||||
| 21827 | return rv; | ||||
| 21828 | } | ||||
| 21829 | |||||
| 21830 | // We need to proceed async. | ||||
| 21831 | nsCOMPtr<nsIAsyncInputStream> asyncStream = do_QueryInterface(&aInputStream); | ||||
| 21832 | if (!asyncStream) { | ||||
| 21833 | return rv; | ||||
| 21834 | } | ||||
| 21835 | |||||
| 21836 | if (!mReadCallback) { | ||||
| 21837 | mReadCallback.init(MakeNotNull<RefPtr<ReadCallback>>()); | ||||
| 21838 | } | ||||
| 21839 | |||||
| 21840 | // We just need any thread with an event loop for receiving the | ||||
| 21841 | // OnInputStreamReady callback. Let's use the I/O thread. | ||||
| 21842 | nsCOMPtr<nsIEventTarget> target = | ||||
| 21843 | do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID"@mozilla.org/network/stream-transport-service;1"); | ||||
| 21844 | MOZ_ASSERT(target)do { static_assert( mozilla::detail::AssertionConditionType< decltype(target)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(target))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("target", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21844); AnnotateMozCrashReason("MOZ_ASSERT" "(" "target" ")" ); do { MOZ_CrashSequence(__null, 21844); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21845 | |||||
| 21846 | rv = (*mReadCallback)->AsyncWait(asyncStream, aBufferSize, target); | ||||
| 21847 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21847)) { | ||||
| 21848 | return rv; | ||||
| 21849 | } | ||||
| 21850 | |||||
| 21851 | return SyncRead(aInputStream, aBuffer, aBufferSize, aRead); | ||||
| 21852 | } | ||||
| 21853 | |||||
| 21854 | nsresult FileHelper::SyncCopy(nsIInputStream& aInputStream, | ||||
| 21855 | nsIOutputStream& aOutputStream, | ||||
| 21856 | char* const aBuffer, const uint32_t aBufferSize) { | ||||
| 21857 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21857 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 21857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21858 | |||||
| 21859 | AUTO_PROFILER_LABEL("FileHelper::SyncCopy", DOM)mozilla::AutoProfilerLabel raiiObject21859( "FileHelper::SyncCopy" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21860 | |||||
| 21861 | nsresult rv; | ||||
| 21862 | |||||
| 21863 | do { | ||||
| 21864 | uint32_t numRead; | ||||
| 21865 | rv = SyncRead(aInputStream, aBuffer, aBufferSize, &numRead); | ||||
| 21866 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21866)) { | ||||
| 21867 | break; | ||||
| 21868 | } | ||||
| 21869 | |||||
| 21870 | if (!numRead) { | ||||
| 21871 | break; | ||||
| 21872 | } | ||||
| 21873 | |||||
| 21874 | uint32_t numWrite; | ||||
| 21875 | rv = aOutputStream.Write(aBuffer, numRead, &numWrite); | ||||
| 21876 | if (rv == NS_ERROR_FILE_NO_DEVICE_SPACE) { | ||||
| 21877 | rv = NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR; | ||||
| 21878 | } | ||||
| 21879 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21879)) { | ||||
| 21880 | break; | ||||
| 21881 | } | ||||
| 21882 | |||||
| 21883 | if (NS_WARN_IF(numWrite != numRead)NS_warn_if_impl(numWrite != numRead, "numWrite != numRead", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21883)) { | ||||
| 21884 | rv = NS_ERROR_FAILURE; | ||||
| 21885 | break; | ||||
| 21886 | } | ||||
| 21887 | } while (true); | ||||
| 21888 | |||||
| 21889 | if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { | ||||
| 21890 | rv = aOutputStream.Flush(); | ||||
| 21891 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21891)) { | ||||
| 21892 | return rv; | ||||
| 21893 | } | ||||
| 21894 | } | ||||
| 21895 | |||||
| 21896 | nsresult rv2 = aOutputStream.Close(); | ||||
| 21897 | if (NS_WARN_IF(NS_FAILED(rv2))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv2 )), 0))), "NS_FAILED(rv2)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21897)) { | ||||
| 21898 | return NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? rv2 : rv; | ||||
| 21899 | } | ||||
| 21900 | |||||
| 21901 | return rv; | ||||
| 21902 | } | ||||
| 21903 | |||||
| 21904 | } // namespace dom::indexedDB | ||||
| 21905 | } // namespace mozilla | ||||
| 21906 | |||||
| 21907 | #undef IDB_MOBILE | ||||
| 21908 | #undef IDB_DEBUG_LOG |